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: Tue, 21 Sep 2021 19:11:54
Message-Id: 1632251506.452f419d8cf0ab4cf29ec72fdb3b7e7ab656d32f.mgorny@gentoo
1 commit: 452f419d8cf0ab4cf29ec72fdb3b7e7ab656d32f
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 21 18:26:40 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 21 19:11:46 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=452f419d
7
8 app-arch/libarchive: Remove old
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-r1.ebuild | 141 -------------------------
14 2 files changed, 142 deletions(-)
15
16 diff --git a/app-arch/libarchive/Manifest b/app-arch/libarchive/Manifest
17 index 7fdc374218e..3a03eb163b0 100644
18 --- a/app-arch/libarchive/Manifest
19 +++ b/app-arch/libarchive/Manifest
20 @@ -1,2 +1 @@
21 -DIST libarchive-3.5.1.tar.gz 7008338 BLAKE2B 243dfda2bd4582bbc20679328b89aae0c530475c822dcf9ff25c65df2017b8f18bb616142d6ab016ccea4a5aa1b410d46b913c2ee0afefd2fdb1a41cf51585d9 SHA512 08ddd74bef4cef0981739da202879f36cf7ca33a8f6d438724588efe3ab8477f2f1d0cccf7b8ed0bedfc0c8d0cab16ee3ae5c0c6e83b6811bc650d7d7471a996
22 DIST libarchive-3.5.2.tar.gz 7054934 BLAKE2B 1fc6ee0166573658dc5e0f170113c07ecdaa76b287cbf68bdee63ccd198dad615b3f2803a3fc1aed303cd1f7f32033e6d8e782ef6a8a991562cdc2a375894c9e SHA512 2003ec9b24086373451bd7317bdab86d81627f087c14a6f7df1a92e131a216749f9aa352504c3d04dc82b62078b59aeea5aad5543b7e6c1c21fcafa2955d3762
23
24 diff --git a/app-arch/libarchive/libarchive-3.5.1-r1.ebuild b/app-arch/libarchive/libarchive-3.5.1-r1.ebuild
25 deleted file mode 100644
26 index 495a49a99ae..00000000000
27 --- a/app-arch/libarchive/libarchive-3.5.1-r1.ebuild
28 +++ /dev/null
29 @@ -1,141 +0,0 @@
30 -# Copyright 1999-2021 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 ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
43 -IUSE="acl blake2 +bzip2 +e2fsprogs expat +iconv kernel_linux lz4 +lzma lzo nettle static-libs 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 - dev-libs/openssl:0=[${MULTILIB_USEDEP}]
56 - lz4? ( >=app-arch/lz4-0_p131:0=[${MULTILIB_USEDEP}] )
57 - lzma? ( >=app-arch/xz-utils-5.2.5-r1[${MULTILIB_USEDEP}] )
58 - lzo? ( >=dev-libs/lzo-2[${MULTILIB_USEDEP}] )
59 - nettle? ( dev-libs/nettle:0=[${MULTILIB_USEDEP}] )
60 - zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] )
61 - zstd? ( app-arch/zstd[${MULTILIB_USEDEP}] )"
62 -DEPEND="${RDEPEND}
63 - kernel_linux? (
64 - virtual/os-headers
65 - e2fsprogs? ( sys-fs/e2fsprogs )
66 - )"
67 -
68 -PATCHES=(
69 - "${FILESDIR}"/${PN}-3.5.0-darwin-strnlen.patch # drop on next release
70 -)
71 -
72 -src_prepare() {
73 - default
74 - elibtoolize # is required for Solaris sol2_ld linker fix
75 -}
76 -
77 -multilib_src_configure() {
78 - export ac_cv_header_ext2fs_ext2_fs_h=$(usex e2fsprogs) #354923
79 -
80 - local myconf=(
81 - $(use_enable acl)
82 - $(use_enable static-libs static)
83 - $(use_enable xattr)
84 - $(use_with blake2 libb2)
85 - $(use_with bzip2 bz2lib)
86 - $(use_with expat)
87 - $(use_with !expat xml2)
88 - $(use_with iconv)
89 - $(use_with lz4)
90 - $(use_with lzma)
91 - $(use_with lzo lzo2)
92 - $(use_with nettle)
93 - $(use_with zlib)
94 - $(use_with zstd)
95 -
96 - # Windows-specific
97 - --without-cng
98 - )
99 - if multilib_is_native_abi ; then
100 - myconf+=(
101 - --enable-bsdcat=$(tc-is-static-only && echo static || echo shared)
102 - --enable-bsdcpio=$(tc-is-static-only && echo static || echo shared)
103 - --enable-bsdtar=$(tc-is-static-only && echo static || echo shared)
104 - )
105 - else
106 - myconf+=(
107 - --disable-bsdcat
108 - --disable-bsdcpio
109 - --disable-bsdtar
110 - )
111 - fi
112 -
113 - ECONF_SOURCE="${S}" econf "${myconf[@]}"
114 -}
115 -
116 -multilib_src_compile() {
117 - if multilib_is_native_abi ; then
118 - emake
119 - else
120 - emake libarchive.la
121 - fi
122 -}
123 -
124 -src_test() {
125 - mkdir -p "${T}"/bin || die
126 - # tests fail when lbzip2[symlink] is used in place of ref bunzip2
127 - ln -s "${BROOT}/bin/bunzip2" "${T}"/bin || die
128 - local -x PATH=${T}/bin:${PATH}
129 - multilib-minimal_src_test
130 -}
131 -
132 -multilib_src_test() {
133 - # sandbox is breaking long symlink behavior
134 - local -x SANDBOX_ON=0
135 - local -x LD_PRELOAD=
136 - # some locales trigger different output that breaks tests
137 - local -x LC_ALL=C
138 - emake check
139 -}
140 -
141 -multilib_src_install() {
142 - if multilib_is_native_abi ; then
143 - emake DESTDIR="${D}" install
144 -
145 - # Create symlinks for FreeBSD
146 - if ! use prefix && [[ ${CHOST} == *-freebsd* ]]; then
147 - # Exclude cat for the time being #589876
148 - for bin in cpio tar; do
149 - dosym bsd${bin} /usr/bin/${bin}
150 - echo '.so bsd${bin}.1' > "${T}"/${bin}.1
151 - doman "${T}"/${bin}.1
152 - done
153 - fi
154 - else
155 - local install_targets=(
156 - install-includeHEADERS
157 - install-libLTLIBRARIES
158 - install-pkgconfigDATA
159 - )
160 - emake DESTDIR="${D}" "${install_targets[@]}"
161 - fi
162 -
163 - # Libs.private: should be used from libarchive.pc instead
164 - find "${ED}" -type f -name "*.la" -delete || die
165 -}
166 -
167 -multilib_src_install_all() {
168 - cd "${S}" || die
169 - einstalldocs
170 -}