diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2010-01-05 15:12:20 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2010-01-05 15:12:20 +0000 |
commit | bb565afc0872d9ac4c34360e15d548756052d4b8 (patch) | |
tree | 111d3044f98a4f1324b2c09e4ece1089f45519ee /app-arch/libarchive | |
parent | Mask the alpha releases of libarchive. (diff) | |
download | gentoo-2-bb565afc0872d9ac4c34360e15d548756052d4b8.tar.gz gentoo-2-bb565afc0872d9ac4c34360e15d548756052d4b8.tar.bz2 gentoo-2-bb565afc0872d9ac4c34360e15d548756052d4b8.zip |
Bump latest alpha; also drop older versions. New version builds tests in parallel during test phase.
(Portage version: 2.2_rc61/cvs/Linux x86_64)
Diffstat (limited to 'app-arch/libarchive')
-rw-r--r-- | app-arch/libarchive/ChangeLog | 12 | ||||
-rw-r--r-- | app-arch/libarchive/libarchive-2.6.2.ebuild | 73 | ||||
-rw-r--r-- | app-arch/libarchive/libarchive-2.7.902a.ebuild (renamed from app-arch/libarchive/libarchive-2.7.1.ebuild) | 29 |
3 files changed, 29 insertions, 85 deletions
diff --git a/app-arch/libarchive/ChangeLog b/app-arch/libarchive/ChangeLog index b613384ea36f..3746879a9f50 100644 --- a/app-arch/libarchive/ChangeLog +++ b/app-arch/libarchive/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for app-arch/libarchive -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-arch/libarchive/ChangeLog,v 1.68 2009/10/25 19:37:08 flameeyes Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-arch/libarchive/ChangeLog,v 1.69 2010/01/05 15:12:20 flameeyes Exp $ + +*libarchive-2.7.902a (05 Jan 2010) + + 05 Jan 2010; Diego E. Pettenò <flameeyes@gentoo.org> + -libarchive-2.6.2.ebuild, -libarchive-2.7.1.ebuild, + +libarchive-2.7.902a.ebuild: + Bump latest alpha; also drop older versions. New version builds tests in + parallel during test phase. *libarchive-2.7.1-r1 (25 Oct 2009) diff --git a/app-arch/libarchive/libarchive-2.6.2.ebuild b/app-arch/libarchive/libarchive-2.6.2.ebuild deleted file mode 100644 index 9f448e240b0f..000000000000 --- a/app-arch/libarchive/libarchive-2.6.2.ebuild +++ /dev/null @@ -1,73 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-arch/libarchive/libarchive-2.6.2.ebuild,v 1.8 2009/04/27 13:51:00 jer Exp $ - -EAPI=1 - -inherit eutils libtool toolchain-funcs - -DESCRIPTION="BSD tar command" -HOMEPAGE="http://people.freebsd.org/~kientzle/libarchive" -SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz - http://people.freebsd.org/~kientzle/libarchive/src/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sh sparc ~sparc-fbsd x86 ~x86-fbsd" -IUSE="static acl xattr kernel_linux +bzip2 +lzma +zlib" - -COMPRESS_LIBS_DEPEND="lzma? ( app-arch/lzma-utils ) - bzip2? ( app-arch/bzip2 ) - zlib? ( sys-libs/zlib )" - -RDEPEND="!dev-libs/libarchive - kernel_linux? ( - acl? ( sys-apps/acl ) - xattr? ( sys-apps/attr ) - ) - !static? ( ${COMPRESS_LIBS_DEPEND} )" -DEPEND="${RDEPEND} - ${COMPRESS_LIBS_DEPEND} - kernel_linux? ( sys-fs/e2fsprogs - virtual/os-headers )" - -src_unpack() { - unpack ${A} - cd "${S}" - elibtoolize - epunt_cxx -} - -src_compile() { - local myconf - - if ! use static ; then - myconf="--enable-bsdtar=shared --enable-bsdcpio=shared" - fi - - econf --bindir=/bin \ - --enable-bsdtar --enable-bsdcpio \ - $(use_enable acl) $(use_enable xattr) \ - $(use_with zlib) \ - $(use_with bzip2 bz2lib) $(use_with lzma lzmadec) \ - ${myconf} \ - --disable-dependency-tracking || die "econf failed." - - emake || die "emake failed." -} - -src_install() { - emake DESTDIR="${D}" install || die "emake install failed." - - # Create tar symlink for FreeBSD - if [[ ${CHOST} == *-freebsd* ]]; then - dosym bsdtar /bin/tar - dosym bsdtar.1 /usr/share/man/man1/tar.1 - # We may wish to switch to symlink bsdcpio to cpio too one day - fi - - dodoc NEWS README - dodir /$(get_libdir) - mv "${D}"/usr/$(get_libdir)/*.so* "${D}"/$(get_libdir) - gen_usr_ldscript libarchive.so -} diff --git a/app-arch/libarchive/libarchive-2.7.1.ebuild b/app-arch/libarchive/libarchive-2.7.902a.ebuild index a9ac805f64eb..3f4210b476be 100644 --- a/app-arch/libarchive/libarchive-2.7.1.ebuild +++ b/app-arch/libarchive/libarchive-2.7.902a.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2009 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-arch/libarchive/libarchive-2.7.1.ebuild,v 1.1 2009/09/09 13:04:32 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-arch/libarchive/libarchive-2.7.902a.ebuild,v 1.1 2010/01/05 15:12:20 flameeyes Exp $ -EAPI=1 +EAPI="2" inherit eutils libtool toolchain-funcs flag-o-matic @@ -14,7 +14,7 @@ SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz LICENSE="BSD" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" -IUSE="static acl xattr kernel_linux +bzip2 +lzma +zlib" +IUSE="static static-libs acl xattr kernel_linux +bzip2 +lzma +zlib" COMPRESS_LIBS_DEPEND="lzma? ( app-arch/xz-utils ) bzip2? ( app-arch/bzip2 ) @@ -30,21 +30,23 @@ DEPEND="${RDEPEND} kernel_linux? ( sys-fs/e2fsprogs virtual/os-headers )" -src_unpack() { - unpack ${A} - cd "${S}" - +src_prepare() { elibtoolize epunt_cxx } -src_compile() { +src_configure() { local myconf if ! use static ; then myconf="--enable-bsdtar=shared --enable-bsdcpio=shared" fi + # force static libs for static binaries + if use static && ! use static-libs; then + myconf="${myconf} --enable-static" + fi + # Check for need of this in 2.7.1 and later, on 2.7.0, -Werror was # added to the final release, but since it's done in the # Makefile.am we can just work it around this way. @@ -57,16 +59,23 @@ src_compile() { $(use_enable acl) $(use_enable xattr) \ $(use_with zlib) \ $(use_with bzip2 bz2lib) $(use_with lzma) \ + $(use_enable static-libs static) \ --without-lzmadec \ ${myconf} \ --disable-dependency-tracking || die "econf failed." +} - emake || die "emake failed." +src_test() { + # Replace the default src_test so that it builds tests in parallel + emake check || die "tests failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed." + # remove useless .a and .la files (only for non static compilation) + use static-libs || find "${D}" \( -name '*.a' -or -name '*.la' \) -delete + # Create tar symlink for FreeBSD if [[ ${CHOST} == *-freebsd* ]]; then dosym bsdtar /bin/tar |