app-arch/libarchive: 3.2.1 version bump for #582710
authorWilliam Hubbs <williamh@gentoo.org>
Fri, 1 Jul 2016 23:49:03 +0000 (18:49 -0500)
committerWilliam Hubbs <williamh@gentoo.org>
Fri, 1 Jul 2016 23:51:12 +0000 (18:51 -0500)
Package-Manager: portage-2.2.28

app-arch/libarchive/Manifest
app-arch/libarchive/libarchive-3.2.1.ebuild [new file with mode: 0644]

index d9a56ff4e636aafca321ba8b27b522b5534004a6..87b1fb0241ff342e4fa5014d5602c0710fb4b25d 100644 (file)
@@ -1 +1,2 @@
 DIST libarchive-3.1.2.tar.gz 4527540 SHA256 eb87eacd8fe49e8d90c8fdc189813023ccc319c5e752b01fb6ad0cc7b2c53d5e SHA512 1f3c2a675031f93c7d42ae2ed06742b0b1e2236ff57d9117791d62fb8ae77d6cafffbcb5d45b5bd98daa908bd18c576cf82e01a9b1eba699705e23eff3688114 WHIRLPOOL b90f336afb5264be91fb17d7dae3d5697e3f84e24d276af1d5ac076fe15ef6f5756488f09506fabe470473becb5449cd1f34865309dcf8a914e6e83506e8695f
+DIST libarchive-3.2.1.tar.gz 5448888 SHA256 72ee1a4e3fd534525f13a0ba1aa7b05b203d186e0c6072a8a4738649d0b3cfd2 SHA512 a5d43cb0bf36b687fabfbc874e7adc1fa94c563e7f073e107db8d4e79e8d0d8146cb985809f8115fbb882fc2d8a2a477d0a7364e93e6df62f292bb5e9865ec5c WHIRLPOOL 1dd79ec3d7cf53be237d6730476c6a47c0722a5a7d0f2adc347aa491ba95ba7c77342a39a9e3d0fbff64111b552bb558cb571aa74dd6c18e6c60987bf0f41d7c
diff --git a/app-arch/libarchive/libarchive-3.2.1.ebuild b/app-arch/libarchive/libarchive-3.2.1.ebuild
new file mode 100644 (file)
index 0000000..9566991
--- /dev/null
@@ -0,0 +1,120 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit autotools eutils multilib-minimal toolchain-funcs
+
+DESCRIPTION="BSD tar command"
+HOMEPAGE="http://www.libarchive.org/"
+SRC_URI="http://www.libarchive.org/downloads/${P}.tar.gz"
+
+LICENSE="BSD BSD-2 BSD-4 public-domain"
+SLOT="0/13"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="acl +bzip2 +e2fsprogs expat +iconv kernel_linux libressl +lzma lzo nettle static-libs xattr +zlib"
+
+RDEPEND="
+       !libressl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] )
+       libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP}] )
+       acl? ( virtual/acl[${MULTILIB_USEDEP}] )
+       bzip2? ( app-arch/bzip2[${MULTILIB_USEDEP}] )
+       expat? ( dev-libs/expat[${MULTILIB_USEDEP}] )
+       !expat? ( dev-libs/libxml2[${MULTILIB_USEDEP}] )
+       iconv? ( virtual/libiconv[${MULTILIB_USEDEP}] )
+       kernel_linux? (
+               xattr? ( sys-apps/attr[${MULTILIB_USEDEP}] )
+               )
+       lzma? ( app-arch/xz-utils[${MULTILIB_USEDEP}] )
+       lzo? ( >=dev-libs/lzo-2[${MULTILIB_USEDEP}] )
+       nettle? ( dev-libs/nettle:0=[${MULTILIB_USEDEP}] )
+       zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}
+       kernel_linux? (
+               virtual/os-headers
+               e2fsprogs? ( sys-fs/e2fsprogs )
+               )"
+
+DOCS=( NEWS README )
+
+src_prepare() {
+       default
+       eautoreconf
+}
+
+multilib_src_configure() {
+       export ac_cv_header_ext2fs_ext2_fs_h=$(usex e2fsprogs) #354923
+
+       local myconf=()
+       myconf=(
+               $(use_enable static-libs static)
+               $(use_enable xattr)
+               $(use_enable acl)
+               $(use_with zlib)
+               $(use_with bzip2 bz2lib)
+               $(use_with iconv)
+               $(use_with lzma)
+               $(use_with lzo lzo2)
+               $(use_with nettle)
+               $(use_with !expat xml2)
+               $(use_with expat)
+       )
+       if multilib_is_native_abi ; then myconf+=(
+               --enable-bsdtar=$(tc-is-static-only && echo static || echo shared)
+               --enable-bsdcpio=$(tc-is-static-only && echo static || echo shared)
+       ); else myconf+=(
+               --disable-bsdtar
+               --disable-bsdcpio
+       ); fi
+
+       # We disable lzmadec because we support the newer liblzma from xz-utils
+       # and not liblzmadec with this version.
+       myconf+=(
+               --without-lzmadec
+       )
+
+       ECONF_SOURCE="${S}" econf "${myconf[@]}"
+}
+
+multilib_src_compile() {
+       if multilib_is_native_abi ; then
+               emake
+       else
+               emake libarchive.la
+       fi
+}
+
+multilib_src_test() {
+       # Replace the default src_test so that it builds tests in parallel
+       multilib_is_native_abi && emake check
+}
+
+multilib_src_install() {
+       if multilib_is_native_abi ; then
+               emake DESTDIR="${D}" install
+
+               # Libs.private: should be used from libarchive.pc instead
+               prune_libtool_files
+
+               # Create tar symlink for FreeBSD
+               if ! use prefix && [[ ${CHOST} == *-freebsd* ]]; then
+                       dosym bsdtar /usr/bin/tar
+                       echo '.so bsdtar.1' > "${T}"/tar.1
+                       doman "${T}"/tar.1
+                       # We may wish to switch to symlink bsdcpio to cpio too one day
+               fi
+       else
+               emake DESTDIR="${D}" \
+                       install-includeHEADERS \
+                       install-libLTLIBRARIES \
+                       install-pkgconfigDATA
+
+               # Libs.private: should be used from libarchive.pc instead
+               prune_libtool_files
+       fi
+}
+
+multilib_src_install_all() {
+       cd "${S}" || die
+       dodoc "${DOCS[@]}"
+}