X-Git-Url: https://git.sthu.org/?p=shuber-gentoo-overlay.git;a=blobdiff_plain;f=dev-libs%2Fcore%2Fcore-2.1.ebuild;fp=dev-libs%2Fcore%2Fcore-2.1.ebuild;h=ecd57eba48e9bb5bc131dc334cadbc1d846d7477;hp=0000000000000000000000000000000000000000;hb=0012a65feebe9c15e38448ab2c38171288eabeca;hpb=62791fc0d03786e1a749837a414f5e2e5a12444a 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 +} + + + +