Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libxcrypt/
Date: Fri, 07 Feb 2020 03:41:31
Message-Id: 1581046871.e1f8bbd1b76dc8cbb826e1ab48ae160753e86be8.chutzpah@gentoo
1 commit: e1f8bbd1b76dc8cbb826e1ab48ae160753e86be8
2 Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com>
3 AuthorDate: Fri Feb 7 03:35:51 2020 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 7 03:41:11 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1f8bbd1
7
8 sys-libs/libxcrypt-4.4.12-r1: revbump, fix USE=system
9
10 Copyright: Sony Interactive Entertainment Inc.
11 Package-Manager: Portage-2.3.87, Repoman-2.3.20
12 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
13
14 sys-libs/libxcrypt/libxcrypt-4.4.12-r1.ebuild | 50 ++++----
15 sys-libs/libxcrypt/libxcrypt-4.4.12.ebuild | 157 --------------------------
16 2 files changed, 25 insertions(+), 182 deletions(-)
17
18 diff --git a/sys-libs/libxcrypt/libxcrypt-4.4.12-r1.ebuild b/sys-libs/libxcrypt/libxcrypt-4.4.12-r1.ebuild
19 index 45264f51d4a..0983a476eda 100644
20 --- a/sys-libs/libxcrypt/libxcrypt-4.4.12-r1.ebuild
21 +++ b/sys-libs/libxcrypt/libxcrypt-4.4.12-r1.ebuild
22 @@ -126,37 +126,37 @@ multilib_src_install() {
23 || die "failed to remove extra compat libraries"
24 ;;
25 xcrypt_nocompat-*)
26 - if use static-libs; then
27 + if use split-usr; then
28 (
29 - # .a files are installed to /$(get_libdir) by default
30 - # move static libraries to /usr prefix or portage will abort
31 - shopt -s nullglob || die "failglob failed"
32 - static_libs=( "${ED}"/$(get_xclibdir)/*.a )
33 -
34 - if [[ -n ${static_libs[*]} ]]; then
35 - dodir "/usr/$(get_xclibdir)"
36 - mv "${static_libs[@]}" "${D}/usr/$(get_xclibdir)" \
37 - || die "moving static libs failed"
38 + if use static-libs; then
39 + # .a files are installed to /$(get_libdir) by default
40 + # move static libraries to /usr prefix or portage will abort
41 + shopt -s nullglob || die "failglob failed"
42 + static_libs=( "${ED}"/$(get_xclibdir)/*.a )
43 +
44 + if [[ -n ${static_libs[*]} ]]; then
45 + dodir "/usr/$(get_xclibdir)"
46 + mv "${static_libs[@]}" "${D}/usr/$(get_xclibdir)" \
47 + || die "moving static libs failed"
48 + fi
49 fi
50 - )
51 - fi
52
53 - if use split-usr && use system; then
54 - (
55 - # now try to find libraries and make sure to generate
56 - # ldscripts for them
57 - shopt -s failglob || die "failglob failed"
58 + if use system; then
59 + # now try to find libraries and make sure to generate
60 + # ldscripts for them
61 + shopt -s failglob || die "failglob failed"
62
63 - for lib_file in "${ED}"$(get_xclibdir)/*$(get_libname); do
64 - libname="$(basename "${lib_file}")"
65 + for lib_file in "${ED}"$(get_xclibdir)/*$(get_libname); do
66 + libname="$(basename "${lib_file}")"
67
68 - cp -L "${lib_file}" \
69 - "${ED}/usr/$(get_xclibdir)/${libname}" \
70 - || die "copying ${libname} failed"
71 + cp -L "${lib_file}" \
72 + "${ED}/usr/$(get_xclibdir)/${libname}" \
73 + || die "copying ${libname} failed"
74
75 - gen_usr_ldscript ${libname}
76 - dosym ${libname} /usr/$(get_xclibdir)/${libname}.2
77 - done
78 + gen_usr_ldscript ${libname}
79 + dosym ${libname} /usr/$(get_xclibdir)/${libname}.2
80 + done
81 + fi
82 )
83 fi
84 ;;
85
86 diff --git a/sys-libs/libxcrypt/libxcrypt-4.4.12.ebuild b/sys-libs/libxcrypt/libxcrypt-4.4.12.ebuild
87 deleted file mode 100644
88 index a7ecbd9f4e5..00000000000
89 --- a/sys-libs/libxcrypt/libxcrypt-4.4.12.ebuild
90 +++ /dev/null
91 @@ -1,157 +0,0 @@
92 -# Copyright 1999-2020 Gentoo Authors
93 -# Distributed under the terms of the GNU General Public License v2
94 -
95 -EAPI=7
96 -PYTHON_COMPAT=( python3_{6,7,8} )
97 -inherit autotools usr-ldscript multibuild python-any-r1 multilib-minimal
98 -
99 -DESCRIPTION="Extended crypt library for descrypt, md5crypt, bcrypt, and others "
100 -SRC_URI="https://github.com/besser82/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
101 -HOMEPAGE="https://github.com/besser82/libxcrypt"
102 -
103 -LICENSE="LGPL-2.1+ public-domain BSD BSD-2"
104 -SLOT="0/1"
105 -KEYWORDS="~amd64 ~x86"
106 -IUSE="+compat split-usr +static-libs system test"
107 -
108 -DEPEND="system? (
109 - elibc_glibc? ( sys-libs/glibc[-crypt(+)] )
110 - !sys-libs/musl
111 - )"
112 -RDEPEND="${DEPEND}"
113 -BDEPEND="sys-apps/findutils
114 - test? (
115 - ${PYTHON_DEPS}
116 - $(python_gen_any_dep 'dev-python/passlib[${PYTHON_USEDEP}]')
117 - )"
118 -
119 -RESTRICT="!test? ( test )"
120 -
121 -PATCHES=(
122 - "${FILESDIR}/libxcrypt-4.4.12-pythonver.patch"
123 - "${FILESDIR}/libxcrypt-4.4.12-multibuild.patch"
124 -)
125 -
126 -pkg_setup() {
127 - MULTIBUILD_VARIANTS=(
128 - $(usex compat 'xcrypt_compat' '')
129 - xcrypt_nocompat
130 - )
131 -
132 - use test && python-any-r1_pkg_setup
133 -}
134 -
135 -src_prepare() {
136 - default
137 - eautoreconf
138 -}
139 -
140 -src_configure() {
141 - multibuild_foreach_variant multilib-minimal_src_configure
142 -}
143 -
144 -get_xclibdir() {
145 - printf -- "%s/%s/%s\n" \
146 - "$(usex split-usr '' '/usr')" \
147 - "$(get_libdir)" \
148 - "$(usex system '' 'xcrypt')"
149 -}
150 -
151 -multilib_src_configure() {
152 - local -a myconf=(
153 - --libdir=$(get_xclibdir)
154 - --with-pkgconfigdir=/usr/$(get_libdir)/pkgconfig
155 - --includedir="${EPREFIX}/usr/include/$(usex system '' 'xcrypt')"
156 - )
157 -
158 - case "${MULTIBUILD_ID}" in
159 - xcrypt_compat-*)
160 - myconf+=(
161 - --disable-static
162 - --disable-xcrypt-compat-files
163 - --enable-obsolete-api=yes
164 - )
165 - ;;
166 - xcrypt_nocompat-*)
167 - myconf+=(
168 - --enable-obsolete-api=no
169 - $(use_enable static-libs static)
170 - )
171 - ;;
172 - *) die "Unexpected MULTIBUILD_ID: ${MULTIBUILD_ID}";;
173 - esac
174 -
175 - ECONF_SOURCE="${S}" econf "${myconf[@]}"
176 -}
177 -
178 -src_compile() {
179 - multibuild_foreach_variant multilib-minimal_src_compile
180 -}
181 -
182 -multilib_src_test() {
183 - emake check
184 -}
185 -
186 -src_test() {
187 - multibuild_foreach_variant multilib-minimal_src_test
188 -}
189 -
190 -src_install() {
191 - multibuild_foreach_variant multilib-minimal_src_install
192 -
193 - (
194 - shopt -s failglob || die "failglob failed"
195 -
196 - # make sure out man pages don't collide with glibc or man-pages
197 - for manpage in "${ED}"/usr/share/man/man3/crypt{,_r}.?*; do
198 - mv -n "${manpage}" "$(dirname "${manpage}")/xcrypt_$(basename "${manpage}")" \
199 - || die "mv failed"
200 - done
201 - ) || die "failglob error"
202 -
203 - gen_usr_ldscript libxcrypt.so $(usex system 'libcrypt.so' '')
204 -
205 - # remove useless stuff from installation
206 - find "${D}"/usr/share/doc/${PF} -type l -delete || die
207 - find "${D}" -name '*.la' -delete || die
208 -}
209 -
210 -multilib_src_install() {
211 - emake DESTDIR="${D}" install
212 -
213 - # don't install the libcrypt.so symlink for the "compat" version
214 - case "${MULTIBUILD_ID}" in
215 - xcrypt_compat-*)
216 - rm "${D}"$(get_xclibdir)/libcrypt$(get_libname) \
217 - || die "failed to remove extra compat libraries"
218 - ;;
219 - xcrypt_nocompat-*)
220 - if use split-usr; then
221 - (
222 - shopt -s failglob || die "failglob failed"
223 -
224 - for so_file in "${D}"$(get_xclibdir)/*$(get_libname)*; do
225 - so_file=$(basename "${so_file}") || die
226 -
227 - dosym ../../$(usex system '' '../')$(get_libdir)$(usex system '' '/xcrypt')/${so_file} \
228 - /usr/$(get_libdir)/$(usex system '' 'xcrypt/')${so_file}
229 - done
230 - ) || die "symlinking library failure"
231 - fi
232 - ;;
233 - *) die "Unexpected MULTIBUILD_ID: ${MULTIBUILD_ID}";;
234 - esac
235 -
236 - # .a files are installed to /$(get_libdir) by default
237 - if use static-libs; then
238 - (
239 - shopt -s nullglob || die "nullglob failed"
240 - static_libs=( "${D}"/$(get_xclibdir)/*.a )
241 -
242 - if [[ -n ${static_libs[*]} ]]; then
243 - mv "${static_libs[@]}" "${D}/usr/$(get_xclibdir)" \
244 - || die "moving static libs failed"
245 - fi
246 - )
247 - fi
248 -}