From: Stefan Huber Date: Tue, 9 Nov 2010 21:03:50 +0000 (+0100) Subject: Adding ECG core library X-Git-Url: https://git.sthu.org/?p=shuber-gentoo-overlay.git;a=commitdiff_plain;h=0012a65feebe9c15e38448ab2c38171288eabeca;ds=sidebyside Adding ECG core library --- diff --git a/dev-libs/core/Manifest b/dev-libs/core/Manifest new file mode 100644 index 0000000..b3b77bc --- /dev/null +++ b/dev-libs/core/Manifest @@ -0,0 +1,2 @@ +DIST core-2.1.tgz 3413055 RMD160 efb686c0d9b26df298f968965824b937f0799fe9 SHA1 133f87e553e63a40abbd3a2e2f1b0fa259338050 SHA256 bd719fa2e9e1a46e1152cc5713d7559ce0561606808658644ca3f2d4d13c33d2 +EBUILD core-2.1.ebuild 1391 RMD160 10f661f567b645a821692891f8944be6dd4e6416 SHA1 daffaca33c286ba717e5cd42007855f93afe4a92 SHA256 601ef45c40cb481f1f4b1abcac9b7f977d9b50576a0a20e30b3b75da81ba1b48 diff --git a/dev-libs/core/core-2.1.ebuild b/dev-libs/core/core-2.1.ebuild new file mode 100644 index 0000000..ecd57eb --- /dev/null +++ b/dev-libs/core/core-2.1.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=3 + +DESCRIPTION="Exact arithmetics library intended for exact geometric computations" +HOMEPAGE="http://cs.nyu.edu/exact/core_pages/" +SRC_URI="http://cs.nyu.edu/exact/core/download/core/${P}.std.tgz -> ${P}.tgz" + +LICENSE="QPL" +SLOT="0" +KEYWORDS="~x86 ~amd64" +RESTRICT="mirror" +IUSE="debug shared extensions doc" + +DEPEND=" + dev-libs/gmp + dev-libs/mpfr + doc? ( + virtual/latex-base + app-doc/doxygen + ) + " +RDEPEND="${DEPEND}" +S="${WORKDIR}/${P}.1" + + +src_compile() { + export PLATFORM="gnu" + export LINKAGE="static" + if use shared; then + einfo "Add shared version" + LINKAGE="shared" + fi + + emake corelib + if use extensions; then + emake corex + fi + + if use debug; then + einfo "Compile debug version" + export VAR=Debug + emake corelib + + if use extensions; then + emake corex + fi + fi + + if use doc; then + cd doc + emake + fi +} + + +src_install() { + + dolib.a lib/libcore*.a + if use shared; then + dolib.so lib/libcore*.so + fi + + dodoc README + dodoc FAQs + + + if use doc; then + + dodoc doc/stackOverflow.txt + dodoc doc/bigNumFormat.txt + dodoc doc/eclipse.txt + dodoc doc/tutorial/tutorial.pdf + + docinto announce + dodoc doc/announce/* + + docinto papers + dodoc doc/papers/* + + docinto html + dodoc doc/doxy/html/* + fi + + insinto /usr/include/ + cd inc + doins -r CORE +} + + + +