Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/libarchive/
Date: Sat, 02 Jul 2016 00:04:51
Message-Id: 1467417072.df00323905dd19150fea4d24a53b317648299f01.williamh@gentoo
1 commit: df00323905dd19150fea4d24a53b317648299f01
2 Author: William Hubbs <williamh <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 1 23:49:03 2016 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 1 23:51:12 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df003239
7
8 app-arch/libarchive: 3.2.1 version bump for #582710
9
10 Package-Manager: portage-2.2.28
11
12 app-arch/libarchive/Manifest | 1 +
13 app-arch/libarchive/libarchive-3.2.1.ebuild | 120 ++++++++++++++++++++++++++++
14 2 files changed, 121 insertions(+)
15
16 diff --git a/app-arch/libarchive/Manifest b/app-arch/libarchive/Manifest
17 index d9a56ff..87b1fb0 100644
18 --- a/app-arch/libarchive/Manifest
19 +++ b/app-arch/libarchive/Manifest
20 @@ -1 +1,2 @@
21 DIST libarchive-3.1.2.tar.gz 4527540 SHA256 eb87eacd8fe49e8d90c8fdc189813023ccc319c5e752b01fb6ad0cc7b2c53d5e SHA512 1f3c2a675031f93c7d42ae2ed06742b0b1e2236ff57d9117791d62fb8ae77d6cafffbcb5d45b5bd98daa908bd18c576cf82e01a9b1eba699705e23eff3688114 WHIRLPOOL b90f336afb5264be91fb17d7dae3d5697e3f84e24d276af1d5ac076fe15ef6f5756488f09506fabe470473becb5449cd1f34865309dcf8a914e6e83506e8695f
22 +DIST libarchive-3.2.1.tar.gz 5448888 SHA256 72ee1a4e3fd534525f13a0ba1aa7b05b203d186e0c6072a8a4738649d0b3cfd2 SHA512 a5d43cb0bf36b687fabfbc874e7adc1fa94c563e7f073e107db8d4e79e8d0d8146cb985809f8115fbb882fc2d8a2a477d0a7364e93e6df62f292bb5e9865ec5c WHIRLPOOL 1dd79ec3d7cf53be237d6730476c6a47c0722a5a7d0f2adc347aa491ba95ba7c77342a39a9e3d0fbff64111b552bb558cb571aa74dd6c18e6c60987bf0f41d7c
23
24 diff --git a/app-arch/libarchive/libarchive-3.2.1.ebuild b/app-arch/libarchive/libarchive-3.2.1.ebuild
25 new file mode 100644
26 index 0000000..9566991
27 --- /dev/null
28 +++ b/app-arch/libarchive/libarchive-3.2.1.ebuild
29 @@ -0,0 +1,120 @@
30 +# Copyright 1999-2016 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI=6
35 +inherit autotools eutils multilib-minimal toolchain-funcs
36 +
37 +DESCRIPTION="BSD tar command"
38 +HOMEPAGE="http://www.libarchive.org/"
39 +SRC_URI="http://www.libarchive.org/downloads/${P}.tar.gz"
40 +
41 +LICENSE="BSD BSD-2 BSD-4 public-domain"
42 +SLOT="0/13"
43 +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"
44 +IUSE="acl +bzip2 +e2fsprogs expat +iconv kernel_linux libressl +lzma lzo nettle static-libs xattr +zlib"
45 +
46 +RDEPEND="
47 + !libressl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] )
48 + libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP}] )
49 + acl? ( virtual/acl[${MULTILIB_USEDEP}] )
50 + bzip2? ( app-arch/bzip2[${MULTILIB_USEDEP}] )
51 + expat? ( dev-libs/expat[${MULTILIB_USEDEP}] )
52 + !expat? ( dev-libs/libxml2[${MULTILIB_USEDEP}] )
53 + iconv? ( virtual/libiconv[${MULTILIB_USEDEP}] )
54 + kernel_linux? (
55 + xattr? ( sys-apps/attr[${MULTILIB_USEDEP}] )
56 + )
57 + lzma? ( app-arch/xz-utils[${MULTILIB_USEDEP}] )
58 + lzo? ( >=dev-libs/lzo-2[${MULTILIB_USEDEP}] )
59 + nettle? ( dev-libs/nettle:0=[${MULTILIB_USEDEP}] )
60 + zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] )"
61 +DEPEND="${RDEPEND}
62 + kernel_linux? (
63 + virtual/os-headers
64 + e2fsprogs? ( sys-fs/e2fsprogs )
65 + )"
66 +
67 +DOCS=( NEWS README )
68 +
69 +src_prepare() {
70 + default
71 + eautoreconf
72 +}
73 +
74 +multilib_src_configure() {
75 + export ac_cv_header_ext2fs_ext2_fs_h=$(usex e2fsprogs) #354923
76 +
77 + local myconf=()
78 + myconf=(
79 + $(use_enable static-libs static)
80 + $(use_enable xattr)
81 + $(use_enable acl)
82 + $(use_with zlib)
83 + $(use_with bzip2 bz2lib)
84 + $(use_with iconv)
85 + $(use_with lzma)
86 + $(use_with lzo lzo2)
87 + $(use_with nettle)
88 + $(use_with !expat xml2)
89 + $(use_with expat)
90 + )
91 + if multilib_is_native_abi ; then myconf+=(
92 + --enable-bsdtar=$(tc-is-static-only && echo static || echo shared)
93 + --enable-bsdcpio=$(tc-is-static-only && echo static || echo shared)
94 + ); else myconf+=(
95 + --disable-bsdtar
96 + --disable-bsdcpio
97 + ); fi
98 +
99 + # We disable lzmadec because we support the newer liblzma from xz-utils
100 + # and not liblzmadec with this version.
101 + myconf+=(
102 + --without-lzmadec
103 + )
104 +
105 + ECONF_SOURCE="${S}" econf "${myconf[@]}"
106 +}
107 +
108 +multilib_src_compile() {
109 + if multilib_is_native_abi ; then
110 + emake
111 + else
112 + emake libarchive.la
113 + fi
114 +}
115 +
116 +multilib_src_test() {
117 + # Replace the default src_test so that it builds tests in parallel
118 + multilib_is_native_abi && emake check
119 +}
120 +
121 +multilib_src_install() {
122 + if multilib_is_native_abi ; then
123 + emake DESTDIR="${D}" install
124 +
125 + # Libs.private: should be used from libarchive.pc instead
126 + prune_libtool_files
127 +
128 + # Create tar symlink for FreeBSD
129 + if ! use prefix && [[ ${CHOST} == *-freebsd* ]]; then
130 + dosym bsdtar /usr/bin/tar
131 + echo '.so bsdtar.1' > "${T}"/tar.1
132 + doman "${T}"/tar.1
133 + # We may wish to switch to symlink bsdcpio to cpio too one day
134 + fi
135 + else
136 + emake DESTDIR="${D}" \
137 + install-includeHEADERS \
138 + install-libLTLIBRARIES \
139 + install-pkgconfigDATA
140 +
141 + # Libs.private: should be used from libarchive.pc instead
142 + prune_libtool_files
143 + fi
144 +}
145 +
146 +multilib_src_install_all() {
147 + cd "${S}" || die
148 + dodoc "${DOCS[@]}"
149 +}