summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Schultz <mattsch@gmail.com>2012-12-04 15:30:12 -0600
committerMatthew Schultz <mattsch@gmail.com>2012-12-04 15:30:22 -0600
commit0fa535313bc6e156836c6b9506e010b8cabdf1f0 (patch)
treecf6182f086ea3bdc9354654a558a2db7ecefc90c /sys-apps
parentRemove dev-perl/Roman, cause it is added to main tree (diff)
downloadsunrise-0fa535313bc6e156836c6b9506e010b8cabdf1f0.tar.gz
sunrise-0fa535313bc6e156836c6b9506e010b8cabdf1f0.tar.bz2
sunrise-0fa535313bc6e156836c6b9506e010b8cabdf1f0.zip
sys-apps/apt: New Ebuild for bug #445990. Thanks for the review hasufell. We got apt, oh crap. :-)
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/apt/ChangeLog11
-rw-r--r--sys-apps/apt/Manifest5
-rw-r--r--sys-apps/apt/apt-0.9.7.6.ebuild222
-rw-r--r--sys-apps/apt/files/apt.lintian3
-rw-r--r--sys-apps/apt/metadata.xml19
5 files changed, 260 insertions, 0 deletions
diff --git a/sys-apps/apt/ChangeLog b/sys-apps/apt/ChangeLog
new file mode 100644
index 000000000..ce758b872
--- /dev/null
+++ b/sys-apps/apt/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for sys-apps/apt
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*apt-0.9.7.6 (04 Dec 2012)
+
+ 04 Dec 2012; Matthew Schultz (mschultz) <mattsch@gmail.com>
+ +apt-0.9.7.6.ebuild, +files/apt.lintian, +metadata.xml:
+ New Ebuild for bug #445990. Thanks for the review hasufell. We got apt, oh
+ crap. :-)
+
diff --git a/sys-apps/apt/Manifest b/sys-apps/apt/Manifest
new file mode 100644
index 000000000..71b438641
--- /dev/null
+++ b/sys-apps/apt/Manifest
@@ -0,0 +1,5 @@
+AUX apt.lintian 161 SHA256 f015d11657cf670d1a6c131158bed5e526ff574b137f5ead20cb6adc987886e4 SHA512 563ef19b946b8e63a4e47e918bebf6a01a92266aff7a67c1c4ff229b4e3dd75708058fe2ce0ba842e8d53b3c65812451fce6065832abdb8901ec6a6b9804abb6 WHIRLPOOL c5fe5d05b52232d4c8b1a07711a6282053c2619eb864fe18a1a34c5b2547698e5e866e3163f40cce919f260b0810cd4a39da3b1a84201e3b9180a5ba65b65f37
+DIST apt_0.9.7.6.tar.gz 3390939 SHA256 655ea34aa5dec633aa53abdc31d84fe1862797d5db21f43451975af7c4d5bbde SHA512 1626a7cfdf1db790fb2dd7b8e79d8f7e1fa3ce7c1e4b297cdfd8a0f30c2103c653c16a6c83fa378293b0092abd1af7257d7ca33b5f404b37bdcb526c41cdfd72 WHIRLPOOL d452f2e853e5056de468b0b01a06e099fae12c71d272c3e418ad4fadf77610fa180c94e75dbdf7c0c5002b7e9d982eb6147d7f2397bf58abfc0375e0ba7778b4
+EBUILD apt-0.9.7.6.ebuild 5975 SHA256 d9e1816dafb25140ebb60cb802d83e6771edccbb9062b94917e6391dabba11e0 SHA512 0db5f905444c8d60a834dcec255364bccbdbb1903d25128f85c23aa16a572549e170dcef55842caad59c1f0a6c764da0191405e7e8c00b460ca93199259a9311 WHIRLPOOL 8a171df1b712ef2aa86985c97d2ada76b9d256b56bacbb9947e904b996aeae8e6d1d25fe54de1d4a073d7d459975d769dc10d7c636d77b80937ccba214800ee7
+MISC ChangeLog 351 SHA256 2fddf319336299715e31edb69da967f5f417099f5a520a6f5671d46a56848d76 SHA512 72065e359a3fe740927bbd389d2e9860a8100bbaa6658c3b56843d5b0f062b279f271209779b211fed576cd5730390aa62a614c692478be6a12f2433eeaaeff1 WHIRLPOOL ba0e8aaf47d3c2356a96691ca01f9685d8f3dfb95dc07bf9b76791c6b592e883bb818709dbc54b71e36a4e71eb30ceb6c4c4ba85a6e11bf90fe2505fe3e58413
+MISC metadata.xml 1061 SHA256 4741ce3916b716d0127175b3b82b689b9323fd40b9a975271adcdf2cac218337 SHA512 490030f2ebb64ef9c52ded5f0d27428644d4fc45c25a6cb43203daa98134aeb57909f67c5494043a60e176072384b0090c7ef531008e1089621a282570b930ba WHIRLPOOL 79a56abddd260feeb41e4082f4384ee6abbe8414da7c258df3ea43af7c71159cd6441e077ba8a61e403ed75fd45af73fedfe4b46326bfbe245255c113b793e90
diff --git a/sys-apps/apt/apt-0.9.7.6.ebuild b/sys-apps/apt/apt-0.9.7.6.ebuild
new file mode 100644
index 000000000..6b34c46de
--- /dev/null
+++ b/sys-apps/apt/apt-0.9.7.6.ebuild
@@ -0,0 +1,222 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="5"
+
+inherit eutils gnuconfig multilib
+
+#revision for debian stable versions (e.g. +squeeze)
+MY_PVR=""
+
+DESCRIPTION="Debian commandline package manager"
+HOMEPAGE="http://packages.qa.debian.org/apt"
+SRC_URI="mirror://debian/pool/main/a/${PN}/${PN}_${PV}${MY_PVR}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="apt-pkg berkdb doc examples graphviz largefile latex nls rpath ssl utils"
+ILINGUAS="ar ast bg bs ca cs cy da de dz el es eu fi fr gl hu it ja km
+ ko ku lt mr nb ne nl nn pl pt pt_BR ro ru sk sl sv th tl uk
+ vi zh_CN zh_TW"
+
+for lang in $ILINGUAS; do
+ IUSE="${IUSE} linguas_${lang}"
+done
+REQUIRED_USE="berkdb? ( apt-pkg )
+ graphviz? ( doc )
+ latex? ( doc )
+ utils? ( apt-pkg )"
+
+COMMON_DEPEND="sys-libs/zlib
+ berkdb? ( sys-libs/db )"
+RDEPEND="app-arch/dpkg
+ app-crypt/gnupg
+ sys-fs/udev
+ ssl? ( net-misc/curl[ssl] )
+ ${COMMON_DEPEND}"
+DEPEND="app-text/debiandoc-sgml
+ >=app-text/docbook-xml-dtd-4.5
+ app-text/docbook-xsl-stylesheets
+ >=app-text/po4a-0.40.1
+ dev-libs/libxslt
+ dev-util/intltool
+ net-misc/curl[ssl]
+ sys-devel/gettext
+ doc? (
+ app-doc/doxygen
+ graphviz? ( media-gfx/graphviz )
+ )
+ ${COMMON_DEPEND}"
+
+S="${WORKDIR}/${P}${MY_PVR}"
+
+src_prepare() {
+ strip-linguas $ILINGUAS
+ # Fix broken symlinks
+ gnuconfig_update
+ sed -e 's#xml/docbook/stylesheet/nwalsh#sgml/docbook/xsl-stylesheets#' \
+ -i doc/manpage-style.xsl || die
+}
+
+src_configure() {
+ HAVE_DOT=$(usex graphviz "YES" "NO") econf \
+ $(use_enable largefile ) \
+ $(use_enable nls ) \
+ $(use_enable rpath )
+}
+
+src_compile() {
+ # Make the compile process noisy so it's easier to debug for QA
+ emake NOISY=1
+}
+
+src_install() {
+ local mydpkglibdir=/usr/$(get_libdir)/dpkg/methods/${PN}
+ local myetcdir=/etc/${PN}
+ local mylangs=
+
+ # Install main binaries
+ dobin bin/apt-{cache,cdrom,config,get,key,mark}
+ exeinto /usr/$(get_libdir)/${PN}/methods
+ doexe bin/methods/*
+ if ! use ssl; then
+ rm "${D}"/usr/$(get_libdir)/apt/methods/https || die
+ fi
+
+ insinto ${mydpkglibdir}
+ doins dselect/{desc.apt,names}
+ exeinto ${mydpkglibdir}
+ doexe dselect/{install,setup,update}
+ dolib.so bin/libapt-pkg*
+ insinto /usr/share/bug/${PN}
+ newins debian/apt.bug-script script
+
+ # Install lintian overrides
+ insinto /usr/share/lintian/overrides
+ newins "${FILESDIR}"/apt.lintian ${PN}
+
+ # Install configuration examples
+ if use examples; then
+ insinto /usr/share/doc/${PF}
+ doins -r docs/examples
+ fi
+
+ # Install API documentation
+ if use doc; then
+ dohtml -r build/doc/doxygen/html/*.{html,png}
+ rm "${D}"/usr/share/doc/${PF}/html/files.html || die
+ if use latex; then
+ insinto /usr/share/doc/${PF}
+ doins -r build/doc/doxygen/latex
+ # Uncompress tex files since tex editors cannot use compressed files
+ docompress -x /usr/share/doc/${PF}/latex
+ fi
+ fi
+
+ # Install main documentation
+ dodoc debian/{changelog,NEWS}
+ if use ssl; then
+ dodoc debian/apt-transport-https.README
+ fi
+ dodoc docs/{design.text,dpkg-tech.text,files.text,guide.text,method.text,offline.text}
+ dohtml -r docs/{design.html,dpkg-tech.html,files.html,guide.html,method.html,offline.html}
+ doman doc/{apt-config.8,apt-get.8,apt-key.8,apt-mark.8,apt-secure.8}
+ doman doc/{apt-cache.8,apt-cdrom.8,apt.8,apt.conf.5,apt_preferences.5,sources.list.5}
+
+ if ! use utils; then
+ find locale -type f -iname "apt-utils.mo" -delete || die
+ fi
+
+ # Install locale related docs
+ for lang in ${ILINGUAS}; do
+ use linguas_${lang} || continue
+ # store use languages so there's no need to check use again
+ mylangs="${mylangs} ${lang}"
+
+ insinto /usr/share/locale
+ doins -r locale/${lang}
+
+ if [ -e docs/guide.${lang}.html ]; then
+ dohtml -r docs/guide.${lang}.html
+ fi
+ if [ -e docs/offline.${lang}.html ]; then
+ dohtml -r docs/offline.${lang}.html
+ fi
+ if [ -e docs/guide.${lang}.text ]; then
+ dohtml -r docs/guide.${lang}.text
+ fi
+ if [ -e docs/offline.${lang}.text ]; then
+ dohtml -r docs/offline.${lang}.text
+ fi
+ if [ -e doc/${lang} ]; then
+ doman doc/${lang}/{apt-config.${lang}.8,apt-get.${lang}.8,apt-key.${lang}.8}
+ doman doc/${lang}/{apt-mark.${lang}.8,apt-secure.${lang}.8}
+ doman doc/${lang}/{apt-cache.${lang}.8,apt-cdrom.${lang}.8,apt.conf.${lang}.5}
+ doman doc/${lang}/{apt_preferences.${lang}.5,sources.list.${lang}.5}
+ fi
+ done
+ unset lang
+
+ # Install example of sources.list in main configuration area
+ insinto ${myetcdir}
+ doins doc/examples/sources.list
+
+ # Install auto remove configuration
+ insinto ${myetcdir}/apt.conf.d
+ newins debian/apt.conf.autoremove 01autoremove
+
+ # Create other needed configuration directories
+ keepdir ${myetcdir}/preferences.d
+ keepdir ${myetcdir}/sources.list.d
+ keepdir ${myetcdir}/trusted.gpg.d
+
+ # Install log rotation configuration
+ insinto /etc/logrotate.d
+ newins debian/apt.logrotate ${PN}
+
+ # Install apt cront script
+ insinto /etc/cron.daily
+ newins debian/apt.cron.daily ${PN}
+
+ # Create other needed directories
+ keepdir /var/cache/${PN}/archives/partial
+ keepdir /var/lib/${PN}/lists/partial
+ keepdir /var/lib/${PN}/mirrors/partial
+ keepdir /var/lib/${PN}/periodic
+ keepdir /var/log/${PN}
+
+ # Install apt pkg libraries
+ if use apt-pkg; then
+ doheader -r include/apt-pkg
+ dolib.so bin/libapt-inst.so*
+
+ # Install apt-ftparchive and related docs
+ if use berkdb; then
+ dobin bin/apt-ftparchive
+ doman doc/apt-ftparchive.1
+ for lang in ${mylangs}; do
+ if [ -e doc/${lang} ]; then
+ doman doc/${lang}/apt-ftparchive.${lang}.1
+ fi
+ done
+ unset lang
+ if use examples; then
+ dodoc doc/examples/apt-ftparchive.conf
+ fi
+ fi
+
+ # Install apt utility programs and docs
+ if use utils; then
+ dobin bin/apt-{extracttemplates,internal-solver,sortpkgs}
+ doman doc/{apt-extracttemplates.1,apt-sortpkgs.1}
+ for lang in ${mylangs}; do
+ if [ -e doc/${lang} ]; then
+ doman doc/${lang}/{apt-extracttemplates.${lang}.1,apt-sortpkgs.${lang}.1}
+ fi
+ done
+ unset lang
+ fi
+ fi
+}
diff --git a/sys-apps/apt/files/apt.lintian b/sys-apps/apt/files/apt.lintian
new file mode 100644
index 000000000..49c5ce53c
--- /dev/null
+++ b/sys-apps/apt/files/apt.lintian
@@ -0,0 +1,3 @@
+# apt-mark is rarely used auxiliary script, we don't want to depend on
+# python-apt only for it.
+apt binary: python-script-but-no-python-dep ./usr/bin/apt-mark
diff --git a/sys-apps/apt/metadata.xml b/sys-apps/apt/metadata.xml
new file mode 100644
index 000000000..b75e5d883
--- /dev/null
+++ b/sys-apps/apt/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer><email>maintainer-wanted@gentoo.org</email></maintainer>
+ <use>
+ <flag name="apt-pkg">Install development header files for APT's libapt-pkg and libapt-inst</flag>
+ <flag name="berkdb">Build and install apt-ftparchive and supporting documentation</flag>
+ <flag name="graphviz">Install graph related API documentation</flag>
+ <flag name="largefile">Enable support for large files</flag>
+ <flag name="latex">Install latex formatted API documentation</flag>
+ <flag name="nls">Enable Native Language Support</flag>
+ <flag name="rpath">Enable hardcoding of runtime library paths</flag>
+ <flag name="utils">Install apt utility programs</flag>
+ </use>
+ <longdescription lang="en">
+ This package provides commandline tools for searching and managing as well as querying information
+ about packages as a low-level access to all features of the libapt-pkg library.
+ </longdescription>
+</pkgmetadata>