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: cracklib-2.9.0.ebuild ChangeLog
Date: Sun, 02 Jun 2013 15:23:51
Message-Id: 20130602152348.24A182171D@flycatcher.gentoo.org
1 vapier 13/06/02 15:23:48
2
3 Modified: ChangeLog
4 Added: cracklib-2.9.0.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha170/cvs/Linux x86_64, signed Manifest commit with key FB7C4156)
9
10 Revision Changes Path
11 1.176 sys-libs/cracklib/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/cracklib/ChangeLog?rev=1.176&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/cracklib/ChangeLog?rev=1.176&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/cracklib/ChangeLog?r1=1.175&r2=1.176
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-libs/cracklib/ChangeLog,v
20 retrieving revision 1.175
21 retrieving revision 1.176
22 diff -u -r1.175 -r1.176
23 --- ChangeLog 21 Dec 2012 03:42:12 -0000 1.175
24 +++ ChangeLog 2 Jun 2013 15:23:47 -0000 1.176
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-libs/cracklib
27 -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/cracklib/ChangeLog,v 1.175 2012/12/21 03:42:12 vapier Exp $
29 +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/cracklib/ChangeLog,v 1.176 2013/06/02 15:23:47 vapier Exp $
31 +
32 +*cracklib-2.9.0 (02 Jun 2013)
33 +
34 + 02 Jun 2013; Mike Frysinger <vapier@g.o> +cracklib-2.9.0.ebuild:
35 + Version bump.
36
37 *cracklib-2.8.22 (21 Dec 2012)
38
39
40
41
42 1.1 sys-libs/cracklib/cracklib-2.9.0.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/cracklib/cracklib-2.9.0.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/cracklib/cracklib-2.9.0.ebuild?rev=1.1&content-type=text/plain
46
47 Index: cracklib-2.9.0.ebuild
48 ===================================================================
49 # Copyright 1999-2013 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.9.0.ebuild,v 1.1 2013/06/02 15:23:47 vapier Exp $
52
53 EAPI="3"
54 PYTHON_DEPEND="python? 2"
55 SUPPORT_PYTHON_ABIS="1"
56 RESTRICT_PYTHON_ABIS="3.* 2.7-pypy-* *-jython"
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 ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x86-macos ~m68k-mint"
68 IUSE="build nls python static-libs zlib"
69
70 RDEPEND="zlib? ( 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 use build && return 0
79 use python || return 0
80 case ${EBUILD_PHASE} in
81 prepare|configure|compile|install)
82 pushd python > /dev/null || die
83 distutils_src_${EBUILD_PHASE}
84 popd > /dev/null
85 ;;
86 *)
87 distutils_pkg_${EBUILD_PHASE}
88 ;;
89 esac
90 }
91
92 pkg_setup() {
93 # workaround #195017
94 if has unmerge-orphans ${FEATURES} && has_version "<${CATEGORY}/${PN}-2.8.10" ; then
95 eerror "Upgrade path is broken with FEATURES=unmerge-orphans"
96 eerror "Please run: FEATURES=-unmerge-orphans emerge cracklib"
97 die "Please run: FEATURES=-unmerge-orphans emerge cracklib"
98 fi
99
100 if use !build; then
101 use python && python_pkg_setup
102 fi
103 }
104
105 src_prepare() {
106 elibtoolize #269003
107 do_python
108 }
109
110 src_configure() {
111 export ac_cv_header_zlib_h=$(usex zlib)
112 export ac_cv_search_gzopen=$(usex zlib -lz no)
113 econf \
114 --with-default-dict='$(libdir)/cracklib_dict' \
115 --without-python \
116 $(use_enable nls) \
117 $(use_enable static-libs static)
118 }
119
120 src_compile() {
121 default
122 do_python
123 }
124
125 src_install() {
126 emake DESTDIR="${D}" install || die
127 use static-libs || find "${ED}"/usr -name libcrack.la -delete
128 rm -r "${ED}"/usr/share/cracklib
129
130 do_python
131
132 # move shared libs to /
133 gen_usr_ldscript -a crack
134
135 insinto /usr/share/dict
136 doins dicts/cracklib-small || die
137
138 dodoc AUTHORS ChangeLog NEWS README*
139 }
140
141 pkg_postinst() {
142 if [[ ${ROOT} == "/" ]] ; then
143 ebegin "Regenerating cracklib dictionary"
144 create-cracklib-dict "${EPREFIX}"/usr/share/dict/* > /dev/null
145 eend $?
146 fi
147
148 do_python
149 }
150
151 pkg_postrm() {
152 do_python
153 }