1 |
commit: 0248917d2b5dbc2756af10daa9b6f4600e5004cf |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 26 08:17:49 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 26 08:26:40 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0248917d |
7 |
|
8 |
app-arch/libarchive: Bump to 3.5.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.5.1.ebuild | 141 ++++++++++++++++++++++++++++ |
14 |
2 files changed, 142 insertions(+) |
15 |
|
16 |
diff --git a/app-arch/libarchive/Manifest b/app-arch/libarchive/Manifest |
17 |
index 1684ab58060..154a0d252b7 100644 |
18 |
--- a/app-arch/libarchive/Manifest |
19 |
+++ b/app-arch/libarchive/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST libarchive-3.4.3.tar.gz 6990533 BLAKE2B 12f97e8e4032daf0fa8f9e1839f9c7ef80fda0b2a0ba703c67d860437fad6a293484a61417f72eff933179d544cfed45083e7886f462276bc6abbce1097e6256 SHA512 d00167dec6e65a0b17b46a1e3bb0242d85716dbc637afd233360cb515b2750dafe0ff0644b9e01ad23534340b405a8551f496c5e39fba9ee99355a515580d65d |
22 |
DIST libarchive-3.5.0.tar.gz 7017726 BLAKE2B 651c9e28d1a1b0a6dd2dbd2aefa0a47ba23d5fb5e96c1bc8c059152952c284f089ce16626b9fbc2cbea70dac2d16ab949235bf4c28f38235f23aeb6da3d69f0d SHA512 9a3d4ce9d4bc856c8d85b846d9d0c9f30369393aa107941c202ba0100c6bac009952c92d809e6981276b3bf91e9f37d018e7f1446b17c0c1c316fe5aafe15440 |
23 |
+DIST libarchive-3.5.1.tar.gz 7008338 BLAKE2B 243dfda2bd4582bbc20679328b89aae0c530475c822dcf9ff25c65df2017b8f18bb616142d6ab016ccea4a5aa1b410d46b913c2ee0afefd2fdb1a41cf51585d9 SHA512 08ddd74bef4cef0981739da202879f36cf7ca33a8f6d438724588efe3ab8477f2f1d0cccf7b8ed0bedfc0c8d0cab16ee3ae5c0c6e83b6811bc650d7d7471a996 |
24 |
|
25 |
diff --git a/app-arch/libarchive/libarchive-3.5.1.ebuild b/app-arch/libarchive/libarchive-3.5.1.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..d59eb05c046 |
28 |
--- /dev/null |
29 |
+++ b/app-arch/libarchive/libarchive-3.5.1.ebuild |
30 |
@@ -0,0 +1,141 @@ |
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 ~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 |
+ "${FILESDIR}"/${PN}-3.5.0-darwin-strnlen.patch # drop on next release |
73 |
+) |
74 |
+ |
75 |
+src_prepare() { |
76 |
+ default |
77 |
+ elibtoolize # is required for Solaris sol2_ld linker fix |
78 |
+} |
79 |
+ |
80 |
+multilib_src_configure() { |
81 |
+ export ac_cv_header_ext2fs_ext2_fs_h=$(usex e2fsprogs) #354923 |
82 |
+ |
83 |
+ local myconf=( |
84 |
+ $(use_enable acl) |
85 |
+ $(use_enable static-libs static) |
86 |
+ $(use_enable xattr) |
87 |
+ $(use_with blake2 libb2) |
88 |
+ $(use_with bzip2 bz2lib) |
89 |
+ $(use_with expat) |
90 |
+ $(use_with !expat xml2) |
91 |
+ $(use_with iconv) |
92 |
+ $(use_with lz4) |
93 |
+ $(use_with lzma) |
94 |
+ $(use_with lzo lzo2) |
95 |
+ $(use_with nettle) |
96 |
+ $(use_with zlib) |
97 |
+ $(use_with zstd) |
98 |
+ |
99 |
+ # Windows-specific |
100 |
+ --without-cng |
101 |
+ ) |
102 |
+ if multilib_is_native_abi ; then |
103 |
+ myconf+=( |
104 |
+ --enable-bsdcat=$(tc-is-static-only && echo static || echo shared) |
105 |
+ --enable-bsdcpio=$(tc-is-static-only && echo static || echo shared) |
106 |
+ --enable-bsdtar=$(tc-is-static-only && echo static || echo shared) |
107 |
+ ) |
108 |
+ else |
109 |
+ myconf+=( |
110 |
+ --disable-bsdcat |
111 |
+ --disable-bsdcpio |
112 |
+ --disable-bsdtar |
113 |
+ ) |
114 |
+ fi |
115 |
+ |
116 |
+ ECONF_SOURCE="${S}" econf "${myconf[@]}" |
117 |
+} |
118 |
+ |
119 |
+multilib_src_compile() { |
120 |
+ if multilib_is_native_abi ; then |
121 |
+ emake |
122 |
+ else |
123 |
+ emake libarchive.la |
124 |
+ fi |
125 |
+} |
126 |
+ |
127 |
+src_test() { |
128 |
+ mkdir -p "${T}"/bin || die |
129 |
+ # tests fail when lbzip2[symlink] is used in place of ref bunzip2 |
130 |
+ ln -s "${BROOT}/bin/bunzip2" "${T}"/bin || die |
131 |
+ local -x PATH=${T}/bin:${PATH} |
132 |
+ multilib-minimal_src_test |
133 |
+} |
134 |
+ |
135 |
+multilib_src_test() { |
136 |
+ # sandbox is breaking long symlink behavior |
137 |
+ local -x SANDBOX_ON=0 |
138 |
+ local -x LD_PRELOAD= |
139 |
+ emake check |
140 |
+} |
141 |
+ |
142 |
+multilib_src_install() { |
143 |
+ if multilib_is_native_abi ; then |
144 |
+ emake DESTDIR="${D}" install |
145 |
+ |
146 |
+ # Create symlinks for FreeBSD |
147 |
+ if ! use prefix && [[ ${CHOST} == *-freebsd* ]]; then |
148 |
+ # Exclude cat for the time being #589876 |
149 |
+ for bin in cpio tar; do |
150 |
+ dosym bsd${bin} /usr/bin/${bin} |
151 |
+ echo '.so bsd${bin}.1' > "${T}"/${bin}.1 |
152 |
+ doman "${T}"/${bin}.1 |
153 |
+ done |
154 |
+ fi |
155 |
+ else |
156 |
+ local install_targets=( |
157 |
+ install-includeHEADERS |
158 |
+ install-libLTLIBRARIES |
159 |
+ install-pkgconfigDATA |
160 |
+ ) |
161 |
+ emake DESTDIR="${D}" "${install_targets[@]}" |
162 |
+ fi |
163 |
+ |
164 |
+ # Libs.private: should be used from libarchive.pc instead |
165 |
+ find "${ED}" -type f -name "*.la" -delete || die |
166 |
+} |
167 |
+ |
168 |
+multilib_src_install_all() { |
169 |
+ cd "${S}" || die |
170 |
+ einstalldocs |
171 |
+} |