summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2012-07-12 06:19:23 +0000
committerJustin Lecher <jlec@gentoo.org>2012-07-12 06:19:23 +0000
commit612481d53a518eda71e197c2a33fb405c20702f8 (patch)
treee16b45c5da45f3c961bc688a89bf0e9a65eb7a9e /sci-mathematics
parentmarked x86 per bug 425924 (diff)
downloadhistorical-612481d53a518eda71e197c2a33fb405c20702f8.tar.gz
historical-612481d53a518eda71e197c2a33fb405c20702f8.tar.bz2
historical-612481d53a518eda71e197c2a33fb405c20702f8.zip
sci-mathematics/topcom: Version Bump, fix compilation with gcc-4.7, #426214
Package-Manager: portage-2.2.0_alpha116/cvs/Linux x86_64
Diffstat (limited to 'sci-mathematics')
-rw-r--r--sci-mathematics/topcom/ChangeLog11
-rw-r--r--sci-mathematics/topcom/Manifest27
-rw-r--r--sci-mathematics/topcom/files/topcom-0.17.4-buildsystem.patch105
-rw-r--r--sci-mathematics/topcom/files/topcom-0.17.4-no-internal-libs.patch77
-rw-r--r--sci-mathematics/topcom/metadata.xml12
-rw-r--r--sci-mathematics/topcom/topcom-0.16.2.ebuild36
-rw-r--r--sci-mathematics/topcom/topcom-0.17.4.ebuild53
7 files changed, 283 insertions, 38 deletions
diff --git a/sci-mathematics/topcom/ChangeLog b/sci-mathematics/topcom/ChangeLog
index 53a4bcea5d68..7ffb4d6ef56a 100644
--- a/sci-mathematics/topcom/ChangeLog
+++ b/sci-mathematics/topcom/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sci-mathematics/topcom
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/topcom/ChangeLog,v 1.1 2010/11/09 17:48:55 tomka Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/topcom/ChangeLog,v 1.2 2012/07/12 06:19:23 jlec Exp $
+
+*topcom-0.17.4 (12 Jul 2012)
+
+ 12 Jul 2012; Justin Lecher <jlec@gentoo.org> topcom-0.16.2.ebuild,
+ +topcom-0.17.4.ebuild, +files/topcom-0.17.4-buildsystem.patch,
+ +files/topcom-0.17.4-no-internal-libs.patch, metadata.xml:
+ Version Bump, fix compilation with gcc-4.7, #426214
*topcom-0.16.2 (09 Nov 2010)
diff --git a/sci-mathematics/topcom/Manifest b/sci-mathematics/topcom/Manifest
index 15378f2281c4..f04c34a99cea 100644
--- a/sci-mathematics/topcom/Manifest
+++ b/sci-mathematics/topcom/Manifest
@@ -1,16 +1,21 @@
-----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
+Hash: SHA256
-AUX topcom-0.16.2-no-internal-libs.patch 2417 RMD160 60a02ef673b45580d8a517b5ac502f1099601ab4 SHA1 ac286dae7872fda91d7e9ddbd7bb13b6c22de0ed SHA256 356c0fb1e01c6742b539f279966d575fa864d7a7ba9729945cfe3506b9ba3c3a
-DIST TOPCOM-0.16.2.tar.gz 22578125 RMD160 e95ba642892232ed58c66d8e56d1ab6d4cb379e8 SHA1 b88fc7d220aaa0fae81169c617ce216ed2b07b3b SHA256 9c292be797ca87bcd20b96fc35347b42d0c7ade22ac98d41d44994ed0de42f80
-DIST TOPCOM-manual.html 19251 RMD160 287615b14af62033842a8c60ffc2ca78f5e8df97 SHA1 7e135468afa957a6aa6be887dbec21dc1314c834 SHA256 b1c3b326044fdb512264fa2bde6fa10962fd276d43fcab71cb0dc8778378608e
-EBUILD topcom-0.16.2.ebuild 1310 RMD160 c31b08d4b883a050d95d3da72133041ad2f654ec SHA1 80e19b11191f05b850e8f43f63f6c8c4593e454e SHA256 89d302abdf91b073fa4b2ee5e86863a614fac0a5ab3815d6c349d1008b150129
-MISC ChangeLog 470 RMD160 e0ff60fa5b49ce44a73ba4936ca947a953fe3392 SHA1 69ad60d8c2f141ced6867e2dcea2cebd0b503d00 SHA256 0902304ccd2ebd48fd49d0315ea025854437832f5ea4eabd527a4262f5bad68a
-MISC metadata.xml 383 RMD160 e15ed041c760d248bcd8e519a4b0bbc9afeb7bc7 SHA1 8acebb24bfe2e75b37a93ef1e62b468b8feeb7d8 SHA256 f9b0ec0f57505ba477f51416aea110e1e11e5ca6063d0340651679d33c5cbecc
+AUX topcom-0.16.2-no-internal-libs.patch 2417 SHA256 356c0fb1e01c6742b539f279966d575fa864d7a7ba9729945cfe3506b9ba3c3a SHA512 246df1c2303df1ac03707c1a7356a9feef2a77bfd10e48d79b0caa9eb710b5989941bbf44f46b25b65b9b314c90b0e073be92900a8f7bb0f8932bbbd03b31a5f WHIRLPOOL 07141b24ef8e11289326936c653a36506680d6104154e03d859d3b117bef80e2913da7b032fb9badb52f238e30acb9e21072d735c4c488ea6d731db609d51ed4
+AUX topcom-0.17.4-buildsystem.patch 3584 SHA256 1c03d2e0be6b1f0d7152ef41bbda6755fb5b97f626efd6549cce7cb156e878d4 SHA512 74293e77d6db067c3977467bf95f645e08b05ca5807167133ab6923748154dd34166df4da62872adce21b9ccd832a8ab3602d0000c67f494b5108064651d5d04 WHIRLPOOL c2f74623cabefef709a449af9b2fc6ee91fbe0ac1b328eb83646ea74760b9ccbb8a30db2e0779c6fa77526b45030349c2fcce08a36ad763cf0ecc0f63b009fa2
+AUX topcom-0.17.4-no-internal-libs.patch 2656 SHA256 04b1aa4838e81ec9ef14474055ccf7e3312ce0e1065fcd246fbb3f5808af2a86 SHA512 e3fc2257541383824a1f9b9a40bb014b8b1da5bdf904aaa0f85fa8ca8846622d656d5d9b893eaba45126ed88a3171b650cadaa862d537b02ccf13991d1812316 WHIRLPOOL 028e8a626df0ce5f26130353d5e1ba2082fd445e7423c9aa9608590ecc41f389b4f1eb343a53865122e85f29186e6dfcb77df450fa5cc99d24036dd25935353a
+DIST TOPCOM-0.16.2.tar.gz 22578125 SHA256 9c292be797ca87bcd20b96fc35347b42d0c7ade22ac98d41d44994ed0de42f80 SHA512 2d6cc8d57b243ab0d15a48210745f7dcbfe63cc39c29510b2601609bec769a41cdba25ee149cac0a28e2a20f2b074bb4ec4e76b29bdd704c6b644e0616c34401 WHIRLPOOL 3b6f554d64c19250e955366881561a75fab73294fd27ba847057b372ef6cde438d7bfec9dd962d52282eee5513d210e93be4c8cebff5a164dfbbad1c3f9fd046
+DIST TOPCOM-0.17.4.tar.gz 8666508 SHA256 42f3ff4e04613009966a3e3cd942f1fb6aa7bc7439f54f20a0b81d1989f9fef1 SHA512 29cee145ee8ec1a63c0b1ec5d9e5f34a11084767405435eed515f864ba1094ca4566c92bbf7cf56914e3e455dd8bdf9746c0f7192a9455fe7852a65704a6009c WHIRLPOOL 4b5f18b8eee251470281a352a354a683b7f42c852cb47552e4227699d9570aee09cda9f9e84f9e7abc5b9e1997818437618776ed90a8667cb186143da6deab4b
+DIST TOPCOM-manual.html 19251 SHA256 b1c3b326044fdb512264fa2bde6fa10962fd276d43fcab71cb0dc8778378608e
+EBUILD topcom-0.16.2.ebuild 1104 SHA256 ddab1b50370c8750d1693e4b4916489fe835c2280c8be1517bbae58d9c932920 SHA512 f789b64c2811fb62312355d7abb02d080bfb62589550fb937be33058e4c635784cd6da8e52ac4224623eeb87fe83fb8dca4299fa582fb8750193fe9a5ec3b2d1 WHIRLPOOL 836100e820a6e836a675943eb20a1b5cc4e692a955fa34a6e986184869e13cedadf23895f4f67dba841c213575726616e8d900124538f75cfd91755ddcb15fbf
+EBUILD topcom-0.17.4.ebuild 1282 SHA256 d7f41bab18986c7d8457f708c8ec04ffd23aa64e5e701708e1bf271bd1fdf082 SHA512 6c7736e003c7ab3594f0a36392c30389b7eca5fb8c88fc12db06e072fb380ad900521801814f24ea019e9f020f1144ba4e8c47dd997473be4fdb7497c23989d3 WHIRLPOOL 30b7435e95b576ede638bd0a389515554df8da511221eff1ba068c4190731bd974993d905ce478e76154ba7f85f1597f925548eecaa84a90530b8beb10e8df84
+MISC ChangeLog 749 SHA256 1ef28772cdd1f4333ae60b395266c5d563955c688264452232346dbfc422f0e9 SHA512 c965c6ede64c47c69f71fa48831dbf5b3ab39dd53fbcb9e7afd877050a07ea314288afa9042d03d5c83f744a34ecdc480009ce880f4ff08fae48a8baf1416c09 WHIRLPOOL 14852dca5cf6228d7822e7b0bdb9e1a8026d88952055861e7b3a73253f2dd4d5f3ea21c1802bddcea23315421e1a779218398afcb319abedff5c63bcf7ac4965
+MISC metadata.xml 391 SHA256 fd1471b00b7648e6d6304e33b865b04143bc7f56df9143f1a2d5378ee5626a80 SHA512 e692a53595913ef3290e746d581f4d4ec59c2d06c1a69f325fc3463c4330cc9fb18d65d3d45719104ef090f3585fb8c72b1fa04639acacfd97da8557c0e49fb3 WHIRLPOOL ec4db0de547a0995dc916bf1ae5629d2f3a3c8672f55ef0d9ba56818b447d255052c457e3385a3f601973e04d62a08bac39321d4ff337f6e0d5fadcdad615d76
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.16 (GNU/Linux)
+Version: GnuPG v2.0.19 (GNU/Linux)
+Comment: GPGTools - http://gpgtools.org
-iEYEARECAAYFAkzZih0ACgkQnZsgo/h8kNbqYACfTAfmGxDuLipAEG7B86KMDxcC
-X8QAoMDDUMVCCGLkZEwxo6ZaceZJRg7J
-=wIpP
+iEYEAREIAAYFAk/+bHEACgkQgAnW8HDreRYouwCfRODw4k27mIN90ubV3QtgAzKR
+KAMAoIoUmdqpVs4b+xB6V3nJFBUEeiGj
+=JzD1
-----END PGP SIGNATURE-----
diff --git a/sci-mathematics/topcom/files/topcom-0.17.4-buildsystem.patch b/sci-mathematics/topcom/files/topcom-0.17.4-buildsystem.patch
new file mode 100644
index 000000000000..e8546aa846dc
--- /dev/null
+++ b/sci-mathematics/topcom/files/topcom-0.17.4-buildsystem.patch
@@ -0,0 +1,105 @@
+ lib-src-reg/Makefile.am | 8 +++-----
+ lib-src/Makefile.am | 8 +++-----
+ src-reg/Makefile.am | 12 +++++-------
+ src/Makefile.am | 12 +++++-------
+ wrap-gmp-gmpxx/Makefile.am | 2 +-
+ 5 files changed, 17 insertions(+), 25 deletions(-)
+
+diff --git a/lib-src-reg/Makefile.am b/lib-src-reg/Makefile.am
+index 67c1dc9..202d6fa 100644
+--- a/lib-src-reg/Makefile.am
++++ b/lib-src-reg/Makefile.am
+@@ -10,11 +10,9 @@ SPXinterface.hh \
+ RegularityCheck.hh \
+ LPinterface.hh
+
+-INCLUDES = -I../lib-src
+-INCLUDES += -I../wrap-gmp-gmpxx
+-INCLUDES += -I../external/include
++INCLUDES = -I$(top_srcdir)/lib-src
++INCLUDES += -I$(top_srcdir)/wrap-gmp-gmpxx
++INCLUDES += -I$(top_srcdir)/external/include
+ INCLUDES += -I$(includedir)
+
+ AM_CPPFLAGS = -DVERBOSE -DGMPRATIONAL -ftemplate-depth-30
+-
+-AM_CXXFLAGS = -O2
+diff --git a/lib-src/Makefile.am b/lib-src/Makefile.am
+index defed87..c94109c 100644
+--- a/lib-src/Makefile.am
++++ b/lib-src/Makefile.am
+@@ -88,11 +88,9 @@ VertexFacetTable.hh \
+ VertexFacetTableArray.hh \
+ VirtualChiro.hh
+
+-INCLUDES = -I../lib-src-reg
+-INCLUDES += -I../wrap-gmp-gmpxx
+-INCLUDES += -I../external/include
++INCLUDES = -I$(top_srcdir)/lib-src-reg
++INCLUDES += -I$(top_srcdir)/wrap-gmp-gmpxx
++INCLUDES += -I$(top_srcdir)/external/include
+ INCLUDES += -I$(includedir)
+
+ AM_CPPFLAGS = -DVERBOSE -DGMPRATIONAL -ftemplate-depth-35
+-
+-AM_CXXFLAGS = -O2 -g
+diff --git a/src-reg/Makefile.am b/src-reg/Makefile.am
+index b0219a5..e9b00bc 100644
+--- a/src-reg/Makefile.am
++++ b/src-reg/Makefile.am
+@@ -2,15 +2,13 @@ bin_PROGRAMS = checkregularity
+
+ checkregularity_SOURCES = checkregularity.cc
+
+-LDADD = ../lib-src-reg/libCHECKREG.a \
+- ../lib-src/libTOPCOM.a
++LDADD = $(top_builddir)/lib-src-reg/libCHECKREG.a \
++ $(top_builddir)/lib-src/libTOPCOM.a
+
+-INCLUDES = -I../lib-src
+-INCLUDES += -I../lib-src-reg
+-INCLUDES += -I../wrap-gmp-gmpxx
++INCLUDES = -I$(top_srcdir)/lib-src
++INCLUDES += -I$(top_srcdir)/lib-src-reg
++INCLUDES += -I$(top_srcdir)/wrap-gmp-gmpxx
+ INCLUDES += -I$(includedir)
+
+
+ AM_CPPFLAGS = -DVERBOSE -DGMPRATIONAL -ftemplate-depth-30
+-
+-AM_CXXFLAGS = -O2
+diff --git a/src/Makefile.am b/src/Makefile.am
+index 5ba9b22..4c59202 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -85,14 +85,12 @@ santos_triang_SOURCES = santos_triang.cc
+ santos_dim4_triang_SOURCES = santos_dim4_triang.cc
+ santos_22_triang_SOURCES = santos_22_triang.cc
+
+-LDADD = ../lib-src/libTOPCOM.a \
+- ../lib-src-reg/libCHECKREG.a
++LDADD = $(top_builddir)/lib-src/libTOPCOM.a \
++ $(top_builddir)/lib-src-reg/libCHECKREG.a
+
+-INCLUDES = -I../lib-src
+-INCLUDES += -I../lib-src-reg
+-INCLUDES += -I../wrap-gmp-gmpxx
++INCLUDES = -I$(top_srcdir)/lib-src
++INCLUDES += -I$(top_srcdir)/lib-src-reg
++INCLUDES += -I$(top_srcdir)/wrap-gmp-gmpxx
+ INCLUDES += -I$(includedir)
+
+ AM_CPPFLAGS = -DVERBOSE -DGMPRATIONAL -ftemplate-depth-30
+-
+-AM_CXXFLAGS = -O2
+diff --git a/wrap-gmp-gmpxx/Makefile.am b/wrap-gmp-gmpxx/Makefile.am
+index 383e003..d93a637 100644
+--- a/wrap-gmp-gmpxx/Makefile.am
++++ b/wrap-gmp-gmpxx/Makefile.am
+@@ -2,5 +2,5 @@ include_HEADERS = \
+ Integer.h \
+ Rational.h
+
+-INCLUDES = -I../external/include
++INCLUDES = -I$(top_srcdir)/external/include
+ INCLUDES += -I$(includedir)
diff --git a/sci-mathematics/topcom/files/topcom-0.17.4-no-internal-libs.patch b/sci-mathematics/topcom/files/topcom-0.17.4-no-internal-libs.patch
new file mode 100644
index 000000000000..e9cffeec7440
--- /dev/null
+++ b/sci-mathematics/topcom/files/topcom-0.17.4-no-internal-libs.patch
@@ -0,0 +1,77 @@
+ Makefile.am | 4 ----
+ configure.ac | 6 +-----
+ src-reg/Makefile.am | 6 +-----
+ src/Makefile.am | 6 +-----
+ 4 files changed, 3 insertions(+), 19 deletions(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index 640652f..00ba26a 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -1,6 +1,2 @@
+ SUBDIRS = wrap-gmp-gmpxx lib-src-reg lib-src src-reg src examples
+ EXTRA_DIST = external/Makefile
+-EXTRA_DIST += external/gmp-5.0.5.tar.bz2
+-EXTRA_DIST += external/cddlib-0.94f-TOPCOM.tar.gz
+-EXTRA_DIST += external/gmpxx-patch
+-
+diff --git a/configure.ac b/configure.ac
+index b737f27..ecd38ce 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -17,12 +17,8 @@ dnl Replace `main' with a function in -lstdc:
+ dnl AC_CHECK_LIB(stdc, main)
+ dnl Replace `main' with a function in -lstdc++:
+ dnl AC_CHECK_LIB(stdc++, main)
+-dnl Make libgmp:
+-make -C external gmp
+-dnl Make libcddgmp:
+-make -C external cdd
+ dnl Check for soplex:
+-AC_CHECK_LIB(soplex, main, , csh -c 'echo soplex not found: --soplex will not work.')
++AC_CHECK_LIB(soplex, main, , sh -c 'echo soplex not found: --soplex will not work.')
+
+ dnl Checks for header files.
+ AC_HEADER_STDC
+diff --git a/src-reg/Makefile.am b/src-reg/Makefile.am
+index c976e34..b0219a5 100644
+--- a/src-reg/Makefile.am
++++ b/src-reg/Makefile.am
+@@ -3,15 +3,11 @@ bin_PROGRAMS = checkregularity
+ checkregularity_SOURCES = checkregularity.cc
+
+ LDADD = ../lib-src-reg/libCHECKREG.a \
+- ../lib-src/libTOPCOM.a \
+- ../external/lib/libcddgmp.a \
+- ../external/lib/libgmpxx.a \
+- ../external/lib/libgmp.a
++ ../lib-src/libTOPCOM.a
+
+ INCLUDES = -I../lib-src
+ INCLUDES += -I../lib-src-reg
+ INCLUDES += -I../wrap-gmp-gmpxx
+-INCLUDES += -I../external/include
+ INCLUDES += -I$(includedir)
+
+
+diff --git a/src/Makefile.am b/src/Makefile.am
+index 4c35135..5ba9b22 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -86,15 +86,11 @@ santos_dim4_triang_SOURCES = santos_dim4_triang.cc
+ santos_22_triang_SOURCES = santos_22_triang.cc
+
+ LDADD = ../lib-src/libTOPCOM.a \
+- ../lib-src-reg/libCHECKREG.a \
+- ../external/lib/libcddgmp.a \
+- ../external/lib/libgmpxx.a \
+- ../external/lib/libgmp.a
++ ../lib-src-reg/libCHECKREG.a
+
+ INCLUDES = -I../lib-src
+ INCLUDES += -I../lib-src-reg
+ INCLUDES += -I../wrap-gmp-gmpxx
+-INCLUDES += -I../external/include
+ INCLUDES += -I$(includedir)
+
+ AM_CPPFLAGS = -DVERBOSE -DGMPRATIONAL -ftemplate-depth-30
diff --git a/sci-mathematics/topcom/metadata.xml b/sci-mathematics/topcom/metadata.xml
index fb6885a0e2c9..623d96beb1cf 100644
--- a/sci-mathematics/topcom/metadata.xml
+++ b/sci-mathematics/topcom/metadata.xml
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<maintainer>
-<email>tomka@gentoo.org</email>
-<name>Thomas Kahle</name>
-</maintainer>
-<herd>sci</herd>
-<longdescription lang="en">
+ <maintainer>
+ <email>tomka@gentoo.org</email>
+ <name>Thomas Kahle</name>
+ </maintainer>
+ <herd>sci</herd>
+ <longdescription lang="en">
TOPCOM is a package for computing Triangulations Of Point Configurations and Oriented Matroids
</longdescription>
</pkgmetadata>
diff --git a/sci-mathematics/topcom/topcom-0.16.2.ebuild b/sci-mathematics/topcom/topcom-0.16.2.ebuild
index 869cd6d81722..9647ca58c444 100644
--- a/sci-mathematics/topcom/topcom-0.16.2.ebuild
+++ b/sci-mathematics/topcom/topcom-0.16.2.ebuild
@@ -1,30 +1,34 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/topcom/topcom-0.16.2.ebuild,v 1.1 2010/11/09 17:48:55 tomka Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/topcom/topcom-0.16.2.ebuild,v 1.2 2012/07/12 06:19:23 jlec Exp $
-EAPI="2"
+EAPI=4
inherit autotools eutils flag-o-matic
-DESCRIPTION="A package for computing Triangulations Of Point Configurations and Oriented Matroids."
-SRC_URI="http://www.uni-bayreuth.de/departments/wirtschaftsmathematik/rambau/Software/TOPCOM-$PV.tar.gz
- doc? ( http://www.rambau.wm.uni-bayreuth.de/TOPCOM/TOPCOM-manual.html )"
+DESCRIPTION="Computing Triangulations Of Point Configurations and Oriented Matroids"
HOMEPAGE="http://www.rambau.wm.uni-bayreuth.de/TOPCOM/"
+SRC_URI="
+ http://www.uni-bayreuth.de/departments/wirtschaftsmathematik/rambau/Software/TOPCOM-${PV}.tar.gz
+ doc? ( http://www.rambau.wm.uni-bayreuth.de/TOPCOM/TOPCOM-manual.html )"
-KEYWORDS="~amd64 ~x86"
SLOT="0"
LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
IUSE="doc examples"
-DEPEND=">=dev-libs/gmp-4.1-r1
- >=sci-libs/cddlib-094f"
+DEPEND="
+ dev-libs/gmp
+ sci-libs/cddlib"
RDEPEND="${DEPEND}"
S="${WORKDIR}"/TOPCOM-${PV}
+AUTOTOOLS_IN_SOURCE_BUILD=1
+
src_prepare () {
# Don't compile internal GMP and CDD ...
- epatch "${FILESDIR}"/${PN}-${PV}-no-internal-libs.patch
+ epatch "${FILESDIR}"/${P}-no-internal-libs.patch
# ... and link in tree versions:
append-libs -lgmp -lgmpxx -lcddgmp
@@ -33,15 +37,9 @@ src_prepare () {
}
src_install () {
- emake DESTDIR="${D}" install || die "Install failed"
- dodoc AUTHORS ChangeLog NEWS README || die
+ default
- if use doc; then
- dohtml "${DISTDIR}"/TOPCOM-manual.html || die
- fi
+ use doc && dohtml "${DISTDIR}"/TOPCOM-manual.html
- if use examples; then
- dodir /usr/share/doc/${PF}/examples
- cp -R "${S}"/examples/* "${D}"/usr/share/doc/${PF}/examples || die
- fi
+ use examples && dodoc -r "${S}"/examples
}
diff --git a/sci-mathematics/topcom/topcom-0.17.4.ebuild b/sci-mathematics/topcom/topcom-0.17.4.ebuild
new file mode 100644
index 000000000000..8ded61352495
--- /dev/null
+++ b/sci-mathematics/topcom/topcom-0.17.4.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/topcom/topcom-0.17.4.ebuild,v 1.1 2012/07/12 06:19:23 jlec Exp $
+
+EAPI=4
+
+AUTOTOOLS_AUTORECONF=yes
+
+inherit autotools-utils flag-o-matic
+
+DESCRIPTION="Computing Triangulations Of Point Configurations and Oriented Matroids"
+HOMEPAGE="http://www.rambau.wm.uni-bayreuth.de/TOPCOM/"
+SRC_URI="
+ http://www.uni-bayreuth.de/departments/wirtschaftsmathematik/rambau/Software/TOPCOM-${PV}.tar.gz
+ doc? ( http://www.rambau.wm.uni-bayreuth.de/TOPCOM/TOPCOM-manual.html )"
+
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE="doc examples static-libs"
+
+DEPEND="
+ >=dev-libs/gmp-5.0.5
+ >=sci-libs/cddlib-094f"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"/TOPCOM-${PV}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-no-internal-libs.patch
+ "${FILESDIR}"/${P}-buildsystem.patch
+ )
+
+src_prepare () {
+ # ... and link in tree versions:
+ append-libs -lgmp -lgmpxx -lcddgmp
+
+ find external -delete || die
+
+ mv configure.{in,ac} || die
+
+ autotools-utils_src_prepare
+}
+
+src_install () {
+ autotools-utils_src_install
+
+ use static-libs || rm -f "${ED}"/usr/$(get_libdir)/*a
+
+ use doc && dohtml "${DISTDIR}"/TOPCOM-manual.html
+
+ use examples && dodoc -r "${S}"/examples
+}