diff options
author | 2010-12-30 18:03:32 +0000 | |
---|---|---|
committer | 2010-12-30 18:03:32 +0000 | |
commit | 1dfa844b87015908883c2ee8355a5fa50a5c7c7d (patch) | |
tree | 4c73cea732c0fbf3116a75718ffb40a54ea87247 /app-admin/apg | |
parent | Respect LDFLAGS (bug #337413), CFLAGS (bug #239928), CXX. Add x11-libs/libXpm... (diff) | |
download | gentoo-2-1dfa844b87015908883c2ee8355a5fa50a5c7c7d.tar.gz gentoo-2-1dfa844b87015908883c2ee8355a5fa50a5c7c7d.tar.bz2 gentoo-2-1dfa844b87015908883c2ee8355a5fa50a5c7c7d.zip |
Respect LDFLAGS (bug #335097). Set RDEPEND.
(Portage version: 2.2.0_alpha10/cvs/Linux i686)
Diffstat (limited to 'app-admin/apg')
-rw-r--r-- | app-admin/apg/ChangeLog | 7 | ||||
-rw-r--r-- | app-admin/apg/apg-2.3.0b-r5.ebuild | 49 |
2 files changed, 55 insertions, 1 deletions
diff --git a/app-admin/apg/ChangeLog b/app-admin/apg/ChangeLog index f690a8a2cf43..0719b82d9a03 100644 --- a/app-admin/apg/ChangeLog +++ b/app-admin/apg/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-admin/apg # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/apg/ChangeLog,v 1.26 2010/01/15 01:06:53 abcd Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/apg/ChangeLog,v 1.27 2010/12/30 18:03:32 jer Exp $ + +*apg-2.3.0b-r5 (30 Dec 2010) + + 30 Dec 2010; Jeroen Roovers <jer@gentoo.org> +apg-2.3.0b-r5.ebuild: + Respect LDFLAGS (bug #335097). Set RDEPEND. 15 Jan 2010; Jonathan Callen <abcd@gentoo.org> apg-2.3.0b-r4.ebuild: Add prefix keywords diff --git a/app-admin/apg/apg-2.3.0b-r5.ebuild b/app-admin/apg/apg-2.3.0b-r5.ebuild new file mode 100644 index 000000000000..2c11308307e0 --- /dev/null +++ b/app-admin/apg/apg-2.3.0b-r5.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/apg/apg-2.3.0b-r5.ebuild,v 1.1 2010/12/30 18:03:32 jer Exp $ + +EAPI="2" + +inherit eutils toolchain-funcs + +DESCRIPTION="Another Password Generator" +HOMEPAGE="http://www.adel.nursat.kz/apg/" +SRC_URI="http://www.adel.nursat.kz/apg/download/${P}.tar.gz" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="cracklib" + +DEPEND="cracklib? ( sys-libs/cracklib )" +RDEPEND="${DEPEND}" + +src_prepare() { + chmod -R 0700 "${S}" + if use cracklib; then + epatch "${FILESDIR}"/${P}-cracklib.patch + epatch "${FILESDIR}"/${PN}-glibc-2.4.patch + fi + epatch "${FILESDIR}"/${P}-crypt_password.patch +} + +src_compile() { + sed -i 's,^#\(APG_CS_CLIBS += -lnsl\)$,\1,' Makefile + [[ ${CHOST} == *-darwin* ]] && \ + sed -i 's,^APG_CLIBS += -lcrypt,APG_CLIBS += ,' Makefile + + emake \ + FLAGS="${CFLAGS} ${LDFLAGS}" CFLAGS="${CFLAGS} ${LDFLAGS}" \ + CC="$(tc-getCC)" \ + standalone || die "compile problem" + emake FLAGS="${CFLAGS} ${LDFLAGS}" CC="$(tc-getCC)" \ + -C bfconvert || die "compile problem" +} + +src_install() { + dobin apg apgbfm bfconvert/bfconvert || die + dodoc CHANGES INSTALL README THANKS TODO + cd doc + doman man/apg.1 man/apgbfm.1 + dodoc APG_TIPS pronun.txt rfc0972.txt rfc1750.txt +} |