Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-libs/cracklib: ChangeLog cracklib-2.8.18-r1.ebuild
Date: Sun, 20 Nov 2011 06:45:36
Message-Id: 20111120064526.2FC2A2004B@flycatcher.gentoo.org
1 vapier 11/11/20 06:45:26
2
3 Modified: ChangeLog
4 Added: cracklib-2.8.18-r1.ebuild
5 Log:
6 Add USE=static-libs support #378291 by Agostino Sarubbo.
7
8 (Portage version: 2.2.0_alpha75/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.158 sys-libs/cracklib/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/cracklib/ChangeLog?rev=1.158&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/cracklib/ChangeLog?rev=1.158&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/cracklib/ChangeLog?r1=1.157&r2=1.158
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-libs/cracklib/ChangeLog,v
20 retrieving revision 1.157
21 retrieving revision 1.158
22 diff -u -r1.157 -r1.158
23 --- ChangeLog 29 Sep 2010 22:35:57 -0000 1.157
24 +++ ChangeLog 20 Nov 2011 06:45:25 -0000 1.158
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-libs/cracklib
27 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/cracklib/ChangeLog,v 1.157 2010/09/29 22:35:57 vapier Exp $
29 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/cracklib/ChangeLog,v 1.158 2011/11/20 06:45:25 vapier Exp $
31 +
32 +*cracklib-2.8.18-r1 (20 Nov 2011)
33 +
34 + 20 Nov 2011; Mike Frysinger <vapier@g.o> +cracklib-2.8.18-r1.ebuild:
35 + Add USE=static-libs support #378291 by Agostino Sarubbo.
36
37 *cracklib-2.8.18 (29 Sep 2010)
38
39
40
41
42 1.1 sys-libs/cracklib/cracklib-2.8.18-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/cracklib/cracklib-2.8.18-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/cracklib/cracklib-2.8.18-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: cracklib-2.8.18-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sys-libs/cracklib/cracklib-2.8.18-r1.ebuild,v 1.1 2011/11/20 06:45:26 vapier Exp $
52
53 EAPI="3"
54 PYTHON_DEPEND="python? 2"
55 SUPPORT_PYTHON_ABIS="1"
56 RESTRICT_PYTHON_ABIS="3.*"
57
58 inherit eutils distutils libtool toolchain-funcs
59
60 MY_P=${P/_}
61 DESCRIPTION="Password Checking Library"
62 HOMEPAGE="http://sourceforge.net/projects/cracklib"
63 SRC_URI="mirror://sourceforge/cracklib/${MY_P}.tar.gz"
64
65 LICENSE="LGPL-2.1"
66 SLOT="0"
67 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
68 IUSE="nls python static-libs"
69
70 RDEPEND="sys-libs/zlib"
71 DEPEND="${RDEPEND}
72 python? ( dev-python/setuptools )"
73
74 S=${WORKDIR}/${MY_P}
75
76 PYTHON_MODNAME="cracklib.py"
77 do_python() {
78 pushd python > /dev/null || die
79 distutils_src_${EBUILD_PHASE}
80 popd > /dev/null
81 }
82
83 pkg_setup() {
84 # workaround #195017
85 if has unmerge-orphans ${FEATURES} && has_version "<${CATEGORY}/${PN}-2.8.10" ; then
86 eerror "Upgrade path is broken with FEATURES=unmerge-orphans"
87 eerror "Please run: FEATURES=-unmerge-orphans emerge cracklib"
88 die "Please run: FEATURES=-unmerge-orphans emerge cracklib"
89 fi
90
91 use python && python_pkg_setup
92 }
93
94 src_prepare() {
95 elibtoolize #269003
96 use python && do_python
97 }
98
99 src_configure() {
100 econf \
101 --with-default-dict='$(libdir)/cracklib_dict' \
102 --without-python \
103 $(use_enable nls) \
104 $(use_enable static-libs static)
105 }
106
107 src_compile() {
108 default
109 use python && do_python
110 }
111
112 src_install() {
113 emake DESTDIR="${D}" install || die
114 use static-libs || rm -f "${ED}"/usr/lib*/libcrack.la
115 rm -r "${ED}"/usr/share/cracklib
116
117 use python && do_python
118
119 # move shared libs to /
120 gen_usr_ldscript -a crack
121
122 insinto /usr/share/dict
123 doins dicts/cracklib-small || die
124
125 dodoc AUTHORS ChangeLog NEWS README*
126 }
127
128 pkg_postinst() {
129 if [[ ${ROOT} == "/" ]] ; then
130 ebegin "Regenerating cracklib dictionary"
131 create-cracklib-dict /usr/share/dict/* > /dev/null
132 eend $?
133 fi
134
135 use python && distutils_pkg_postinst
136 }
137
138 pkg_postrm() {
139 use python && distutils_pkg_postrm
140 }