diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2011-06-13 21:39:56 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2011-06-13 21:39:56 +0000 |
commit | cf0d9eaf373b612ad82b7db673257ad03c7e1020 (patch) | |
tree | 5fac084b6361a8dd3cdcece571e6f2f5c889af9d /sci-libs/cln/cln-1.3.2.ebuild | |
parent | Version bumps (diff) | |
download | gentoo-2-cf0d9eaf373b612ad82b7db673257ad03c7e1020.tar.gz gentoo-2-cf0d9eaf373b612ad82b7db673257ad03c7e1020.tar.bz2 gentoo-2-cf0d9eaf373b612ad82b7db673257ad03c7e1020.zip |
Version bump. Switched to EAPI4. Added static-libs flag
(Portage version: 2.1.10.2/cvs/Linux x86_64)
Diffstat (limited to 'sci-libs/cln/cln-1.3.2.ebuild')
-rw-r--r-- | sci-libs/cln/cln-1.3.2.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/sci-libs/cln/cln-1.3.2.ebuild b/sci-libs/cln/cln-1.3.2.ebuild new file mode 100644 index 000000000000..9357cf15b00c --- /dev/null +++ b/sci-libs/cln/cln-1.3.2.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/cln/cln-1.3.2.ebuild,v 1.1 2011/06/13 21:39:56 bicatali Exp $ + +EAPI=4 +inherit eutils flag-o-matic + +DESCRIPTION="Class library (C++) for numbers" +HOMEPAGE="http://www.ginac.de/CLN/" +SRC_URI="ftp://ftpthep.physik.uni-mainz.de/pub/gnu/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="1" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" +IUSE="doc examples static-libs" + +DEPEND="dev-libs/gmp + doc? ( virtual/latex-base )" +RDEPEND="${DEPEND}" + +pkg_setup() { + use sparc && append-cppflags "-DNO_ASM" + use hppa && append-cppflags "-DNO_ASM" + use arm && append-cppflags "-DNO_ASM" +} + +src_prepare() { + # avoid building examples + # do it in Makefile.in to avoid time consuming eautoreconf + sed -i -e '/^SUBDIRS.*=/s/examples doc benchmarks/doc/' Makefile.in || die +} + +src_configure () { + econf \ + --datadir="${EPREFIX}"/usr/share/doc/${PF} \ + $(use_enable static-libs static) +} +src_compile() { + emake + use doc && emake html pdf +} + +src_install () { + default + use doc && dodoc doc/cln.pdf && dohtml doc/* + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins examples/*.cc + fi +} |