summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2010-12-17 22:36:07 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2010-12-17 22:36:07 +0000
commit070e580ea7f3d551b066f5f1a0dff666bf67645f (patch)
treee6af2730f3fd23824cec2f337814528ee413edb4 /sci-mathematics/unuran
parentForce ignoring of -w in MAKEOPTS #338970 by Drake Wyrm. (diff)
downloadgentoo-2-070e580ea7f3d551b066f5f1a0dff666bf67645f.tar.gz
gentoo-2-070e580ea7f3d551b066f5f1a0dff666bf67645f.tar.bz2
gentoo-2-070e580ea7f3d551b066f5f1a0dff666bf67645f.zip
moved to the main tree
(Portage version: 2.1.9.25/cvs/Linux x86_64)
Diffstat (limited to 'sci-mathematics/unuran')
-rw-r--r--sci-mathematics/unuran/ChangeLog21
-rw-r--r--sci-mathematics/unuran/files/unuran-1.8.0-nogsl.patch36
-rw-r--r--sci-mathematics/unuran/metadata.xml16
-rw-r--r--sci-mathematics/unuran/unuran-1.8.0.ebuild50
4 files changed, 123 insertions, 0 deletions
diff --git a/sci-mathematics/unuran/ChangeLog b/sci-mathematics/unuran/ChangeLog
new file mode 100644
index 000000000000..e5bbcb31e5e1
--- /dev/null
+++ b/sci-mathematics/unuran/ChangeLog
@@ -0,0 +1,21 @@
+# ChangeLog for sci-mathematics/unuran
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/unuran/ChangeLog,v 1.1 2010/12/17 22:36:07 bicatali Exp $
+
+ 17 Dec 2010; Sébastien Fabbro <bicatali@gentoo.org> +unuran-1.8.0.ebuild,
+ +files/unuran-1.8.0-nogsl.patch, +metadata.xml:
+ Moved to the main tree
+
+*unuran-1.8.0 (01 Nov 2010)
+
+ 01 Nov 2010; Sébastien Fabbro <bicatali@gentoo.org> -unuran-1.7.1.ebuild,
+ -files/unuran-1.7.1-nogsl.patch, +unuran-1.8.0.ebuild,
+ +files/unuran-1.8.0-nogsl.patch, metadata.xml:
+ bump
+
+*unuran-1.7.1 (16 Oct 2010)
+
+ 16 Oct 2010; Sébastien Fabbro <bicatali@gentoo.org> +unuran-1.7.1.ebuild,
+ +files/unuran-1.7.1-nogsl.patch, +metadata.xml:
+ Initial import
+
diff --git a/sci-mathematics/unuran/files/unuran-1.8.0-nogsl.patch b/sci-mathematics/unuran/files/unuran-1.8.0-nogsl.patch
new file mode 100644
index 000000000000..f9db7d9ebe5d
--- /dev/null
+++ b/sci-mathematics/unuran/files/unuran-1.8.0-nogsl.patch
@@ -0,0 +1,36 @@
+diff -Nur unuran-1.8.0.orig/configure.ac unuran-1.8.0/configure.ac
+--- unuran-1.8.0.orig/configure.ac 2010-10-16 18:38:08.000000000 +0100
++++ unuran-1.8.0/configure.ac 2010-10-16 19:10:23.000000000 +0100
+@@ -62,10 +62,6 @@
+ dnl libm: the standard math library
+ AC_CHECK_LIB([m], [sqrt])
+
+-dnl libmgsl: the GNU Scientific library
+-dnl (only used for experimental code)
+-AC_CHECK_LIB([gsl], [gsl_integration_qagiu])
+-
+ dnl Optional support for external uniform random number generators
+
+ dnl RngStream: Pierre L'Ecuyer's multiple random stream generator
+@@ -215,7 +211,8 @@
+ [],
+ [enable_experimental=no])
+ AS_IF([test "x$enable_experimental" = xyes],
+- [AC_DEFINE([USE_EXPERIMENTAL_CODE], [1],
++ [AC_CHECK_LIB([gsl], [gsl_integration_qagiu])
++ AC_DEFINE([USE_EXPERIMENTAL_CODE], [1],
+ [Define to 1 if you want to use experimental code])],
+ [])
+ AM_CONDITIONAL(ENABLE_EXPERIMENTAL, test x$enable_experimental = xyes)
+diff -Nur unuran-1.8.0.orig/tests/Makefile.am unuran-1.8.0/tests/Makefile.am
+--- unuran-1.8.0.orig/tests/Makefile.am 2010-10-16 18:38:08.000000000 +0100
++++ unuran-1.8.0/tests/Makefile.am 2010-10-16 19:14:33.000000000 +0100
+@@ -9,7 +9,7 @@
+ -I$(top_srcdir)/src \
+ -I$(top_srcdir)/src/tests
+
+-noinst_LTLIBRARIES = libtestroutines.la
++check_LTLIBRARIES = libtestroutines.la
+ libtestroutines_la_SOURCES = testroutines.c testcounter.c
+
+ LDADD = \
diff --git a/sci-mathematics/unuran/metadata.xml b/sci-mathematics/unuran/metadata.xml
new file mode 100644
index 000000000000..497acf9f54bd
--- /dev/null
+++ b/sci-mathematics/unuran/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci-mathematics</herd>
+<longdescription lang="en">
+ UNU.RAN is an ANSI C library licensed under GPL.
+ It contains universal (also called automatic or black-box) algorithms
+ that can generate random numbers from large classes of continuous or
+ discrete distributions, and also from practically all standard
+ distributions.
+</longdescription>
+<use>
+ <flag name="rngstreams">Use <pkg>sci-mathematics/rngstreams</pkg> library</flag>
+ <flag name="prng">Use <pkg>sci-mathematics/prng</pkg> library</flag>
+</use>
+</pkgmetadata>
diff --git a/sci-mathematics/unuran/unuran-1.8.0.ebuild b/sci-mathematics/unuran/unuran-1.8.0.ebuild
new file mode 100644
index 000000000000..dd91dc93a1c3
--- /dev/null
+++ b/sci-mathematics/unuran/unuran-1.8.0.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/unuran/unuran-1.8.0.ebuild,v 1.1 2010/12/17 22:36:07 bicatali Exp $
+
+EAPI=2
+inherit eutils autotools
+
+DESCRIPTION="Universal Non-Uniform Random number generator"
+HOMEPAGE="http://statmath.wu.ac.at/unuran/"
+SRC_URI="${HOMEPAGE}${P}.tar.gz"
+LICENSE="GPL-2"
+
+SLOT=0
+KEYWORDS="~amd64 ~x86"
+IUSE="doc examples gsl prng +rngstreams static-libs"
+DEPEND="gsl? ( sci-libs/gsl )
+ prng? ( sci-mathematics/prng )
+ rngstreams? ( sci-mathematics/rngstreams )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-nogsl.patch
+ eautoreconf
+}
+
+src_configure() {
+ local udefault=builtin
+ use rngstreams && udefault=rngstreams
+ econf \
+ --enable-shared \
+ --with-urng-default=${udefault} \
+ $(use_enable static-libs static) \
+ $(use_with gsl urng-gsl) \
+ $(use_with prng urng-prng) \
+ $(use_with rngstreams urng-rngstream)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc AUTHORS README NEWS KNOWN-PROBLEMS THANKS UPGRADE
+ insinto /usr/share/doc/${PF}
+ if use doc; then
+ doins doc/${PN}.pdf || die
+ fi
+ if use examples; then
+ emake distclean -C examples
+ rm -f examples/Makefile*
+ doins -r examples
+ fi
+}