summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiziano Müller <dev-zero@gentoo.org>2006-10-22 19:01:40 +0000
committerTiziano Müller <dev-zero@gentoo.org>2006-10-22 19:01:40 +0000
commit00f31c795d6166593c6a42d2efc004a9b1289fe7 (patch)
tree5dca10b44bae57fadde0969d7af0f3a6d500c727 /dev-libs/quantlib
parentAdded patch to build against gcc-4.1, the patch is currently #commented out i... (diff)
downloadgentoo-2-00f31c795d6166593c6a42d2efc004a9b1289fe7.tar.gz
gentoo-2-00f31c795d6166593c6a42d2efc004a9b1289fe7.tar.bz2
gentoo-2-00f31c795d6166593c6a42d2efc004a9b1289fe7.zip
Version bump. Added 'doc','emacs' and 'examples' USE-flag. Complete rework of the ebuild.
(Portage version: 2.1.2_pre3-r3)
Diffstat (limited to 'dev-libs/quantlib')
-rw-r--r--dev-libs/quantlib/ChangeLog6
-rw-r--r--dev-libs/quantlib/files/0.3.13-boost_mt.patch11
-rw-r--r--dev-libs/quantlib/files/0.3.13-destdir.patch34
-rw-r--r--dev-libs/quantlib/files/digest-quantlib-0.3.122
-rw-r--r--dev-libs/quantlib/files/digest-quantlib-0.3.133
-rw-r--r--dev-libs/quantlib/quantlib-0.3.13.ebuild69
6 files changed, 124 insertions, 1 deletions
diff --git a/dev-libs/quantlib/ChangeLog b/dev-libs/quantlib/ChangeLog
index 10ad075f7504..27af65ed5c3b 100644
--- a/dev-libs/quantlib/ChangeLog
+++ b/dev-libs/quantlib/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-libs/quantlib
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/quantlib/ChangeLog,v 1.24 2006/08/22 11:58:36 weeve Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/quantlib/ChangeLog,v 1.25 2006/10/22 19:01:40 dev-zero Exp $
+
+ 22 Oct 2006; Tiziano Müller <dev-zero@gentoo.org> +quantlib-0.3.13.ebuild:
+ Version bump. Added 'doc','emacs' and 'examples' USE-flag. Complete rework
+ of the ebuild.
22 Aug 2006; Jason Wever <weeve@gentoo.org> quantlib-0.3.10.ebuild:
Stable on SPARC.
diff --git a/dev-libs/quantlib/files/0.3.13-boost_mt.patch b/dev-libs/quantlib/files/0.3.13-boost_mt.patch
new file mode 100644
index 000000000000..80d8ccce96be
--- /dev/null
+++ b/dev-libs/quantlib/files/0.3.13-boost_mt.patch
@@ -0,0 +1,11 @@
+--- acinclude.m4.orig 2006-10-22 00:07:01.000000000 +0200
++++ acinclude.m4 2006-10-22 00:07:20.000000000 +0200
+@@ -73,7 +73,7 @@
+ [AC_MSG_CHECKING([for Boost unit-test framework])
+ AC_REQUIRE([AC_PROG_CC])
+ ql_original_LIBS=$LIBS
+- for boost_lib in boost_unit_test_framework-$CC boost_unit_test_framework ; do
++ for boost_lib in boost_unit_test_framework-$CC boost_unit_test_framework boost_unit_test_framework-mt ; do
+ LIBS="$ql_original_LIBS -l$boost_lib"
+ boost_unit_found=no
+ AC_LINK_IFELSE(
diff --git a/dev-libs/quantlib/files/0.3.13-destdir.patch b/dev-libs/quantlib/files/0.3.13-destdir.patch
new file mode 100644
index 000000000000..d4259989e356
--- /dev/null
+++ b/dev-libs/quantlib/files/0.3.13-destdir.patch
@@ -0,0 +1,34 @@
+--- ql/Makefile.am.orig 2006-10-21 13:03:31.000000000 +0200
++++ ql/Makefile.am 2006-10-21 13:10:47.000000000 +0200
+@@ -84,15 +84,15 @@
+ install-data-hook:
+ $(SED) -e "s,HAVE_CONFIG_H,QL_HAVE_CONFIG_H," \
+ -e "s,/\* install-hook \*/,#define QL_HAVE_CONFIG_H," \
+- $(includedir)/qldefines.hpp > .qldefines.hpp
+- $(INSTALL_DATA) .qldefines.hpp $(includedir)/qldefines.hpp
++ $(DESTDIR)/$(includedir)/qldefines.hpp > .qldefines.hpp
++ $(INSTALL_DATA) .qldefines.hpp $(DESTDIR)/$(includedir)/qldefines.hpp
+ rm .qldefines.hpp
+ $(SED) -e "s,PACKAGE,QL_PACKAGE," \
+ -e "s,STDC,QL_STDC," \
+ -e "s, HAVE, QL_HAVE," \
+ -e "s, VERSION, QL_AC_VERSION," \
+- $(includedir)/config.hpp > .config.hpp
+- $(INSTALL_DATA) .config.hpp $(includedir)/config.hpp
++ $(DESTDIR)/$(includedir)/config.hpp > .config.hpp
++ $(INSTALL_DATA) .config.hpp $(DESTDIR)/$(includedir)/config.hpp
+ rm .config.hpp
+ depend:
+ makedepend $(INCLUDES) -- $(CFLAGS) -- $(SOURCES)
+@@ -100,9 +100,8 @@
+ if ENABLE_STATIC
+
+ install-exec-hook:
+- mv $(libdir)/libQuantLib.a $(libdir)/libQuantLib-$(PACKAGE_VERSION).a
+- $(LN_S) $(libdir)/libQuantLib-$(PACKAGE_VERSION).a $(libdir)/libQuantLib.a
+-
++ mv $(DESTDIR)/$(libdir)/libQuantLib.a $(DESTDIR)/$(libdir)/libQuantLib-$(PACKAGE_VERSION).a
++ $(LN_S) libQuantLib-$(PACKAGE_VERSION).a $(DESTDIR)/$(libdir)/libQuantLib.a
+ endif
+
+
diff --git a/dev-libs/quantlib/files/digest-quantlib-0.3.12 b/dev-libs/quantlib/files/digest-quantlib-0.3.12
index d50729a2a79a..cddce8069dc1 100644
--- a/dev-libs/quantlib/files/digest-quantlib-0.3.12
+++ b/dev-libs/quantlib/files/digest-quantlib-0.3.12
@@ -1 +1,3 @@
MD5 421d181633d2ad467fd3a33a58086e12 QuantLib-0.3.12.tar.gz 1663966
+RMD160 08c6ee45e4737606c69bc309b7105d0bef719682 QuantLib-0.3.12.tar.gz 1663966
+SHA256 7484adc344913c1017a480e49e2209987beae1b42de26b1e8da138c88de6a635 QuantLib-0.3.12.tar.gz 1663966
diff --git a/dev-libs/quantlib/files/digest-quantlib-0.3.13 b/dev-libs/quantlib/files/digest-quantlib-0.3.13
new file mode 100644
index 000000000000..847640ff9349
--- /dev/null
+++ b/dev-libs/quantlib/files/digest-quantlib-0.3.13
@@ -0,0 +1,3 @@
+MD5 f4a9916b33aad677a7c9fa78ac595492 QuantLib-0.3.13.tar.gz 1716360
+RMD160 b0c6a8a286e2953944ef15a10b5429b86b416b2f QuantLib-0.3.13.tar.gz 1716360
+SHA256 96bf005b08bc331cf111a696bee63eabc40ae0e6e7f66231d5128778f0318265 QuantLib-0.3.13.tar.gz 1716360
diff --git a/dev-libs/quantlib/quantlib-0.3.13.ebuild b/dev-libs/quantlib/quantlib-0.3.13.ebuild
new file mode 100644
index 000000000000..2e6e0084aa63
--- /dev/null
+++ b/dev-libs/quantlib/quantlib-0.3.13.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/quantlib/quantlib-0.3.13.ebuild,v 1.1 2006/10/22 19:01:40 dev-zero Exp $
+
+inherit autotools eutils
+
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+
+MY_P=QuantLib-${PV}
+DESCRIPTION="A comprehensive software framework for quantitative finance"
+HOMEPAGE="http://www.quantlib.org"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+SLOT="0"
+LICENSE="BSD"
+IUSE="doc emacs examples"
+
+RDEPEND="dev-libs/boost"
+DEPEND="sys-devel/libtool
+ emacs? ( virtual/emacs )
+ doc? ( app-doc/doxygen )
+ ${RDEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/${PV}-destdir.patch"
+ epatch "${FILESDIR}/${PV}-boost_mt.patch"
+
+ sed -i \
+ -e 's/qlintro.tex quantlibheader.tex //' \
+ Docs/Makefile.in || die "sed failed"
+
+ eautoreconf
+}
+
+src_compile() {
+ use emacs ||
+ sed -i -e "s/^EMACS=.*/EMACS=no/" configure || die "sed failed"
+
+ econf || die "econf failed"
+ emake || die "emake failed"
+
+ if use doc ; then
+ cd "${S}/Docs"
+ emake docs-online || die "emake docs-html failed"
+ fi
+}
+
+src_install(){
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc *.txt
+
+ if use doc ; then
+ cd "${S}/Docs"
+ dohtml html-online/*
+ fi
+
+ if use examples ; then
+ cd "${S}/Examples"
+ insinto /usr/share/doc/${PF}/examples
+ doins *.txt
+ for example in $(ls -d */); do
+ doins ${example%%/}/*.{cpp,h,txt}
+ done
+ fi
+}