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