1 |
commit: e5082f67594c738c7a9e00364993d7df486b9d54 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 30 23:04:25 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 30 23:05:15 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5082f67 |
7 |
|
8 |
app-arch/xz-utils: add 5.2.9 |
9 |
|
10 |
No verify-sig yet but the sources have been verified manually (diff |
11 |
is tiny too). |
12 |
|
13 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
14 |
|
15 |
app-arch/xz-utils/xz-utils-5.2.9.ebuild | 118 ++++++++++++++++++++++++++++++++ |
16 |
profiles/base/package.use.mask | 4 ++ |
17 |
2 files changed, 122 insertions(+) |
18 |
|
19 |
diff --git a/app-arch/xz-utils/xz-utils-5.2.9.ebuild b/app-arch/xz-utils/xz-utils-5.2.9.ebuild |
20 |
new file mode 100644 |
21 |
index 000000000000..92b43d373c4c |
22 |
--- /dev/null |
23 |
+++ b/app-arch/xz-utils/xz-utils-5.2.9.ebuild |
24 |
@@ -0,0 +1,118 @@ |
25 |
+# Copyright 1999-2022 Gentoo Authors |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+# Remember: we cannot leverage autotools in this ebuild in order |
29 |
+# to avoid circular deps with autotools |
30 |
+ |
31 |
+EAPI=7 |
32 |
+ |
33 |
+inherit libtool multilib multilib-minimal preserve-libs usr-ldscript |
34 |
+ |
35 |
+if [[ ${PV} == 9999 ]] ; then |
36 |
+ EGIT_REPO_URI="https://git.tukaani.org/xz.git" |
37 |
+ inherit git-r3 autotools |
38 |
+ |
39 |
+ # bug #272880 and bug #286068 |
40 |
+ BDEPEND="sys-devel/gettext >=sys-devel/libtool-2" |
41 |
+else |
42 |
+ VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/lassecollin.asc |
43 |
+ inherit verify-sig |
44 |
+ |
45 |
+ MY_P="${PN/-utils}-${PV/_}" |
46 |
+ SRC_URI=" |
47 |
+ mirror://sourceforge/lzmautils/${MY_P}.tar.gz |
48 |
+ https://tukaani.org/xz/${MY_P}.tar.gz |
49 |
+ verify-sig? ( |
50 |
+ https://tukaani.org/xz/${MY_P}.tar.gz.sig |
51 |
+ ) |
52 |
+ " |
53 |
+ |
54 |
+ if [[ ${PV} != *_alpha* && ${PV} != *_beta* ]] ; then |
55 |
+ 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" |
56 |
+ fi |
57 |
+ |
58 |
+ S="${WORKDIR}/${MY_P}" |
59 |
+fi |
60 |
+ |
61 |
+DESCRIPTION="Utils for managing LZMA compressed files" |
62 |
+HOMEPAGE="https://tukaani.org/xz/" |
63 |
+ |
64 |
+# See top-level COPYING file as it outlines the various pieces and their licenses. |
65 |
+LICENSE="public-domain LGPL-2.1+ GPL-2+" |
66 |
+SLOT="0" |
67 |
+IUSE="+extra-filters nls static-libs" |
68 |
+ |
69 |
+if [[ ${PV} != 9999 ]] ; then |
70 |
+ BDEPEND+=" verify-sig? ( sec-keys/openpgp-keys-lassecollin )" |
71 |
+fi |
72 |
+ |
73 |
+# Tests currently do not account for smaller feature set |
74 |
+RESTRICT="!extra-filters? ( test )" |
75 |
+ |
76 |
+src_prepare() { |
77 |
+ default |
78 |
+ |
79 |
+ if [[ ${PV} == 9999 ]] ; then |
80 |
+ eautopoint |
81 |
+ eautoreconf |
82 |
+ else |
83 |
+ # Allow building shared libs on Solaris/x64 |
84 |
+ elibtoolize |
85 |
+ fi |
86 |
+} |
87 |
+ |
88 |
+multilib_src_configure() { |
89 |
+ local myconf=( |
90 |
+ --enable-threads |
91 |
+ $(use_enable nls) |
92 |
+ $(use_enable static-libs static) |
93 |
+ ) |
94 |
+ |
95 |
+ if ! multilib_is_native_abi ; then |
96 |
+ myconf+=( |
97 |
+ --disable-{xz,xzdec,lzmadec,lzmainfo,lzma-links,scripts} |
98 |
+ ) |
99 |
+ fi |
100 |
+ |
101 |
+ if ! use extra-filters ; then |
102 |
+ myconf+=( |
103 |
+ # LZMA1 + LZMA2 for standard .lzma & .xz files |
104 |
+ --enable-encoders=lzma1,lzma2 |
105 |
+ --enable-decoders=lzma1,lzma2 |
106 |
+ |
107 |
+ # those are used by default, depending on preset |
108 |
+ --enable-match-finders=hc3,hc4,bt4 |
109 |
+ |
110 |
+ # CRC64 is used by default, though some (old?) files use CRC32 |
111 |
+ --enable-checks=crc32,crc64 |
112 |
+ ) |
113 |
+ fi |
114 |
+ |
115 |
+ if [[ ${CHOST} == *-solaris* ]] ; then |
116 |
+ export gl_cv_posix_shell="${EPREFIX}"/bin/sh |
117 |
+ |
118 |
+ # Undo Solaris-based defaults pointing to /usr/xpg5/bin |
119 |
+ myconf+=( --disable-path-for-script ) |
120 |
+ fi |
121 |
+ |
122 |
+ ECONF_SOURCE="${S}" econf "${myconf[@]}" |
123 |
+} |
124 |
+ |
125 |
+multilib_src_install() { |
126 |
+ default |
127 |
+ |
128 |
+ gen_usr_ldscript -a lzma |
129 |
+} |
130 |
+ |
131 |
+multilib_src_install_all() { |
132 |
+ find "${ED}" -type f -name '*.la' -delete || die |
133 |
+ rm "${ED}"/usr/share/doc/${PF}/COPYING* || die |
134 |
+} |
135 |
+ |
136 |
+pkg_preinst() { |
137 |
+ preserve_old_lib /usr/$(get_libdir)/liblzma$(get_libname 0) |
138 |
+} |
139 |
+ |
140 |
+pkg_postinst() { |
141 |
+ preserve_old_lib_notify /usr/$(get_libdir)/liblzma$(get_libname 0) |
142 |
+} |
143 |
|
144 |
diff --git a/profiles/base/package.use.mask b/profiles/base/package.use.mask |
145 |
index 059d9ef6ee5b..87a20408384f 100644 |
146 |
--- a/profiles/base/package.use.mask |
147 |
+++ b/profiles/base/package.use.mask |
148 |
@@ -6,6 +6,10 @@ |
149 |
# This file is only for generic masks. For arch-specific masks (i.e. |
150 |
# mask everywhere, unmask on arch/*) use arch/base. |
151 |
|
152 |
+# Sam James <sam@g.o> (2022-11-30) |
153 |
+# Upstream is down but source has been manually verified. |
154 |
+=app-arch/xz-utils-5.2.9 verify-sig |
155 |
+ |
156 |
# John Helmert III <ajak@g.o> (2022-11-29) |
157 |
# sys-apps/ucspi-ssl is last rited |
158 |
mail-mta/netqmail pop3 |