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: metadata.xml ChangeLog libarchive-2.7.1-r1.ebuild
Date: Sun, 25 Oct 2009 19:37:11
Message-Id: E1N28tp-0005U7-3L@stork.gentoo.org
1 flameeyes 09/10/25 19:37:09
2
3 Modified: metadata.xml ChangeLog
4 Added: libarchive-2.7.1-r1.ebuild
5 Log:
6 Bump revision adding a static-libs USE flag to disable libarchive.a build; also remove .la file when disabling static libraries (thanks to Mauro Toffanin for this). Extend the metadata USE documentation to explain that the various USE flags don't stop bsdtar from calling the decompressor command as a filter.
7 (Portage version: 2.2_rc46/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.3 app-arch/libarchive/metadata.xml
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/libarchive/metadata.xml?rev=1.3&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/libarchive/metadata.xml?rev=1.3&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/libarchive/metadata.xml?r1=1.2&r2=1.3
15
16 Index: metadata.xml
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-arch/libarchive/metadata.xml,v
19 retrieving revision 1.2
20 retrieving revision 1.3
21 diff -u -r1.2 -r1.3
22 --- metadata.xml 13 Nov 2008 01:38:48 -0000 1.2
23 +++ metadata.xml 25 Oct 2009 19:37:08 -0000 1.3
24 @@ -12,16 +12,33 @@
25 <use>
26 <flag name="static">
27 Build bsdtar and bsdcpio as static archives, removing
28 - dependencies over the enabled compression libraries (lzmadec,
29 - libbz2, zlib).
30 + dependencies over the enabled compression libraries (lzma,
31 + lzmadec, libbz2, zlib).
32 + </flag>
33 + <flag name="zlib">
34 + Allow accessing gzip-compressed archives through
35 + <pkg>sys-libs/zlib</pkg>. This only affects libarchive's native
36 + support: bsdtar will keep using gunzip as a filter if that's not
37 + built-in. It's also needed for supporting extraction of ZIP
38 + files.
39 </flag>
40 <flag name="bzip2">
41 Allow accessing bzip2-compressed archives through libbz2 (which
42 - comes with bzip2).
43 + comes with <pkg>app-arch/bzip2</pkg>). This only affects
44 + libarchive's native support: bsdtar will keep using bunzip2 as a
45 + filter if that's not built-in.
46 </flag>
47 - <flag name="lzma">
48 + <flag name="lzma" restrict="&lt;app-arch/libarchive-2.7.1">
49 Allow accessing lzma-compressed archives through the lzmadec
50 - library.
51 + library (<pkg>app-arch/lzma-utils</pkg>). This only affects
52 + libarchive's native support: bsdtar will keep using unlzma as a
53 + filter if that's not built-in.
54 + </flag>
55 + <flag name="lzma" restrict="&gt;=app-arch/libarchive-2.7.1">
56 + Allow accessing lzma-compressed archives through the lzma
57 + library (<pkg>app-arch/xz-utils</pkg>). This only affects
58 + libarchive's native support: bsdtar will keep using unlzma as a
59 + filter if that's not built-in.
60 </flag>
61 </use>
62 </pkgmetadata>
63
64
65
66 1.68 app-arch/libarchive/ChangeLog
67
68 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/libarchive/ChangeLog?rev=1.68&view=markup
69 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/libarchive/ChangeLog?rev=1.68&content-type=text/plain
70 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/libarchive/ChangeLog?r1=1.67&r2=1.68
71
72 Index: ChangeLog
73 ===================================================================
74 RCS file: /var/cvsroot/gentoo-x86/app-arch/libarchive/ChangeLog,v
75 retrieving revision 1.67
76 retrieving revision 1.68
77 diff -u -r1.67 -r1.68
78 --- ChangeLog 9 Sep 2009 13:04:32 -0000 1.67
79 +++ ChangeLog 25 Oct 2009 19:37:08 -0000 1.68
80 @@ -1,6 +1,16 @@
81 # ChangeLog for app-arch/libarchive
82 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
83 -# $Header: /var/cvsroot/gentoo-x86/app-arch/libarchive/ChangeLog,v 1.67 2009/09/09 13:04:32 flameeyes Exp $
84 +# $Header: /var/cvsroot/gentoo-x86/app-arch/libarchive/ChangeLog,v 1.68 2009/10/25 19:37:08 flameeyes Exp $
85 +
86 +*libarchive-2.7.1-r1 (25 Oct 2009)
87 +
88 + 25 Oct 2009; Diego E. Pettenò <flameeyes@g.o>
89 + +libarchive-2.7.1-r1.ebuild, metadata.xml:
90 + Bump revision adding a static-libs USE flag to disable libarchive.a build;
91 + also remove .la file when disabling static libraries (thanks to Mauro
92 + Toffanin for this). Extend the metadata USE documentation to explain that
93 + the various USE flags don't stop bsdtar from calling the decompressor
94 + command as a filter.
95
96 *libarchive-2.7.1 (09 Sep 2009)
97
98
99
100
101 1.1 app-arch/libarchive/libarchive-2.7.1-r1.ebuild
102
103 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/libarchive/libarchive-2.7.1-r1.ebuild?rev=1.1&view=markup
104 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/libarchive/libarchive-2.7.1-r1.ebuild?rev=1.1&content-type=text/plain
105
106 Index: libarchive-2.7.1-r1.ebuild
107 ===================================================================
108 # Copyright 1999-2009 Gentoo Foundation
109 # Distributed under the terms of the GNU General Public License v2
110 # $Header: /var/cvsroot/gentoo-x86/app-arch/libarchive/libarchive-2.7.1-r1.ebuild,v 1.1 2009/10/25 19:37:08 flameeyes Exp $
111
112 EAPI="2"
113
114 inherit eutils libtool toolchain-funcs flag-o-matic
115
116 DESCRIPTION="BSD tar command"
117 HOMEPAGE="http://people.freebsd.org/~kientzle/libarchive"
118 SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz
119 http://people.freebsd.org/~kientzle/libarchive/src/${P}.tar.gz"
120
121 LICENSE="BSD"
122 SLOT="0"
123 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
124 IUSE="static static-libs acl xattr kernel_linux +bzip2 +lzma +zlib"
125
126 COMPRESS_LIBS_DEPEND="lzma? ( app-arch/xz-utils )
127 bzip2? ( app-arch/bzip2 )
128 zlib? ( sys-libs/zlib )"
129
130 RDEPEND="!dev-libs/libarchive
131 dev-libs/openssl
132 acl? ( virtual/acl )
133 xattr? ( kernel_linux? ( sys-apps/attr ) )
134 !static? ( ${COMPRESS_LIBS_DEPEND} )"
135 DEPEND="${RDEPEND}
136 ${COMPRESS_LIBS_DEPEND}
137 kernel_linux? ( sys-fs/e2fsprogs
138 virtual/os-headers )"
139
140 src_prepare() {
141 elibtoolize
142 epunt_cxx
143 }
144
145 src_configure() {
146 local myconf
147
148 if ! use static ; then
149 myconf="--enable-bsdtar=shared --enable-bsdcpio=shared"
150 fi
151
152 # force static libs for static binaries
153 if use static && ! use static-libs; then
154 myconf="${myconf} --enable-static"
155 fi
156
157 # Check for need of this in 2.7.1 and later, on 2.7.0, -Werror was
158 # added to the final release, but since it's done in the
159 # Makefile.am we can just work it around this way.
160 append-flags -Wno-error
161
162 # We disable lzmadec because we support the newer liblzma from xz-utils
163 # and not liblzmadec with this version.
164 econf --bindir=/bin \
165 --enable-bsdtar --enable-bsdcpio \
166 $(use_enable acl) $(use_enable xattr) \
167 $(use_with zlib) \
168 $(use_with bzip2 bz2lib) $(use_with lzma) \
169 $(use_enable static-libs static) \
170 --without-lzmadec \
171 ${myconf} \
172 --disable-dependency-tracking || die "econf failed."
173 }
174
175 src_install() {
176 emake DESTDIR="${D}" install || die "emake install failed."
177
178 # remove useless .a and .la files (only for non static compilation)
179 use static-libs || find "${D}" \( -name '*.a' -or -name '*.la' \) -delete
180
181 # Create tar symlink for FreeBSD
182 if [[ ${CHOST} == *-freebsd* ]]; then
183 dosym bsdtar /bin/tar
184 dosym bsdtar.1 /usr/share/man/man1/tar.1
185 # We may wish to switch to symlink bsdcpio to cpio too one day
186 fi
187
188 dodoc NEWS README
189 dodir /$(get_libdir)
190 mv "${D}"/usr/$(get_libdir)/*.so* "${D}"/$(get_libdir)
191 gen_usr_ldscript libarchive.so
192 }