summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Kahle <tomka@gentoo.org>2010-11-09 17:48:56 +0000
committerThomas Kahle <tomka@gentoo.org>2010-11-09 17:48:56 +0000
commitf4a4080aef93d4eb3c15bd9bb861e2eb05e10361 (patch)
treed4d553dbe7c34058797f47a9fc74467270b0ae50
parentVersion bump to 3.1.0. Start cf-execd after cf-serverd. (diff)
downloadgentoo-2-f4a4080aef93d4eb3c15bd9bb861e2eb05e10361.tar.gz
gentoo-2-f4a4080aef93d4eb3c15bd9bb861e2eb05e10361.tar.bz2
gentoo-2-f4a4080aef93d4eb3c15bd9bb861e2eb05e10361.zip
New package: sci-mathematics/topcom, revised import from sci overlay, fixes bug 285619
(Portage version: 2.1.9.24/cvs/Linux i686)
-rw-r--r--sci-mathematics/topcom/ChangeLog11
-rw-r--r--sci-mathematics/topcom/files/topcom-0.16.2-no-internal-libs.patch56
-rw-r--r--sci-mathematics/topcom/metadata.xml12
-rw-r--r--sci-mathematics/topcom/topcom-0.16.2.ebuild47
4 files changed, 126 insertions, 0 deletions
diff --git a/sci-mathematics/topcom/ChangeLog b/sci-mathematics/topcom/ChangeLog
new file mode 100644
index 000000000000..53a4bcea5d68
--- /dev/null
+++ b/sci-mathematics/topcom/ChangeLog
@@ -0,0 +1,11 @@
+# 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 $
+
+*topcom-0.16.2 (09 Nov 2010)
+
+ 09 Nov 2010; Thomas Kahle <tomka@gentoo.org> +topcom-0.16.2.ebuild,
+ +files/topcom-0.16.2-no-internal-libs.patch, +metadata.xml:
+ New package: sci-mathematics/topcom, revised import from sci overlay,
+ fixes bug 285619
+
diff --git a/sci-mathematics/topcom/files/topcom-0.16.2-no-internal-libs.patch b/sci-mathematics/topcom/files/topcom-0.16.2-no-internal-libs.patch
new file mode 100644
index 000000000000..9e89b1b5892b
--- /dev/null
+++ b/sci-mathematics/topcom/files/topcom-0.16.2-no-internal-libs.patch
@@ -0,0 +1,56 @@
+diff -U 3 -dHrN TOPCOM-0.16.2.orig/configure.in TOPCOM-0.16.2/configure.in
+--- TOPCOM-0.16.2.orig/configure.in 2009-10-15 09:00:51.000000000 +0200
++++ TOPCOM-0.16.2/configure.in 2010-11-09 18:02:19.000000000 +0100
+@@ -17,12 +17,8 @@
+ 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, , /bin/sh -c 'echo soplex not found: --soplex will not work.')
+
+ dnl Checks for header files.
+ AC_HEADER_STDC
+diff -U 3 -dHrN TOPCOM-0.16.2.orig/Makefile.am TOPCOM-0.16.2/Makefile.am
+--- TOPCOM-0.16.2.orig/Makefile.am 2009-10-15 07:36:24.000000000 +0200
++++ TOPCOM-0.16.2/Makefile.am 2010-11-09 18:02:19.000000000 +0100
+@@ -1,4 +1,2 @@
+ SUBDIRS = wrap-gmp-gmpxx lib-src-reg lib-src src-reg src examples
+-EXTRA_DIST = external/Makefile
+-EXTRA_DIST += external/gmp-4.3.0.tar.gz
+-EXTRA_DIST += external/cddlib-0.94f-TOPCOM.tar.gz
++
+diff -U 3 -dHrN TOPCOM-0.16.2.orig/src/Makefile.am TOPCOM-0.16.2/src/Makefile.am
+--- TOPCOM-0.16.2.orig/src/Makefile.am 2009-07-03 12:56:30.000000000 +0200
++++ TOPCOM-0.16.2/src/Makefile.am 2010-11-09 18:03:25.000000000 +0100
+@@ -76,10 +76,7 @@
+ 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
+diff -U 3 -dHrN TOPCOM-0.16.2.orig/src-reg/Makefile.am TOPCOM-0.16.2/src-reg/Makefile.am
+--- TOPCOM-0.16.2.orig/src-reg/Makefile.am 2009-07-03 12:56:33.000000000 +0200
++++ TOPCOM-0.16.2/src-reg/Makefile.am 2010-11-09 18:02:40.000000000 +0100
+@@ -3,10 +3,7 @@
+ 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
diff --git a/sci-mathematics/topcom/metadata.xml b/sci-mathematics/topcom/metadata.xml
new file mode 100644
index 000000000000..fb6885a0e2c9
--- /dev/null
+++ b/sci-mathematics/topcom/metadata.xml
@@ -0,0 +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">
+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
new file mode 100644
index 000000000000..869cd6d81722
--- /dev/null
+++ b/sci-mathematics/topcom/topcom-0.16.2.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2010 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 $
+
+EAPI="2"
+
+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 )"
+HOMEPAGE="http://www.rambau.wm.uni-bayreuth.de/TOPCOM/"
+
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE="doc examples"
+
+DEPEND=">=dev-libs/gmp-4.1-r1
+ >=sci-libs/cddlib-094f"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"/TOPCOM-${PV}
+
+src_prepare () {
+ # Don't compile internal GMP and CDD ...
+ epatch "${FILESDIR}"/${PN}-${PV}-no-internal-libs.patch
+
+ # ... and link in tree versions:
+ append-libs -lgmp -lgmpxx -lcddgmp
+
+ eautoreconf
+}
+
+src_install () {
+ emake DESTDIR="${D}" install || die "Install failed"
+ dodoc AUTHORS ChangeLog NEWS README || die
+
+ if use doc; then
+ dohtml "${DISTDIR}"/TOPCOM-manual.html || die
+ fi
+
+ if use examples; then
+ dodir /usr/share/doc/${PF}/examples
+ cp -R "${S}"/examples/* "${D}"/usr/share/doc/${PF}/examples || die
+ fi
+}