aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <sfabbro@uvic.ca>2012-07-11 15:16:41 -0700
committerSebastien Fabbro <sfabbro@uvic.ca>2012-07-11 15:16:41 -0700
commit6a4cd09b4ded0b370af9056d5de13a9061627035 (patch)
treed045b9b891bb267aad477cc2b260cdbf3d144ab2 /dev-libs/double-conversion/double-conversion-1.1.ebuild
parentsci-mathematics/dsfmt: Initial import (diff)
downloadsci-6a4cd09b4ded0b370af9056d5de13a9061627035.tar.gz
sci-6a4cd09b4ded0b370af9056d5de13a9061627035.tar.bz2
sci-6a4cd09b4ded0b370af9056d5de13a9061627035.zip
dev-libs/double-conversion: Initial import
(Portage version: 2.2.01.20757-prefix/git/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'dev-libs/double-conversion/double-conversion-1.1.ebuild')
-rw-r--r--dev-libs/double-conversion/double-conversion-1.1.ebuild46
1 files changed, 46 insertions, 0 deletions
diff --git a/dev-libs/double-conversion/double-conversion-1.1.ebuild b/dev-libs/double-conversion/double-conversion-1.1.ebuild
new file mode 100644
index 000000000..7649df227
--- /dev/null
+++ b/dev-libs/double-conversion/double-conversion-1.1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+inherit scons-utils eutils
+
+DESCRIPTION="Binary-decimal and decimal-binary routines forIEEE doubles"
+HOMEPAGE="http://code.google.com/p/double-conversion/"
+SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="static-libs"
+
+RDEPEND=""
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${PN}"
+
+LIBNAME=lib${PN}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-scons.patch
+}
+
+src_compile() {
+ escons ${LIBNAME}.so
+ use static-libs && escons ${LIBNAME}.a
+}
+
+src_test() {
+ escons run_tests
+ export LD_LIBRARY_PATH=".:${LD_LIBRARY_PATH}"
+ ./run_tests --list | tr -d '<' | xargs ./run_tests || die
+}
+
+src_install() {
+ dolib.so ${LIBNAME}.so
+ use static-libs && dolib.a ${LIBNAME}.a
+ insinto /usr/include
+ doins src/double-conversion*h
+ dodoc README Changelog AUTHORS
+}