1 |
commit: 7cc8ffe1e635b17c66c853e0dd13742d8bbeedd8 |
2 |
Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Aug 27 09:43:06 2017 +0000 |
4 |
Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 27 10:02:52 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7cc8ffe1 |
7 |
|
8 |
dev-libs/libpwquality: version bump 1.3.0 → 1.4.0 |
9 |
|
10 |
Project moved to github after fedorahosted shutdown. |
11 |
|
12 |
Package-Manager: Portage-2.3.8, Repoman-2.3.3 |
13 |
|
14 |
dev-libs/libpwquality/Manifest | 1 + |
15 |
dev-libs/libpwquality/libpwquality-1.4.0.ebuild | 77 +++++++++++++++++++++++++ |
16 |
2 files changed, 78 insertions(+) |
17 |
|
18 |
diff --git a/dev-libs/libpwquality/Manifest b/dev-libs/libpwquality/Manifest |
19 |
index 90ca09dfb69..5d03a4ef8dc 100644 |
20 |
--- a/dev-libs/libpwquality/Manifest |
21 |
+++ b/dev-libs/libpwquality/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST libpwquality-1.3.0.tar.bz2 423910 SHA256 74d2ea90e103323c1f2d6a6cc9617cdae6877573eddb31aaf31a40f354cc2d2a SHA512 c3817c7a5ca962b161911b97b413a0db7c34a99ba2cd191435024abdbe060e248c0f88436f24d3992dcb1b00d34b88afb731ef1fd23efc3ad1abe56d4d7d53ea WHIRLPOOL b6451083551a13be259d1a81eb089889d9ee430c30afb2555aa2e5e7c4240febc71b152ce3c210b592a56db8988fc88a827d8e9f368c5aa478d5babf4e316b8c |
24 |
+DIST libpwquality-1.4.0.tar.bz2 450384 SHA256 1de6ff046cf2172d265a2cb6f8da439d894f3e4e8157b056c515515232fade6b SHA512 b8049f8b71bbfd4d345dbd4c4cffd29e9029b0fca4c95527af54d11a3b06e4708236b630df6c66738368298679c96cb3bf26b1b5d95cb3c5f7e1073cab8a98d9 WHIRLPOOL 07a91601648f2e2404b3cc4f0d81e02e78ee12a012c2efa2843762c87f1d296fb4fe8368a6ff21adca30744eb26ec985a38f2dffa9a4f0fe3d34011e1e3c0d54 |
25 |
|
26 |
diff --git a/dev-libs/libpwquality/libpwquality-1.4.0.ebuild b/dev-libs/libpwquality/libpwquality-1.4.0.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..6614ebe88bc |
29 |
--- /dev/null |
30 |
+++ b/dev-libs/libpwquality/libpwquality-1.4.0.ebuild |
31 |
@@ -0,0 +1,77 @@ |
32 |
+# Copyright 1999-2017 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) |
37 |
+ |
38 |
+inherit eutils multilib pam python-r1 toolchain-funcs |
39 |
+ |
40 |
+DESCRIPTION="Library for password quality checking and generating random passwords" |
41 |
+HOMEPAGE="https://github.com/libpwquality/libpwquality" |
42 |
+SRC_URI="https://github.com/${PN}/${PN}/releases/download/${P}/${P}.tar.bz2" |
43 |
+ |
44 |
+LICENSE="|| ( BSD GPL-2 )" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
47 |
+IUSE="pam python static-libs" |
48 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ >=sys-libs/cracklib-2.8:= |
52 |
+ pam? ( virtual/pam ) |
53 |
+ python? ( ${PYTHON_DEPS} ) |
54 |
+" |
55 |
+DEPEND="${RDEPEND} |
56 |
+ >=sys-devel/gettext-0.18.2 |
57 |
+ virtual/pkgconfig |
58 |
+" |
59 |
+ |
60 |
+src_prepare() { |
61 |
+ default |
62 |
+ # ensure pkgconfig files go in /usr |
63 |
+ sed -e 's:\(pkgconfigdir *=\).*:\1 '${EPREFIX}/usr/$(get_libdir)'/pkgconfig:' \ |
64 |
+ -i src/Makefile.{am,in} || die "sed failed" |
65 |
+ use python && python_copy_sources |
66 |
+} |
67 |
+ |
68 |
+src_configure() { |
69 |
+ # Install library in /lib for pam |
70 |
+ configuring() { |
71 |
+ local sitedir |
72 |
+ econf \ |
73 |
+ --libdir="${EPREFIX}/$(get_libdir)" \ |
74 |
+ $(use_enable pam) \ |
75 |
+ --with-securedir="${EPREFIX}/$(getpam_mod_dir)" \ |
76 |
+ $(use_enable python python-bindings) \ |
77 |
+ $(usex python "--with-pythonsitedir=$(use python && python_get_sitedir)" "") \ |
78 |
+ $(use_enable static-libs static) |
79 |
+ } |
80 |
+ if_use_python_python_foreach_impl configuring |
81 |
+} |
82 |
+ |
83 |
+src_compile() { |
84 |
+ if_use_python_python_foreach_impl default |
85 |
+} |
86 |
+ |
87 |
+src_test() { |
88 |
+ if_use_python_python_foreach_impl default |
89 |
+} |
90 |
+ |
91 |
+src_install() { |
92 |
+ if_use_python_python_foreach_impl default |
93 |
+ if use static-libs; then |
94 |
+ # Do not install static libs in /lib |
95 |
+ mkdir -p "${ED}usr/$(get_libdir)" |
96 |
+ mv "${ED}$(get_libdir)/libpwquality.a" "${ED}/usr/$(get_libdir)/" || die |
97 |
+ gen_usr_ldscript libpwquality.so |
98 |
+ fi |
99 |
+ prune_libtool_files --modules |
100 |
+} |
101 |
+ |
102 |
+if_use_python_python_foreach_impl() { |
103 |
+ if use python; then |
104 |
+ python_foreach_impl run_in_build_dir "$@" |
105 |
+ else |
106 |
+ "$@" |
107 |
+ fi |
108 |
+} |