/[gentoo-x86]/app-arch/dpkg/dpkg-1.16.4.2.ebuild
Gentoo

Contents of /app-arch/dpkg/dpkg-1.16.4.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Jun 12 15:37:28 2012 UTC (12 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Remove gzip --rsyncable option by Vincent de Phily (bug #420813).

(Portage version: 2.2.0_alpha110/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-arch/dpkg/dpkg-1.16.4.2.ebuild,v 1.2 2012/06/10 15:49:06 jer Exp $
4
5 EAPI=4
6
7 inherit eutils multilib autotools toolchain-funcs
8
9 DESCRIPTION="Package maintenance system for Debian"
10 HOMEPAGE="http://packages.qa.debian.org/dpkg"
11 SRC_URI="mirror://debian/pool/main/d/${PN}/${P/-/_}.tar.bz2"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-solaris ~x86-solaris"
16 IUSE="bzip2 dselect nls test unicode zlib"
17
18 LANGS="
19 ast bs ca cs da de dz el eo es et eu fr gl hu id it ja km ko ku lt mr nb ne
20 nl nn pa pl pt_BR pt ro ru sk sv th tl vi zh_CN zh_TW
21 "
22
23 for X in ${LANGS} ; do
24 IUSE="${IUSE} linguas_${X}"
25 done
26
27 RDEPEND=">=dev-lang/perl-5.6.0
28 dev-perl/TimeDate
29 >=sys-libs/ncurses-5.2-r7
30 zlib? ( >=sys-libs/zlib-1.1.4 )
31 bzip2? ( app-arch/bzip2 )"
32 DEPEND="${RDEPEND}
33 sys-devel/flex
34 virtual/pkgconfig
35 nls? ( app-text/po4a )
36 test? (
37 dev-perl/DateTime-Format-DateParse
38 dev-perl/IO-String
39 dev-perl/Test-Pod
40 )"
41 REQUIRED_USE="dselect? ( nls )"
42
43 src_prepare() {
44 # Force the use of the running bash for get-version (this file is never
45 # installed, so no need to worry about hardcoding a temporary bash)
46 sed -i -e '1c\#!'"${BASH}" get-version || die
47
48 # this test depends on a Debian only gzip extension that adds --rsyncable
49 # which will therefore always fail on Gentoo. (bug #310847).
50 sed -i scripts/Makefile.am \
51 -e '/850_Dpkg_Compression.t/d' \
52 || die "sed failed"
53 # test fails (bug #414095)
54 sed -i utils/Makefile.am \
55 -e '/^test_cases/d;/100_update_alternatives/d' || die
56
57 eautoreconf
58 }
59
60 src_configure() {
61 tc-export CC
62 econf \
63 ${myconf} \
64 $(use_enable dselect) \
65 $(use_enable unicode) \
66 $(use_with bzip2 bz2) \
67 $(use_with zlib) \
68 --disable-compiler-warnings \
69 --disable-compiler-optimisations \
70 --disable-linker-optimisations \
71 --without-selinux \
72 --disable-start-stop-daemon
73 }
74
75 src_install() {
76 strip-linguas ${LANGS}
77 if [ -z "${LINGUAS}" ] ; then
78 LINGUAS=none
79 fi
80
81 emake DESTDIR="${D}" LINGUAS="${LINGUAS}" install || die "emake install failed"
82 rm "${ED}"/usr/sbin/install-info || die "rm install-info failed"
83 dodoc ChangeLog THANKS TODO
84 keepdir /usr/$(get_libdir)/db/methods/{mnt,floppy,disk}
85 keepdir /usr/$(get_libdir)/db/{alternatives,info,methods,parts,updates}
86 }

  ViewVC Help
Powered by ViewVC 1.1.20