1 |
commit: 5c8f0b7f703087881f664d1c208820434636683a |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 1 11:29:38 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 1 11:29:47 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c8f0b7f |
7 |
|
8 |
app-arch/libarchive: Bump to 3.5.0 |
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.0.ebuild | 140 ++++++++++++++++++++++++++++ |
14 |
2 files changed, 141 insertions(+) |
15 |
|
16 |
diff --git a/app-arch/libarchive/Manifest b/app-arch/libarchive/Manifest |
17 |
index 0878de80977..1684ab58060 100644 |
18 |
--- a/app-arch/libarchive/Manifest |
19 |
+++ b/app-arch/libarchive/Manifest |
20 |
@@ -1 +1,2 @@ |
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 |
|
24 |
diff --git a/app-arch/libarchive/libarchive-3.5.0.ebuild b/app-arch/libarchive/libarchive-3.5.0.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..dde837017a8 |
27 |
--- /dev/null |
28 |
+++ b/app-arch/libarchive/libarchive-3.5.0.ebuild |
29 |
@@ -0,0 +1,140 @@ |
30 |
+# Copyright 1999-2020 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+inherit libtool multilib-minimal toolchain-funcs |
35 |
+ |
36 |
+DESCRIPTION="Multi-format archive and compression library" |
37 |
+HOMEPAGE="https://www.libarchive.org/" |
38 |
+SRC_URI="https://www.libarchive.org/downloads/${P}.tar.gz" |
39 |
+ |
40 |
+LICENSE="BSD BSD-2 BSD-4 public-domain" |
41 |
+SLOT="0/13" |
42 |
+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" |
43 |
+IUSE="acl blake2 +bzip2 +e2fsprogs expat +iconv kernel_linux libressl lz4 +lzma lzo nettle static-libs +threads xattr +zlib zstd" |
44 |
+ |
45 |
+RDEPEND=" |
46 |
+ acl? ( virtual/acl[${MULTILIB_USEDEP}] ) |
47 |
+ blake2? ( app-crypt/libb2[${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 |
+src_prepare() { |
74 |
+ default |
75 |
+ elibtoolize # is required for Solaris sol2_ld linker fix |
76 |
+} |
77 |
+ |
78 |
+multilib_src_configure() { |
79 |
+ export ac_cv_header_ext2fs_ext2_fs_h=$(usex e2fsprogs) #354923 |
80 |
+ |
81 |
+ local myconf=( |
82 |
+ $(use_enable acl) |
83 |
+ $(use_enable static-libs static) |
84 |
+ $(use_enable xattr) |
85 |
+ $(use_with blake2 libb2) |
86 |
+ $(use_with bzip2 bz2lib) |
87 |
+ $(use_with expat) |
88 |
+ $(use_with !expat xml2) |
89 |
+ $(use_with iconv) |
90 |
+ $(use_with lz4) |
91 |
+ $(use_with lzma) |
92 |
+ $(use_with lzo lzo2) |
93 |
+ $(use_with nettle) |
94 |
+ $(use_with zlib) |
95 |
+ $(use_with zstd) |
96 |
+ |
97 |
+ # Windows-specific |
98 |
+ --without-cng |
99 |
+ ) |
100 |
+ if multilib_is_native_abi ; then |
101 |
+ myconf+=( |
102 |
+ --enable-bsdcat=$(tc-is-static-only && echo static || echo shared) |
103 |
+ --enable-bsdcpio=$(tc-is-static-only && echo static || echo shared) |
104 |
+ --enable-bsdtar=$(tc-is-static-only && echo static || echo shared) |
105 |
+ ) |
106 |
+ else |
107 |
+ myconf+=( |
108 |
+ --disable-bsdcat |
109 |
+ --disable-bsdcpio |
110 |
+ --disable-bsdtar |
111 |
+ ) |
112 |
+ fi |
113 |
+ |
114 |
+ ECONF_SOURCE="${S}" econf "${myconf[@]}" |
115 |
+} |
116 |
+ |
117 |
+multilib_src_compile() { |
118 |
+ if multilib_is_native_abi ; then |
119 |
+ emake |
120 |
+ else |
121 |
+ emake libarchive.la |
122 |
+ fi |
123 |
+} |
124 |
+ |
125 |
+src_test() { |
126 |
+ mkdir -p "${T}"/bin || die |
127 |
+ # tests fail when lbzip2[symlink] is used in place of ref bunzip2 |
128 |
+ ln -s "${BROOT}/bin/bunzip2" "${T}"/bin || die |
129 |
+ local -x PATH=${T}/bin:${PATH} |
130 |
+ multilib-minimal_src_test |
131 |
+} |
132 |
+ |
133 |
+multilib_src_test() { |
134 |
+ # sandbox is breaking long symlink behavior |
135 |
+ local -x SANDBOX_ON=0 |
136 |
+ local -x LD_PRELOAD= |
137 |
+ emake check |
138 |
+} |
139 |
+ |
140 |
+multilib_src_install() { |
141 |
+ if multilib_is_native_abi ; then |
142 |
+ emake DESTDIR="${D}" install |
143 |
+ |
144 |
+ # Create symlinks for FreeBSD |
145 |
+ if ! use prefix && [[ ${CHOST} == *-freebsd* ]]; then |
146 |
+ # Exclude cat for the time being #589876 |
147 |
+ for bin in cpio tar; do |
148 |
+ dosym bsd${bin} /usr/bin/${bin} |
149 |
+ echo '.so bsd${bin}.1' > "${T}"/${bin}.1 |
150 |
+ doman "${T}"/${bin}.1 |
151 |
+ done |
152 |
+ fi |
153 |
+ else |
154 |
+ local install_targets=( |
155 |
+ install-includeHEADERS |
156 |
+ install-libLTLIBRARIES |
157 |
+ install-pkgconfigDATA |
158 |
+ ) |
159 |
+ emake DESTDIR="${D}" "${install_targets[@]}" |
160 |
+ fi |
161 |
+ |
162 |
+ # Libs.private: should be used from libarchive.pc instead |
163 |
+ find "${ED}" -type f -name "*.la" -delete || die |
164 |
+} |
165 |
+ |
166 |
+multilib_src_install_all() { |
167 |
+ cd "${S}" || die |
168 |
+ einstalldocs |
169 |
+} |