1 |
commit: 5e558478826a961677fc36297ac69d5c56ce7556 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 22 22:08:43 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 22 22:08:43 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e558478 |
7 |
|
8 |
app-arch/xz-utils: add 5.3.3_alpha (unkeyworded) |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
app-arch/xz-utils/Manifest | 2 + |
13 |
app-arch/xz-utils/xz-utils-5.3.3_alpha.ebuild | 118 ++++++++++++++++++++++++++ |
14 |
2 files changed, 120 insertions(+) |
15 |
|
16 |
diff --git a/app-arch/xz-utils/Manifest b/app-arch/xz-utils/Manifest |
17 |
index 3bbab17e9c45..9e38a9dfa6a2 100644 |
18 |
--- a/app-arch/xz-utils/Manifest |
19 |
+++ b/app-arch/xz-utils/Manifest |
20 |
@@ -2,3 +2,5 @@ DIST xz-5.2.5.tar.gz 1791345 BLAKE2B aded57324e129572c41646b3cc3b0b59a459452d933 |
21 |
DIST xz-5.2.5.tar.gz.sig 566 BLAKE2B 8b40d8d7913eaebe2595ea41a735d972d1969d8b58f42b2bee6591b51e2e626473fc85d64f1bbbff3cba6b0e1b4423556d6ddaf16f646ccc18ba1bad5cf45d83 SHA512 3aa21484bef0282ed0b83e3fcd5cf3d87bf51fa68e24d55bb11f91bc96f0ac29f468949bc4c8cc20fbd6ad12f5735686fe09ee42efe2b8d728010da9668aa5a9 |
22 |
DIST xz-5.2.6.tar.gz 2069602 BLAKE2B 3cc160dc76944ad2a181fbfb23ce386dbbd04e75bbeb0b159aaaf82e2e8157ea8b2bb80b216d79a7c25339bfbd13bd9d8c261789829cc7c3cb86fc893a7b4b94 SHA512 090958dd6c202c989746686094c86707ad4ae835026640080fc0a9d0fad699821b7d5cb3a67e6700661a0938818ba153662366f89ab8ec47e0bae4a3fe9b1961 |
23 |
DIST xz-5.2.6.tar.gz.sig 566 BLAKE2B 7c6114d93b4e3c8553108da3985029fc4585bfea5d72fc5028024221e91cc43c3b6cd3b7d169e4c8afed445a6beef7c255ef8420c5266a22ee9449a57cacec5d SHA512 50a1ac0f8f87f8c04c25c69870ba054094abf20b668bdecd42ed247a2eff24b8e52178b6442da84c125a9401a6f98d40ca76b27453833a30807c83128ab70eee |
24 |
+DIST xz-5.3.3alpha.tar.gz 2119150 BLAKE2B 031e1a1556cbbd49565c2b72676e46a22c00e0e25bca2938c21d56f2d7f585c294d2a3a5712a3ae5d62fe8fef6e7b2f411fcc3c0ccac4714786209599b599d25 SHA512 c780c6854cb7599ed97629dbf923f5c6802b48e12aa25638c863e2403e56557abffb2b501823d4d53c852b7d09360b9ede355989756fef1daa1fa8cd9395da8d |
25 |
+DIST xz-5.3.3alpha.tar.gz.sig 566 BLAKE2B 2a02fd8a84c27967384021aa879efdf598b40ca9ff552080be2d057f402b3aace13bb0d98574e0185edd6ee3084793767f9941d4c1f21f5c5d55f886025cb845 SHA512 e6a849f2dd6f67ad3d51f50fe5f3e7f2a57e97e9d89499e2f88b94ab9716f1db5de34c3bb6f17b6fd55498ee5f4653d3d25e1a495b9c682b3200b2603a85479f |
26 |
|
27 |
diff --git a/app-arch/xz-utils/xz-utils-5.3.3_alpha.ebuild b/app-arch/xz-utils/xz-utils-5.3.3_alpha.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..5247065721a0 |
30 |
--- /dev/null |
31 |
+++ b/app-arch/xz-utils/xz-utils-5.3.3_alpha.ebuild |
32 |
@@ -0,0 +1,118 @@ |
33 |
+# Copyright 1999-2022 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+# Remember: we cannot leverage autotools in this ebuild in order |
37 |
+# to avoid circular deps with autotools |
38 |
+ |
39 |
+EAPI=7 |
40 |
+ |
41 |
+QA_PKGCONFIG_VERSION=${PV/_/} |
42 |
+inherit libtool multilib multilib-minimal preserve-libs usr-ldscript |
43 |
+ |
44 |
+if [[ ${PV} == 9999 ]] ; then |
45 |
+ EGIT_REPO_URI="https://git.tukaani.org/xz.git" |
46 |
+ inherit git-r3 autotools |
47 |
+ |
48 |
+ # bug #272880 and bug #286068 |
49 |
+ BDEPEND="sys-devel/gettext >=sys-devel/libtool-2" |
50 |
+else |
51 |
+ VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/lassecollin.asc |
52 |
+ inherit verify-sig |
53 |
+ |
54 |
+ MY_P="${PN/-utils}-${PV/_}" |
55 |
+ SRC_URI="https://tukaani.org/xz/${MY_P}.tar.gz" |
56 |
+ SRC_URI+=" verify-sig? ( https://tukaani.org/xz/${MY_P}.tar.gz.sig )" |
57 |
+ |
58 |
+ if [[ ${PV} != *_alpha* && ${PV} != *_beta* ]] ; then |
59 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~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" |
60 |
+ fi |
61 |
+ |
62 |
+ S="${WORKDIR}/${MY_P}" |
63 |
+fi |
64 |
+ |
65 |
+DESCRIPTION="Utils for managing LZMA compressed files" |
66 |
+HOMEPAGE="https://tukaani.org/xz/" |
67 |
+ |
68 |
+# See top-level COPYING file as it outlines the various pieces and their licenses. |
69 |
+LICENSE="public-domain LGPL-2.1+ GPL-2+" |
70 |
+SLOT="0" |
71 |
+IUSE="+extra-filters nls static-libs" |
72 |
+ |
73 |
+RDEPEND="!<app-arch/lzma-4.63 |
74 |
+ !<app-arch/p7zip-4.57 |
75 |
+ !<app-i18n/man-pages-de-2.16" |
76 |
+DEPEND="${RDEPEND}" |
77 |
+if [[ ${PV} != 9999 ]] ; then |
78 |
+ BDEPEND+=" verify-sig? ( sec-keys/openpgp-keys-lassecollin )" |
79 |
+fi |
80 |
+ |
81 |
+# Tests currently do not account for smaller feature set |
82 |
+RESTRICT="!extra-filters? ( test )" |
83 |
+ |
84 |
+src_prepare() { |
85 |
+ default |
86 |
+ |
87 |
+ if [[ ${PV} == 9999 ]] ; then |
88 |
+ eautopoint |
89 |
+ eautoreconf |
90 |
+ else |
91 |
+ # Allow building shared libs on Solaris/x64 |
92 |
+ elibtoolize |
93 |
+ fi |
94 |
+} |
95 |
+ |
96 |
+multilib_src_configure() { |
97 |
+ local myconf=( |
98 |
+ --enable-threads |
99 |
+ $(use_enable nls) |
100 |
+ $(use_enable static-libs static) |
101 |
+ ) |
102 |
+ |
103 |
+ if ! multilib_is_native_abi ; then |
104 |
+ myconf+=( |
105 |
+ --disable-{xz,xzdec,lzmadec,lzmainfo,lzma-links,scripts} |
106 |
+ ) |
107 |
+ fi |
108 |
+ |
109 |
+ if ! use extra-filters ; then |
110 |
+ myconf+=( |
111 |
+ # LZMA1 + LZMA2 for standard .lzma & .xz files |
112 |
+ --enable-encoders=lzma1,lzma2 |
113 |
+ --enable-decoders=lzma1,lzma2 |
114 |
+ |
115 |
+ # those are used by default, depending on preset |
116 |
+ --enable-match-finders=hc3,hc4,bt4 |
117 |
+ |
118 |
+ # CRC64 is used by default, though some (old?) files use CRC32 |
119 |
+ --enable-checks=crc32,crc64 |
120 |
+ ) |
121 |
+ fi |
122 |
+ |
123 |
+ if [[ ${CHOST} == *-solaris* ]] ; then |
124 |
+ export gl_cv_posix_shell="${EPREFIX}"/bin/sh |
125 |
+ |
126 |
+ # Undo Solaris-based defaults pointing to /usr/xpg5/bin |
127 |
+ myconf+=( --disable-path-for-script ) |
128 |
+ fi |
129 |
+ |
130 |
+ ECONF_SOURCE="${S}" econf "${myconf[@]}" |
131 |
+} |
132 |
+ |
133 |
+multilib_src_install() { |
134 |
+ default |
135 |
+ |
136 |
+ gen_usr_ldscript -a lzma |
137 |
+} |
138 |
+ |
139 |
+multilib_src_install_all() { |
140 |
+ find "${ED}" -type f -name '*.la' -delete || die |
141 |
+ rm "${ED}"/usr/share/doc/${PF}/COPYING* || die |
142 |
+} |
143 |
+ |
144 |
+pkg_preinst() { |
145 |
+ preserve_old_lib /usr/$(get_libdir)/liblzma$(get_libname 0) |
146 |
+} |
147 |
+ |
148 |
+pkg_postinst() { |
149 |
+ preserve_old_lib_notify /usr/$(get_libdir)/liblzma$(get_libname 0) |
150 |
+} |