diff options
author | Jeroen Roovers <jer@gentoo.org> | 2010-09-19 04:35:35 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2010-09-19 04:35:35 +0000 |
commit | 9e2612090820d6c110f2f4f0cdeab3bb721ef20b (patch) | |
tree | 2a9c71afbe5ce305c2a9c57d12683375b9e64fed /dev-libs/libtomcrypt | |
parent | Add ~x86-linux keyword (diff) | |
download | gentoo-2-9e2612090820d6c110f2f4f0cdeab3bb721ef20b.tar.gz gentoo-2-9e2612090820d6c110f2f4f0cdeab3bb721ef20b.tar.bz2 gentoo-2-9e2612090820d6c110f2f4f0cdeab3bb721ef20b.zip |
Move patching to proper phase. Do not hard-wire CC. Respect LDFLAGS (bug #334999).
(Portage version: 2.2_rc83/cvs/Linux i686)
Diffstat (limited to 'dev-libs/libtomcrypt')
-rw-r--r-- | dev-libs/libtomcrypt/ChangeLog | 8 | ||||
-rw-r--r-- | dev-libs/libtomcrypt/libtomcrypt-1.17-r4.ebuild | 58 |
2 files changed, 65 insertions, 1 deletions
diff --git a/dev-libs/libtomcrypt/ChangeLog b/dev-libs/libtomcrypt/ChangeLog index b2c36bedfe3c..f7085eedbc9e 100644 --- a/dev-libs/libtomcrypt/ChangeLog +++ b/dev-libs/libtomcrypt/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-libs/libtomcrypt # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/libtomcrypt/ChangeLog,v 1.39 2010/08/09 10:08:42 bangert Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libtomcrypt/ChangeLog,v 1.40 2010/09/19 04:35:35 jer Exp $ + +*libtomcrypt-1.17-r4 (19 Sep 2010) + + 19 Sep 2010; Jeroen Roovers <jer@gentoo.org> +libtomcrypt-1.17-r4.ebuild: + Move patching to proper phase. Do not hard-wire CC. Respect LDFLAGS (bug + #334999). 09 Aug 2010; Thilo Bangert <bangert@gentoo.org> files/libtomcrypt-1.06-makefile.diff, diff --git a/dev-libs/libtomcrypt/libtomcrypt-1.17-r4.ebuild b/dev-libs/libtomcrypt/libtomcrypt-1.17-r4.ebuild new file mode 100644 index 000000000000..61330aa87cd9 --- /dev/null +++ b/dev-libs/libtomcrypt/libtomcrypt-1.17-r4.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libtomcrypt/libtomcrypt-1.17-r4.ebuild,v 1.1 2010/09/19 04:35:35 jer Exp $ + +EAPI="2" + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="modular and portable cryptographic toolkit" +HOMEPAGE="http://libtom.org/?page=features&whatfile=crypt" +SRC_URI="http://libtom.org/files/crypt-${PV}.tar.bz2" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="doc libtommath tomsfastmath" + +RDEPEND="libtommath? ( dev-libs/libtommath ) + tomsfastmath? ( >=dev-libs/tomsfastmath-0.12 ) + !libtommath? ( !tomsfastmath? ( dev-libs/libtommath ) )" +DEPEND="${RDEPEND} + doc? ( virtual/latex-base app-text/ghostscript-gpl )" + +src_prepare() { +cp -av makefile.shared{,.orig} + use doc || sed -i '/^install:/s:docs::' makefile + epatch "${FILESDIR}"/libtomcrypt-1.17-r2-libtool-tag-and-make-fix.patch + sed -i \ + -e 's| gcc| $(CC)|g' \ + -e '/^CC=/{ + s|^CC=|COMPILE=|g; + s|gcc|--mode=compile $(CC) --tag CC $(CC)|g + }' \ + -e 's|--mode=link gcc|--mode=link $(CC) $(LDFLAGS) --tag CC $(CC)|g' \ + {,testprof/}makefile.shared || die "sed makefile.shared" +} + +src_compile() { + local extraflags="" + use libtommath && append-flags -DLTM_DESC && extraflags="-ltommath" + use tomsfastmath && append-flags -DTFM_DESC && extraflags="${extraflags} -ltfm" + EXTRALIBS="${extraflags}" \ + CC=$(tc-getCC) \ + IGNORE_SPEED=1 \ + emake -f makefile.shared \ + || die "emake failed" +} + +src_install() { + emake -f makefile.shared DESTDIR="${D}" install ||\ + die "emake install failed" + dodoc TODO changes || die "dodoc failed" + if use doc ; then + dodoc doc/* || die "dodoc failed" + docinto notes ; dodoc notes/* || die "dodoc failed" + docinto demos ; dodoc demos/* || die "dodoc failed" + fi +} |