Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/libarchive/
Date: Mon, 27 Jan 2020 19:36:33
Message-Id: 1580153784.a5438c5858dfedbb0fa8eee13d39cf76f78b1ba1.mgorny@gentoo
1 commit: a5438c5858dfedbb0fa8eee13d39cf76f78b1ba1
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 27 19:19:02 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 27 19:36:24 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5438c58
7
8 app-arch/libarchive: Bump to 3.4.1
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 app-arch/libarchive/Manifest | 1 +
13 app-arch/libarchive/libarchive-3.4.1.ebuild | 134 ++++++++++++++++++++++++++++
14 2 files changed, 135 insertions(+)
15
16 diff --git a/app-arch/libarchive/Manifest b/app-arch/libarchive/Manifest
17 index 16c2d36b7b2..c39e2cf187c 100644
18 --- a/app-arch/libarchive/Manifest
19 +++ b/app-arch/libarchive/Manifest
20 @@ -1,2 +1,3 @@
21 DIST libarchive-3.3.3.tar.gz 6535598 BLAKE2B 627949d24572b8345800e72a24d1e8d95cd0f19bb7fab70e2f36be011fee6f345eecfa9563640068b10888520aafdf30b1e3426b7e2743589cabd3ab5c270a22 SHA512 9d12b47d6976efa9f98e62c25d8b85fd745d4e9ca7b7e6d36bfe095dfe5c4db017d4e785d110f3758f5938dad6f1a1b009267fd7e82cb7212e93e1aea237bab7
22 DIST libarchive-3.4.0.tar.gz 6908093 BLAKE2B 6da5798ceabb542d8b877b3d672f6e6431ed7340ec0160a5d8cef28591b516b55d426002379eddc632a478bfd2f034a358f8552f55c9f066fd7f5c31c218b462 SHA512 2f9e2a551a6bcab56fb1a030b5d656df7299a3d151465aa02f0420d344d2fada49dee4755b3abff9095f62519e14dc9af8afa1695ecc6d5fdb4f0b28e6ede852
23 +DIST libarchive-3.4.1.tar.gz 6931920 BLAKE2B e1175cac67dd265be711005ff19dc16cf807cfd2f3f77f4530165adbc11bb33b58bdb28815b7d787414b8f4c3ec180a5607283618e5c319447a414141c89c19d SHA512 fa7e9e5c8c00cd7e98f0ff373c300771f0a87317bca031c3030bac29b96b02ab66cf34905147e4135824bf9cdfdd1dedf3032e93d6d706c9a11e968da1ed8dad
24
25 diff --git a/app-arch/libarchive/libarchive-3.4.1.ebuild b/app-arch/libarchive/libarchive-3.4.1.ebuild
26 new file mode 100644
27 index 00000000000..c4d0a5b1fc9
28 --- /dev/null
29 +++ b/app-arch/libarchive/libarchive-3.4.1.ebuild
30 @@ -0,0 +1,134 @@
31 +# Copyright 1999-2020 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +inherit libtool multilib-minimal toolchain-funcs
36 +
37 +DESCRIPTION="Multi-format archive and compression library"
38 +HOMEPAGE="https://www.libarchive.org/"
39 +SRC_URI="https://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 ~riscv ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
44 +IUSE="acl blake2 +bzip2 +e2fsprogs expat +iconv kernel_linux libressl lz4 +lzma lzo nettle static-libs +threads xattr +zlib zstd"
45 +
46 +RDEPEND="
47 + acl? ( virtual/acl[${MULTILIB_USEDEP}] )
48 + blake2? ( app-crypt/libb2[${MULTILIB_USEDEP}] )
49 + bzip2? ( app-arch/bzip2[${MULTILIB_USEDEP}] )
50 + expat? ( dev-libs/expat[${MULTILIB_USEDEP}] )
51 + !expat? ( dev-libs/libxml2[${MULTILIB_USEDEP}] )
52 + iconv? ( virtual/libiconv[${MULTILIB_USEDEP}] )
53 + kernel_linux? (
54 + xattr? ( sys-apps/attr[${MULTILIB_USEDEP}] )
55 + )
56 + !libressl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] )
57 + libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP}] )
58 + lz4? ( >=app-arch/lz4-0_p131:0=[${MULTILIB_USEDEP}] )
59 + lzma? ( app-arch/xz-utils[threads=,${MULTILIB_USEDEP}] )
60 + lzo? ( >=dev-libs/lzo-2[${MULTILIB_USEDEP}] )
61 + nettle? ( dev-libs/nettle:0=[${MULTILIB_USEDEP}] )
62 + zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] )
63 + zstd? ( app-arch/zstd[${MULTILIB_USEDEP}] )"
64 +DEPEND="${RDEPEND}
65 + kernel_linux? (
66 + virtual/os-headers
67 + e2fsprogs? ( sys-fs/e2fsprogs )
68 + )"
69 +
70 +PATCHES=(
71 + "${FILESDIR}"/${PN}-3.3.3-libressl.patch
72 +)
73 +
74 +# Various test problems, starting with the fact that sandbox
75 +# explodes on long paths. https://bugs.gentoo.org/598806
76 +RESTRICT="test"
77 +
78 +src_prepare() {
79 + default
80 + elibtoolize # is required for Solaris sol2_ld linker fix
81 +}
82 +
83 +multilib_src_configure() {
84 + export ac_cv_header_ext2fs_ext2_fs_h=$(usex e2fsprogs) #354923
85 +
86 + local myconf=(
87 + $(use_enable acl)
88 + $(use_enable static-libs static)
89 + $(use_enable xattr)
90 + $(use_with blake2 libb2)
91 + $(use_with bzip2 bz2lib)
92 + $(use_with expat)
93 + $(use_with !expat xml2)
94 + $(use_with iconv)
95 + $(use_with lz4)
96 + $(use_with lzma)
97 + $(use_with lzo lzo2)
98 + $(use_with nettle)
99 + $(use_with zlib)
100 + $(use_with zstd)
101 +
102 + # Windows-specific
103 + --without-cng
104 + )
105 + if multilib_is_native_abi ; then
106 + myconf+=(
107 + --enable-bsdcat=$(tc-is-static-only && echo static || echo shared)
108 + --enable-bsdcpio=$(tc-is-static-only && echo static || echo shared)
109 + --enable-bsdtar=$(tc-is-static-only && echo static || echo shared)
110 + )
111 + else
112 + myconf+=(
113 + --disable-bsdcat
114 + --disable-bsdcpio
115 + --disable-bsdtar
116 + )
117 + fi
118 +
119 + ECONF_SOURCE="${S}" econf "${myconf[@]}"
120 +}
121 +
122 +multilib_src_compile() {
123 + if multilib_is_native_abi ; then
124 + emake
125 + else
126 + emake libarchive.la
127 + fi
128 +}
129 +
130 +multilib_src_test() {
131 + # Replace the default src_test so that it builds tests in parallel
132 + multilib_is_native_abi && emake check
133 +}
134 +
135 +multilib_src_install() {
136 + if multilib_is_native_abi ; then
137 + emake DESTDIR="${D}" install
138 +
139 + # Create symlinks for FreeBSD
140 + if ! use prefix && [[ ${CHOST} == *-freebsd* ]]; then
141 + # Exclude cat for the time being #589876
142 + for bin in cpio tar; do
143 + dosym bsd${bin} /usr/bin/${bin}
144 + echo '.so bsd${bin}.1' > "${T}"/${bin}.1
145 + doman "${T}"/${bin}.1
146 + done
147 + fi
148 + else
149 + local install_targets=(
150 + install-includeHEADERS
151 + install-libLTLIBRARIES
152 + install-pkgconfigDATA
153 + )
154 + emake DESTDIR="${D}" "${install_targets[@]}"
155 + fi
156 +
157 + # Libs.private: should be used from libarchive.pc instead
158 + find "${ED}" -type f -name "*.la" -delete || die
159 +}
160 +
161 +multilib_src_install_all() {
162 + cd "${S}" || die
163 + einstalldocs
164 +}