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
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)
-rw-r--r--sci-mathematics/prng/ChangeLog14
-rw-r--r--sci-mathematics/prng/files/prng-3.0.2-shared.patch52
-rw-r--r--sci-mathematics/prng/metadata.xml13
-rw-r--r--sci-mathematics/prng/prng-3.0.2.ebuild42
-rw-r--r--sci-mathematics/rngstreams/ChangeLog14
-rw-r--r--sci-mathematics/rngstreams/metadata.xml12
-rw-r--r--sci-mathematics/rngstreams/rngstreams-1.0.1.ebuild38
-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
11 files changed, 308 insertions, 0 deletions
diff --git a/sci-mathematics/prng/ChangeLog b/sci-mathematics/prng/ChangeLog
new file mode 100644
index 000000000000..5651de4bd364
--- /dev/null
+++ b/sci-mathematics/prng/ChangeLog
@@ -0,0 +1,14 @@
+# ChangeLog for sci-mathematics/prng
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/prng/ChangeLog,v 1.1 2010/12/17 22:36:07 bicatali Exp $
+
+ 17 Dec 2010; Sébastien Fabbro <bicatali@gentoo.org> +prng-3.0.2.ebuild,
+ +files/prng-3.0.2-shared.patch, +metadata.xml:
+ Moved to the main tree
+
+*prng-3.0.2 (16 Oct 2010)
+
+ 16 Oct 2010; Sébastien Fabbro <bicatali@gentoo.org> +prng-3.0.2.ebuild,
+ +files/prng-3.0.2-shared.patch, +metadata.xml:
+ Initial import
+
diff --git a/sci-mathematics/prng/files/prng-3.0.2-shared.patch b/sci-mathematics/prng/files/prng-3.0.2-shared.patch
new file mode 100644
index 000000000000..7edb28992639
--- /dev/null
+++ b/sci-mathematics/prng/files/prng-3.0.2-shared.patch
@@ -0,0 +1,52 @@
+diff -Nur prng-3.0.2.orig/configure.ac prng-3.0.2/configure.ac
+--- prng-3.0.2.orig/configure.ac 2010-10-16 18:47:52.000000000 +0100
++++ prng-3.0.2/configure.ac 2010-10-16 18:49:16.000000000 +0100
+@@ -23,6 +23,7 @@
+ AC_PROG_RANLIB
+ AC_PROG_INSTALL
+ AC_PROG_LN_S
++AC_PROG_LIBTOOL
+
+ dnl Checks for typedefs, structures, and compiler characteristics.
+ AC_C_CONST
+@@ -39,6 +40,8 @@
+ dnl Checks for library functions.
+ AC_CHECK_FUNCS(strtoul)
+
++AC_CHECK_LIB([m], [pow])
++
+ dnl Set flags for compiler
+ if test X"$GCC" = Xyes ; then
+ AC_SUBST(AM_CFLAGS,"-Wall -fomit-frame-pointer")
+diff -Nur prng-3.0.2.orig/examples/Makefile.am prng-3.0.2/examples/Makefile.am
+--- prng-3.0.2.orig/examples/Makefile.am 2010-10-16 18:47:52.000000000 +0100
++++ prng-3.0.2/examples/Makefile.am 2010-10-16 18:48:08.000000000 +0100
+@@ -1,11 +1,11 @@
+ ## Process this file with automake to produce Makefile.in
+ # $Id: prng-3.0.2-shared.patch,v 1.1 2010/12/17 22:36:07 bicatali Exp $
+
+-LDADD = $(top_builddir)/src/libprng.a -lm
++LDADD = $(top_builddir)/src/libprng.la -lm
+
+ INCLUDES = -I$(top_srcdir)/src
+
+-noinst_PROGRAMS = pairs tuples
++check_PROGRAMS = pairs tuples
+
+ # clean backup files
+ CLEANFILES = *~
+diff -Nur prng-3.0.2.orig/src/Makefile.am prng-3.0.2/src/Makefile.am
+--- prng-3.0.2.orig/src/Makefile.am 2010-10-16 18:47:52.000000000 +0100
++++ prng-3.0.2/src/Makefile.am 2010-10-16 18:48:08.000000000 +0100
+@@ -3,9 +3,9 @@
+
+ INCLUDES =
+
+-lib_LIBRARIES = libprng.a
++lib_LTLIBRARIES = libprng.la
+
+-libprng_a_SOURCES = \
++libprng_la_SOURCES = \
+ prng.c \
+ dicg.c \
+ eicg.c \
diff --git a/sci-mathematics/prng/metadata.xml b/sci-mathematics/prng/metadata.xml
new file mode 100644
index 000000000000..be4335631f57
--- /dev/null
+++ b/sci-mathematics/prng/metadata.xml
@@ -0,0 +1,13 @@
+<?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">
+ The Pseudo-Random Number Generator library is a portable,
+ high-performance ANSI-C implementations of pseudorandom number
+ generators such as linear congruential, inversive congruential, and
+ explicit inversive congruential random number generators (called
+ LCG, ICG and EICG, respectively) created by Otmar Lendl. It is part
+ of the pLab project.
+</longdescription>
+</pkgmetadata>
diff --git a/sci-mathematics/prng/prng-3.0.2.ebuild b/sci-mathematics/prng/prng-3.0.2.ebuild
new file mode 100644
index 000000000000..e2a77121fa0b
--- /dev/null
+++ b/sci-mathematics/prng/prng-3.0.2.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/prng/prng-3.0.2.ebuild,v 1.1 2010/12/17 22:36:07 bicatali Exp $
+
+EAPI=2
+inherit eutils autotools
+
+DESCRIPTION="Pseudo-Random Number Generator library"
+HOMEPAGE="http://statmath.wu.ac.at/prng/"
+SRC_URI="${HOMEPAGE}${P}.tar.gz"
+LICENSE="GPL-2"
+
+SLOT=0
+KEYWORDS="~amd64 ~x86"
+IUSE="doc examples static-libs"
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-shared.patch
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --enable-shared \
+ $(use_enable static-libs static)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc AUTHORS README NEWS ChangeLog KNOWN-PROBLEMS
+ 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
+}
diff --git a/sci-mathematics/rngstreams/ChangeLog b/sci-mathematics/rngstreams/ChangeLog
new file mode 100644
index 000000000000..8e992428d9e9
--- /dev/null
+++ b/sci-mathematics/rngstreams/ChangeLog
@@ -0,0 +1,14 @@
+# ChangeLog for sci-mathematics/rngstreams
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/rngstreams/ChangeLog,v 1.1 2010/12/17 22:36:07 bicatali Exp $
+
+ 17 Dec 2010; Sébastien Fabbro <bicatali@gentoo.org>
+ +rngstreams-1.0.1.ebuild, +metadata.xml:
+ Moved to the main tree
+
+*rngstreams-1.0.1 (16 Oct 2010)
+
+ 16 Oct 2010; Sébastien Fabbro <bicatali@gentoo.org>
+ +rngstreams-1.0.1.ebuild, +metadata.xml:
+ Initial import
+
diff --git a/sci-mathematics/rngstreams/metadata.xml b/sci-mathematics/rngstreams/metadata.xml
new file mode 100644
index 000000000000..232b1e848442
--- /dev/null
+++ b/sci-mathematics/rngstreams/metadata.xml
@@ -0,0 +1,12 @@
+<?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">
+ RngStreams is a C implementation of a high quality uniform random
+ number generator that supports multiple "independent" streams of
+ uniform random numbers. It has been written by Pierre L'Ecuyer and
+ Richard Simard.
+ This is the GNU-style package maintained by Josef Leydold.
+</longdescription>
+</pkgmetadata>
diff --git a/sci-mathematics/rngstreams/rngstreams-1.0.1.ebuild b/sci-mathematics/rngstreams/rngstreams-1.0.1.ebuild
new file mode 100644
index 000000000000..d23c084fedaf
--- /dev/null
+++ b/sci-mathematics/rngstreams/rngstreams-1.0.1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/rngstreams/rngstreams-1.0.1.ebuild,v 1.1 2010/12/17 22:36:07 bicatali Exp $
+
+EAPI=2
+
+DESCRIPTION="Multiple independent streams of pseudo-random numbers"
+HOMEPAGE="http://statmath.wu.ac.at/software/RngStreams/"
+SRC_URI="${HOMEPAGE}${P}.tar.gz"
+
+LICENSE="GPL-3"
+
+SLOT=0
+KEYWORDS="~amd64 ~x86"
+IUSE="doc examples static-libs"
+DEPEND=""
+RDEPEND=""
+
+src_configure() {
+ econf \
+ --enable-shared \
+ $(use_enable static-libs static)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc AUTHORS README NEWS
+ insinto /usr/share/doc/${PF}
+ if use doc; then
+ dohtml -r doc/rngstreams.html/* || die
+ doins doc/${PN}.pdf || die
+ fi
+ if use examples; then
+ emake distclean -C examples
+ rm -f examples/Makefile*
+ doins -r examples
+ fi
+}
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
+}