diff options
author | Markos Chandras <hwoarang@gentoo.org> | 2010-07-10 22:12:47 +0000 |
---|---|---|
committer | Markos Chandras <hwoarang@gentoo.org> | 2010-07-10 22:12:47 +0000 |
commit | e3c2795539f88d7e46ba26abcff5faebbb83b5c2 (patch) | |
tree | 61f4437925af1f3226163af6fbf2ec35286717d4 /mail-filter | |
parent | Respect CC wrt bug #244146 (diff) | |
download | gentoo-2-e3c2795539f88d7e46ba26abcff5faebbb83b5c2.tar.gz gentoo-2-e3c2795539f88d7e46ba26abcff5faebbb83b5c2.tar.bz2 gentoo-2-e3c2795539f88d7e46ba26abcff5faebbb83b5c2.zip |
Respect CC/CFLAGS/LDFLAGS wrt bug #244142 and bug #240782
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'mail-filter')
-rw-r--r-- | mail-filter/libdomainkeys/ChangeLog | 11 | ||||
-rw-r--r-- | mail-filter/libdomainkeys/libdomainkeys-0.68-r2.ebuild | 53 |
2 files changed, 62 insertions, 2 deletions
diff --git a/mail-filter/libdomainkeys/ChangeLog b/mail-filter/libdomainkeys/ChangeLog index aec0cdd89a5b..f8fae6c4414e 100644 --- a/mail-filter/libdomainkeys/ChangeLog +++ b/mail-filter/libdomainkeys/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for mail-filter/libdomainkeys -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/libdomainkeys/ChangeLog,v 1.16 2009/06/24 13:30:23 tove Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/libdomainkeys/ChangeLog,v 1.17 2010/07/10 22:12:47 hwoarang Exp $ + +*libdomainkeys-0.68-r2 (10 Jul 2010) + + 10 Jul 2010; Markos Chandras <hwoarang@gentoo.org> + +libdomainkeys-0.68-r2.ebuild: + Respect CC/CFLAGS/LDFLAGS wrt bug #244142 and bug #240782. Thanks to Arttu + Valo <arttuv69@gmail.com> 24 Jun 2009; Torsten Veller <tove@gentoo.org> metadata.xml: New maintainer needed as peitolm retires (#203843) diff --git a/mail-filter/libdomainkeys/libdomainkeys-0.68-r2.ebuild b/mail-filter/libdomainkeys/libdomainkeys-0.68-r2.ebuild new file mode 100644 index 000000000000..6634000e3057 --- /dev/null +++ b/mail-filter/libdomainkeys/libdomainkeys-0.68-r2.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/libdomainkeys/libdomainkeys-0.68-r2.ebuild,v 1.1 2010/07/10 22:12:47 hwoarang Exp $ + +EAPI="2" + +inherit eutils + +DESCRIPTION="libdomainkeys is a library usable by MTAs to verify and create signatures of e-mail headers." +HOMEPAGE="http://domainkeys.sourceforge.net/" +SRC_URI="mirror://sourceforge/domainkeys/${P}.tar.gz" + +# Licensed under the Yahoo! DomainKeys Public License Agreement v1.1 +LICENSE="libdomainkeys-1.1" + +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="" + +DEPEND=">=sys-devel/libtool-1.4.1-r8 + dev-libs/openssl" +RDEPEND="" + +src_prepare() { + # fix libs, dump hardcoded vars to respect CC (bug #244142) and CFLAGS (bug #240782) + sed -i -e 's:-lcrypto:-lcrypto -lresolv:' \ + -e 's:^CC=:#CC=:' -e 's:^CFLAGS=:#CFLAGS=:' \ + -e "s:\$(CFLAGS):\$(CFLAGS) \$(LDFLAGS):g" \ + ${S}/Makefile +} + +src_compile() { + emake CC="$(tc-getCC)" CFLAGS="-DBIND_8_COMPAT ${CFLAGS}" || die +} + +src_install() { + insinto /usr/lib + doins libdomainkeys.a || die + + insinto /usr/include + doins domainkeys.h || die + doins dktrace.h || die + + dobin dknewkey dktest || die + dodoc README CHANGES *.html || die + + # remove unwanted doc files + rm -rf ${S}/testcases/CVS || die + rm -rf ${S}/testcases/*~ || die + docinto /testcases + dodoc testcases/* || die + prepalldocs || die +} |