Gentoo Archives: gentoo-commits

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