Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-arch/libarchive: ChangeLog libarchive-2.7.902a.ebuild libarchive-2.6.2.ebuild libarchive-2.7.1.ebuild
Date: Tue, 05 Jan 2010 15:12:25
Message-Id: E1NSB53-00069t-8R@stork.gentoo.org
1 flameeyes 10/01/05 15:12:21
2
3 Modified: ChangeLog
4 Added: libarchive-2.7.902a.ebuild
5 Removed: libarchive-2.6.2.ebuild libarchive-2.7.1.ebuild
6 Log:
7 Bump latest alpha; also drop older versions. New version builds tests in parallel during test phase.
8 (Portage version: 2.2_rc61/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.69 app-arch/libarchive/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/libarchive/ChangeLog?rev=1.69&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/libarchive/ChangeLog?rev=1.69&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/libarchive/ChangeLog?r1=1.68&r2=1.69
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-arch/libarchive/ChangeLog,v
20 retrieving revision 1.68
21 retrieving revision 1.69
22 diff -u -r1.68 -r1.69
23 --- ChangeLog 25 Oct 2009 19:37:08 -0000 1.68
24 +++ ChangeLog 5 Jan 2010 15:12:20 -0000 1.69
25 @@ -1,6 +1,14 @@
26 # ChangeLog for app-arch/libarchive
27 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-arch/libarchive/ChangeLog,v 1.68 2009/10/25 19:37:08 flameeyes Exp $
29 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/app-arch/libarchive/ChangeLog,v 1.69 2010/01/05 15:12:20 flameeyes Exp $
31 +
32 +*libarchive-2.7.902a (05 Jan 2010)
33 +
34 + 05 Jan 2010; Diego E. Pettenò <flameeyes@g.o>
35 + -libarchive-2.6.2.ebuild, -libarchive-2.7.1.ebuild,
36 + +libarchive-2.7.902a.ebuild:
37 + Bump latest alpha; also drop older versions. New version builds tests in
38 + parallel during test phase.
39
40 *libarchive-2.7.1-r1 (25 Oct 2009)
41
42
43
44
45 1.1 app-arch/libarchive/libarchive-2.7.902a.ebuild
46
47 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/libarchive/libarchive-2.7.902a.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/libarchive/libarchive-2.7.902a.ebuild?rev=1.1&content-type=text/plain
49
50 Index: libarchive-2.7.902a.ebuild
51 ===================================================================
52 # Copyright 1999-2010 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/app-arch/libarchive/libarchive-2.7.902a.ebuild,v 1.1 2010/01/05 15:12:20 flameeyes Exp $
55
56 EAPI="2"
57
58 inherit eutils libtool toolchain-funcs flag-o-matic
59
60 DESCRIPTION="BSD tar command"
61 HOMEPAGE="http://people.freebsd.org/~kientzle/libarchive"
62 SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz
63 http://people.freebsd.org/~kientzle/libarchive/src/${P}.tar.gz"
64
65 LICENSE="BSD"
66 SLOT="0"
67 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
68 IUSE="static static-libs acl xattr kernel_linux +bzip2 +lzma +zlib"
69
70 COMPRESS_LIBS_DEPEND="lzma? ( app-arch/xz-utils )
71 bzip2? ( app-arch/bzip2 )
72 zlib? ( sys-libs/zlib )"
73
74 RDEPEND="!dev-libs/libarchive
75 dev-libs/openssl
76 acl? ( virtual/acl )
77 xattr? ( kernel_linux? ( sys-apps/attr ) )
78 !static? ( ${COMPRESS_LIBS_DEPEND} )"
79 DEPEND="${RDEPEND}
80 ${COMPRESS_LIBS_DEPEND}
81 kernel_linux? ( sys-fs/e2fsprogs
82 virtual/os-headers )"
83
84 src_prepare() {
85 elibtoolize
86 epunt_cxx
87 }
88
89 src_configure() {
90 local myconf
91
92 if ! use static ; then
93 myconf="--enable-bsdtar=shared --enable-bsdcpio=shared"
94 fi
95
96 # force static libs for static binaries
97 if use static && ! use static-libs; then
98 myconf="${myconf} --enable-static"
99 fi
100
101 # Check for need of this in 2.7.1 and later, on 2.7.0, -Werror was
102 # added to the final release, but since it's done in the
103 # Makefile.am we can just work it around this way.
104 append-flags -Wno-error
105
106 # We disable lzmadec because we support the newer liblzma from xz-utils
107 # and not liblzmadec with this version.
108 econf --bindir=/bin \
109 --enable-bsdtar --enable-bsdcpio \
110 $(use_enable acl) $(use_enable xattr) \
111 $(use_with zlib) \
112 $(use_with bzip2 bz2lib) $(use_with lzma) \
113 $(use_enable static-libs static) \
114 --without-lzmadec \
115 ${myconf} \
116 --disable-dependency-tracking || die "econf failed."
117 }
118
119 src_test() {
120 # Replace the default src_test so that it builds tests in parallel
121 emake check || die "tests failed"
122 }
123
124 src_install() {
125 emake DESTDIR="${D}" install || die "emake install failed."
126
127 # remove useless .a and .la files (only for non static compilation)
128 use static-libs || find "${D}" \( -name '*.a' -or -name '*.la' \) -delete
129
130 # Create tar symlink for FreeBSD
131 if [[ ${CHOST} == *-freebsd* ]]; then
132 dosym bsdtar /bin/tar
133 dosym bsdtar.1 /usr/share/man/man1/tar.1
134 # We may wish to switch to symlink bsdcpio to cpio too one day
135 fi
136
137 dodoc NEWS README
138 dodir /$(get_libdir)
139 mv "${D}"/usr/$(get_libdir)/*.so* "${D}"/$(get_libdir)
140 gen_usr_ldscript libarchive.so
141 }