1 |
commit: 0d70d2750f92f1a0d997aa0643367efb8314f546 |
2 |
Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 2 07:09:50 2021 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 2 07:09:50 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d70d275 |
7 |
|
8 |
sys-libs/libxcrypt-4.4.20: Version bump |
9 |
|
10 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
11 |
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> |
12 |
|
13 |
sys-libs/libxcrypt/Manifest | 1 + |
14 |
sys-libs/libxcrypt/libxcrypt-4.4.20.ebuild | 163 +++++++++++++++++++++++++++++ |
15 |
2 files changed, 164 insertions(+) |
16 |
|
17 |
diff --git a/sys-libs/libxcrypt/Manifest b/sys-libs/libxcrypt/Manifest |
18 |
index 0ab0bca761e..84d30506186 100644 |
19 |
--- a/sys-libs/libxcrypt/Manifest |
20 |
+++ b/sys-libs/libxcrypt/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST libxcrypt-4.4.16.tar.gz 480694 BLAKE2B 0e93c2ff45a8148f82a80a67fb732a3ef42e87505d19258023f91d3352a382483204e77e2704e7a0de15f4f1e38a326d0867506a5580faf8c81857270588a4a3 SHA512 e1d3b1262c6be7c6c8847b8c4eb8191d9e5e482798be6f1186876c72f3d8c737124378ec45a38aa464f556e10a557b96f855bd371f03c3611eada27904bf6781 |
23 |
DIST libxcrypt-4.4.17.tar.gz 519096 BLAKE2B 12cbe3d1f235baddd8d2ec8159f2a7514e75c2f91cf0db18ef909ec11c38ac19efebecec647a90cafb27c7ebc7e940da448ca8f3edd1c49e5cb9cc4407d5198c SHA512 94aaba6ccf9b6d1a32f9a571ee32261cecd393d5b8d8c6f18d740dc7bb29ac0fbd381124e7f0d84882559bb634208c08151b3dc05c9138fa0a229c4ba20fb6f7 |
24 |
DIST libxcrypt-4.4.19.tar.gz 534269 BLAKE2B 22c27fe2bfe32a7752f7be495a072c774a5a9ab9a7616fb80ff05afae4d9ff1ecfd1a04b4bd7c850df46f60aa5850225684464cf65d2a145302f128285ac8a9b SHA512 f5bd2598b5d0de47f3d805bbd4a045439e456d361a39e8725c40e2e1f32cf392bdc20b51840528f53cec052dff98be1a009fcd70b92e288584bedf06ef94b816 |
25 |
+DIST libxcrypt-4.4.20.tar.gz 534367 BLAKE2B 9174bd342dc13db8fd724a13e3fbd222a0f5e2d058be2d7f511816e137fa61bd73d4b9482c85d81f27404d0e650be59c45f25d70ec3c506730d2422da4e97417 SHA512 66b1966003427728f96d5a83f75930a4b82d31133392bede3975cf9a1e1423d0312e73da598e40d0e3507f26fac5222cc92d7a5593f2b737d8557a5d4bf2461e |
26 |
|
27 |
diff --git a/sys-libs/libxcrypt/libxcrypt-4.4.20.ebuild b/sys-libs/libxcrypt/libxcrypt-4.4.20.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..6284f32749c |
30 |
--- /dev/null |
31 |
+++ b/sys-libs/libxcrypt/libxcrypt-4.4.20.ebuild |
32 |
@@ -0,0 +1,163 @@ |
33 |
+# Copyright 2004-2021 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+PYTHON_COMPAT=( python3_{7..9} ) |
38 |
+inherit autotools multibuild python-any-r1 multilib-minimal |
39 |
+ |
40 |
+DESCRIPTION="Extended crypt library for descrypt, md5crypt, bcrypt, and others" |
41 |
+SRC_URI="https://github.com/besser82/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
42 |
+HOMEPAGE="https://github.com/besser82/libxcrypt" |
43 |
+ |
44 |
+LICENSE="LGPL-2.1+ public-domain BSD BSD-2" |
45 |
+SLOT="0/1" |
46 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
47 |
+IUSE="+compat split-usr +static-libs system test" |
48 |
+ |
49 |
+DEPEND="system? ( |
50 |
+ elibc_glibc? ( sys-libs/glibc[-crypt(+)] ) |
51 |
+ !sys-libs/musl |
52 |
+ )" |
53 |
+RDEPEND="${DEPEND}" |
54 |
+BDEPEND="sys-apps/findutils |
55 |
+ test? ( $(python_gen_any_dep 'dev-python/passlib[${PYTHON_USEDEP}]') )" |
56 |
+ |
57 |
+RESTRICT="!test? ( test )" |
58 |
+ |
59 |
+REQUIRED_USE="split-usr? ( system )" |
60 |
+ |
61 |
+PATCHES=( |
62 |
+ "${FILESDIR}/libxcrypt-4.4.19-multibuild.patch" |
63 |
+) |
64 |
+ |
65 |
+python_check_deps() { |
66 |
+ has_version -b "dev-python/passlib[${PYTHON_USEDEP}]" |
67 |
+} |
68 |
+ |
69 |
+pkg_setup() { |
70 |
+ MULTIBUILD_VARIANTS=( |
71 |
+ $(usex compat 'xcrypt_compat' '') |
72 |
+ xcrypt_nocompat |
73 |
+ ) |
74 |
+ |
75 |
+ use test && python-any-r1_pkg_setup |
76 |
+} |
77 |
+ |
78 |
+src_prepare() { |
79 |
+ default |
80 |
+ eautoreconf |
81 |
+} |
82 |
+ |
83 |
+src_configure() { |
84 |
+ multibuild_foreach_variant multilib-minimal_src_configure |
85 |
+} |
86 |
+ |
87 |
+get_xclibdir() { |
88 |
+ printf -- "%s/%s/%s\n" \ |
89 |
+ "$(usex split-usr '' '/usr')" \ |
90 |
+ "$(get_libdir)" \ |
91 |
+ "$(usex system '' 'xcrypt')" |
92 |
+} |
93 |
+ |
94 |
+multilib_src_configure() { |
95 |
+ local -a myconf=( |
96 |
+ --disable-werror |
97 |
+ --libdir=$(get_xclibdir) |
98 |
+ --with-pkgconfigdir=/usr/$(get_libdir)/pkgconfig |
99 |
+ --includedir="${EPREFIX}/usr/include/$(usex system '' 'xcrypt')" |
100 |
+ ) |
101 |
+ |
102 |
+ case "${MULTIBUILD_ID}" in |
103 |
+ xcrypt_compat-*) |
104 |
+ myconf+=( |
105 |
+ --disable-static |
106 |
+ --disable-xcrypt-compat-files |
107 |
+ --enable-obsolete-api=yes |
108 |
+ ) |
109 |
+ ;; |
110 |
+ xcrypt_nocompat-*) |
111 |
+ myconf+=( |
112 |
+ --enable-obsolete-api=no |
113 |
+ $(use_enable static-libs static) |
114 |
+ ) |
115 |
+ ;; |
116 |
+ *) die "Unexpected MULTIBUILD_ID: ${MULTIBUILD_ID}";; |
117 |
+ esac |
118 |
+ |
119 |
+ ECONF_SOURCE="${S}" econf "${myconf[@]}" |
120 |
+} |
121 |
+ |
122 |
+src_compile() { |
123 |
+ multibuild_foreach_variant multilib-minimal_src_compile |
124 |
+} |
125 |
+ |
126 |
+multilib_src_test() { |
127 |
+ emake check |
128 |
+} |
129 |
+ |
130 |
+src_test() { |
131 |
+ multibuild_foreach_variant multilib-minimal_src_test |
132 |
+} |
133 |
+ |
134 |
+src_install() { |
135 |
+ multibuild_foreach_variant multilib-minimal_src_install |
136 |
+ |
137 |
+ ( |
138 |
+ shopt -s failglob || die "failglob failed" |
139 |
+ |
140 |
+ # Make sure our man pages do not collide with glibc or man-pages. |
141 |
+ for manpage in "${ED}"/usr/share/man/man3/crypt{,_r}.?*; do |
142 |
+ mv -n "${manpage}" "$(dirname "${manpage}")/xcrypt_$(basename "${manpage}")" \ |
143 |
+ || die "mv failed" |
144 |
+ done |
145 |
+ ) || die "failglob error" |
146 |
+ |
147 |
+ # remove useless stuff from installation |
148 |
+ find "${D}"/usr/share/doc/${PF} -type l -delete || die |
149 |
+ find "${D}" -name '*.la' -delete || die |
150 |
+} |
151 |
+ |
152 |
+multilib_src_install() { |
153 |
+ emake DESTDIR="${D}" install |
154 |
+ |
155 |
+ # don't install the libcrypt.so symlink for the "compat" version |
156 |
+ case "${MULTIBUILD_ID}" in |
157 |
+ xcrypt_compat-*) |
158 |
+ rm "${D}"$(get_xclibdir)/libcrypt$(get_libname) \ |
159 |
+ || die "failed to remove extra compat libraries" |
160 |
+ ;; |
161 |
+ xcrypt_nocompat-*) |
162 |
+ if use split-usr; then |
163 |
+ ( |
164 |
+ if use static-libs; then |
165 |
+ # .a files are installed to /$(get_libdir) by default |
166 |
+ # move static libraries to /usr prefix or portage will abort |
167 |
+ shopt -s nullglob || die "failglob failed" |
168 |
+ static_libs=( "${ED}"/$(get_xclibdir)/*.a ) |
169 |
+ |
170 |
+ if [[ -n ${static_libs[*]} ]]; then |
171 |
+ dodir "/usr/$(get_xclibdir)" |
172 |
+ mv "${static_libs[@]}" "${D}/usr/$(get_xclibdir)" \ |
173 |
+ || die "moving static libs failed" |
174 |
+ fi |
175 |
+ fi |
176 |
+ |
177 |
+ if use system; then |
178 |
+ # Move versionless .so symlinks from /$(get_libdir) to /usr/$(get_libdir) |
179 |
+ # to allow linker to correctly find shared libraries. |
180 |
+ shopt -s failglob || die "failglob failed" |
181 |
+ |
182 |
+ for lib_file in "${ED}"$(get_xclibdir)/*$(get_libname); do |
183 |
+ lib_file_basename="$(basename "${lib_file}")" |
184 |
+ lib_file_target="$(basename "$(readlink -f "${lib_file}")")" |
185 |
+ dosym "../../$(get_libdir)/${lib_file_target}" "/usr/$(get_xclibdir)/${lib_file_basename}" |
186 |
+ done |
187 |
+ |
188 |
+ rm "${ED}"$(get_xclibdir)/*$(get_libname) || die "removing symlinks in incorrect location failed" |
189 |
+ fi |
190 |
+ ) |
191 |
+ fi |
192 |
+ ;; |
193 |
+ *) die "Unexpected MULTIBUILD_ID: ${MULTIBUILD_ID}";; |
194 |
+ esac |
195 |
+} |