diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-02-05 18:44:56 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-02-05 18:44:56 +0000 |
commit | 29aabba0ea759c6a2864ff5631735b67ee38e5e0 (patch) | |
tree | ab466b4dfa7abecb401b2f8039d08af4689306bb /sci-libs/cln/cln-1.3.6.ebuild | |
parent | d42200bec37eef2a7478d88988ff00addd0a9202 (diff) |
gentoo resync : 05.02.2020
Diffstat (limited to 'sci-libs/cln/cln-1.3.6.ebuild')
-rw-r--r-- | sci-libs/cln/cln-1.3.6.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/sci-libs/cln/cln-1.3.6.ebuild b/sci-libs/cln/cln-1.3.6.ebuild new file mode 100644 index 000000000000..d8f58d811919 --- /dev/null +++ b/sci-libs/cln/cln-1.3.6.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic + +DESCRIPTION="Class library (C++) for numbers" +HOMEPAGE="https://www.ginac.de/CLN/" +SRC_URI="https://www.ginac.de/CLN/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="1" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="doc examples static-libs" + +RDEPEND="dev-libs/gmp:0=" +DEPEND="${RDEPEND} + doc? ( virtual/latex-base )" + +pkg_setup() { + use sparc && append-cppflags -DNO_ASM + use hppa && append-cppflags -DNO_ASM + use arm && append-cppflags -DNO_ASM +} + +src_prepare() { + default + # 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_compile() { + default + if use doc; then + pushd doc > /dev/null + export VARTEXFONTS="${T}/fonts" + emake html pdf + DOCS=( doc/cln.pdf ) + HTML_DOCS=( doc/cln.html ) + fi +} + +src_install () { + default + if use examples; then + docompress -x /usr/share/doc/${PF}/examples + docinto examples + dodoc examples/*.cc + fi +} |