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: Fri, 08 Apr 2022 14:27:29
Message-Id: 1649428041.c1c88aacbc6763b92e58fee14b7dbe5d8b84aa73.mgorny@gentoo
1 commit: c1c88aacbc6763b92e58fee14b7dbe5d8b84aa73
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 8 14:09:52 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 8 14:27:21 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1c88aac
7
8 app-arch/libarchive: Bump to 3.6.1
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 app-arch/libarchive/Manifest | 2 +
13 app-arch/libarchive/libarchive-3.6.1.ebuild | 126 ++++++++++++++++++++++++++++
14 2 files changed, 128 insertions(+)
15
16 diff --git a/app-arch/libarchive/Manifest b/app-arch/libarchive/Manifest
17 index fc9529fe433a..f7e2cd2e36e0 100644
18 --- a/app-arch/libarchive/Manifest
19 +++ b/app-arch/libarchive/Manifest
20 @@ -2,3 +2,5 @@ DIST libarchive-3.5.3.tar.gz 7038767 BLAKE2B a9f8b44c42efadb29cba2597c201bf9064d
21 DIST libarchive-3.5.3.tar.gz.asc 833 BLAKE2B 2a2af61d25201feef727d05554b3b1553779afeb155d1d68a3e2b64e71eca6ca06cd6d9c77cc98c2d40c0d654c7de535d9901e55f527cb74dc8933a402207553 SHA512 1a6c930e62961ee97d2983ad7f7aded61dd65668737cc7fc42b3f2f32a699931fe74c1b7abe4686e061e7b39500a67adea929f390a8dcb2037d0d58f3b30441d
22 DIST libarchive-3.6.0.tar.gz 8570393 BLAKE2B 57a8e1681485a489dc9d3823cc8c9b0d68e7d84510a3eff0b6adc268825bb9aa6179d8a810b249c3f72e3674e1df6e5ba2ed0043196458bedc3c1d880c5d4a0b SHA512 700579c5dd15b61333cc4dbf01ebfbd26d6e8c20d5cbe6525683634418fec5c87a5a1e28a81cc59ad7c94218682e406aa3b55d81036bd9fa31d83d989c6d764c
23 DIST libarchive-3.6.0.tar.gz.asc 833 BLAKE2B 0b3600e998ccf3e3862523116db071f5c43165a422f292053d7be14a67a294b4b9ed76a939156ad0f494443d9a6a6dde46e73c1107d50c7e150030c7627d8851 SHA512 2450a3463ec1b4b2c590139ea2b6f0db0afbd8ff7939da5d90c5adfb3d27618ca36b03596b707211de82341ca157acaf510fc51ee26d6901d46e15341406acd2
24 +DIST libarchive-3.6.1.tar.gz 7431598 BLAKE2B 1f060edb3d7579e406db1e757af8193d6b23c56a07dd7392cacfc37d6634de1a732a4845a38e4c7a539a634475e54f202689c4a46f1c27655e91211783a6364f SHA512 58f7ac0c52116f73326a07dec10ff232be33b318862078785dc39f1fb2f8773b5194eabfa14764bb51ce6a5a1aa8820526e7f4c76087a6f4fcbe7789a22275b4
25 +DIST libarchive-3.6.1.tar.gz.asc 833 BLAKE2B 6b8ebcfbffdc51b693ba51d1c24bc89b9f8da81257535427ccae7791f7849197685e450b62fdb0972c4313244bf89b659662f678c68e73467bd256873b1ca83c SHA512 4120b21113a21c0afce16be72ac3bd41e744e99c713a2cf005d128c4b2382e9dcac638d4615771b9deceee0e1c99806499aaea35227fd4e435d15e672b4d6624
26
27 diff --git a/app-arch/libarchive/libarchive-3.6.1.ebuild b/app-arch/libarchive/libarchive-3.6.1.ebuild
28 new file mode 100644
29 index 000000000000..986c8d070585
30 --- /dev/null
31 +++ b/app-arch/libarchive/libarchive-3.6.1.ebuild
32 @@ -0,0 +1,126 @@
33 +# Copyright 1999-2022 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +inherit multilib-minimal toolchain-funcs verify-sig
38 +
39 +DESCRIPTION="Multi-format archive and compression library"
40 +HOMEPAGE="https://www.libarchive.org/"
41 +SRC_URI="
42 + https://www.libarchive.de/downloads/${P}.tar.gz
43 + verify-sig? ( https://www.libarchive.de/downloads/${P}.tar.gz.asc )
44 +"
45 +
46 +LICENSE="BSD BSD-2 BSD-4 public-domain"
47 +SLOT="0/13"
48 +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 ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
49 +IUSE="acl blake2 +bzip2 +e2fsprogs expat +iconv lz4 +lzma lzo nettle static-libs xattr zstd"
50 +VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/libarchive.org.asc
51 +
52 +RDEPEND="
53 + sys-libs/zlib[${MULTILIB_USEDEP}]
54 + acl? ( virtual/acl[${MULTILIB_USEDEP}] )
55 + blake2? ( app-crypt/libb2[${MULTILIB_USEDEP}] )
56 + bzip2? ( app-arch/bzip2[${MULTILIB_USEDEP}] )
57 + expat? ( dev-libs/expat[${MULTILIB_USEDEP}] )
58 + !expat? ( dev-libs/libxml2[${MULTILIB_USEDEP}] )
59 + iconv? ( virtual/libiconv[${MULTILIB_USEDEP}] )
60 + kernel_linux? (
61 + xattr? ( sys-apps/attr[${MULTILIB_USEDEP}] )
62 + )
63 + dev-libs/openssl:0=[${MULTILIB_USEDEP}]
64 + lz4? ( >=app-arch/lz4-0_p131:0=[${MULTILIB_USEDEP}] )
65 + lzma? ( >=app-arch/xz-utils-5.2.5-r1[${MULTILIB_USEDEP}] )
66 + lzo? ( >=dev-libs/lzo-2[${MULTILIB_USEDEP}] )
67 + nettle? ( dev-libs/nettle:0=[${MULTILIB_USEDEP}] )
68 + zstd? ( app-arch/zstd[${MULTILIB_USEDEP}] )
69 +"
70 +DEPEND="${RDEPEND}
71 + kernel_linux? (
72 + virtual/os-headers
73 + e2fsprogs? ( sys-fs/e2fsprogs )
74 + )
75 +"
76 +BDEPEND="
77 + verify-sig? ( sec-keys/openpgp-keys-libarchive )
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 + --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 + # some locales trigger different output that breaks tests
140 + local -x LC_ALL=C
141 + emake check
142 +}
143 +
144 +multilib_src_install() {
145 + if multilib_is_native_abi ; then
146 + emake DESTDIR="${D}" install
147 + else
148 + local install_targets=(
149 + install-includeHEADERS
150 + install-libLTLIBRARIES
151 + install-pkgconfigDATA
152 + )
153 + emake DESTDIR="${D}" "${install_targets[@]}"
154 + fi
155 +
156 + # Libs.private: should be used from libarchive.pc instead
157 + find "${ED}" -type f -name "*.la" -delete || die
158 +}