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