Gentoo Archives: gentoo-commits

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