summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2014-01-14 18:54:51 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2014-01-14 18:54:51 +0000
commit7afb44a5cedb609df3c34e99eaa068cd136b3058 (patch)
tree049b60be4149f3138a47d606d95331eba2e4d046 /sci-libs/coinor-clp
parentInitial import in main tree (diff)
downloadhistorical-7afb44a5cedb609df3c34e99eaa068cd136b3058.tar.gz
historical-7afb44a5cedb609df3c34e99eaa068cd136b3058.tar.bz2
historical-7afb44a5cedb609df3c34e99eaa068cd136b3058.zip
Initial import in main tree
Package-Manager: portage-2.2.8-prefix/cvs/Linux x86_64 Manifest-Sign-Key: 0x13CB1360
Diffstat (limited to 'sci-libs/coinor-clp')
-rw-r--r--sci-libs/coinor-clp/Manifest14
-rw-r--r--sci-libs/coinor-clp/coinor-clp-1.15.6.ebuild112
-rw-r--r--sci-libs/coinor-clp/files/coinor-clp-1.15.6-mpi-header.patch12
-rw-r--r--sci-libs/coinor-clp/metadata.xml20
4 files changed, 156 insertions, 2 deletions
diff --git a/sci-libs/coinor-clp/Manifest b/sci-libs/coinor-clp/Manifest
index 1f7461aad946..a047474e8ffc 100644
--- a/sci-libs/coinor-clp/Manifest
+++ b/sci-libs/coinor-clp/Manifest
@@ -1,5 +1,15 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
AUX coinor-clp-1.15.6-mpi-header.patch 323 SHA256 ba8e50a75385f54ba9cf3bba3f6c8a7171a94161369388dddd33824da6a0a55d SHA512 1f18e00c1a303cffa0ec6244bf1f5dbac83f0a73d1c82f4bf7a4f4df3ce581012a47b044f1d61c140a282e2d262403e76be49892cccec41b191f02edc6fa63a3 WHIRLPOOL 18b7e7916797f5923956d1daa8f69ae28d0987642683e59da26bc1f79ddca2479057334217cb728c17050bc101de43fdfb4c1f85635deb8a944e6beae0c43d76
DIST Clp-1.15.6.tgz 5644504 SHA256 4f1ff52f7b471d795d395f561bb10cc2d5a11ecd151bc5329f6f60d448b8385f SHA512 a0da0cc5dcdd409c67cb67dd0f126a3d96bf59851543e7e08adbdbf01012a25905b58ded66aac50b06462ee3a147bed912740c00681417f8c228992a917748db WHIRLPOOL 0712972a59790daac6ddbae1b53458361e4f324f84bb5706b4d59e46eb538a69b22b1e236b550fdaa20201fd5adcc33a8f69f296a9ce022a15ea93b73897833c
-EBUILD coinor-clp-1.15.6.ebuild 3014 SHA256 19288e45efd2dd39fb6d132019a4291ab6b477ce785d8b2b9425ae97818f18d1 SHA512 ab89528a504ec9f700184a82cb33ba4c6fb619c486ef15638859a7e7d86f80b40c7848fbe355328f2643cb51d502d870a926fa25b2946394ff5b1e4335871e9e WHIRLPOOL 2b6271a63b26324dc3684b9965d46a2ccc5307bd32e69a1fa9fd08fc8385ff848a9a40d239bf438624fbe9892f50e29468d76e51325cd4b165f5104788fb4b5d
-MISC ChangeLog 1695 SHA256 49ca61ff015d85f4331b584ff683f7ca6b751edd41411ef5cdf63ba95fc10e6d SHA512 c541400799fbb9b5a7f8f52b7fd502b2742f41ea996e84ad7258abff0eba8cd7e228af295c6495554df704a1f89ba103531d82968bc4dbddc63c17542e826b52 WHIRLPOOL 7027afa5044b9885af961331f1ea2dc53400545fc5b4ee33a6485bc3ce55ce727e7a55da648f190df766fbf384ad6d2654be3fd6fae553f2b2cbf11d65853cf9
+EBUILD coinor-clp-1.15.6.ebuild 3122 SHA256 55e2f96df09ae52f22baab011a982520bb266fccc8440d44e461eba134a24b5f SHA512 4475f3b3d0e9a6ec7ab5fb161ef8e18e13b16197bec67db36524244b6ea6708c1ef0a4bbbd2c988ae9c29879cea664f0093e1c512c107bdbc6dc926d556e3397 WHIRLPOOL acfb9bc183a07e9ca1c587073ec795f8dbb1507ca88845a2894050ff45dfd8bb898e6be8d5a37e4c1d72e79291d5fa3928fdbe4c7b81ffe0d23d3a9f12b04695
+MISC ChangeLog 1788 SHA256 5fec8ee7e9b6e67c998b7d1cbb5e31c8e88d40df055e5ef655a8794424dd81e3 SHA512 fbd29cffca9ec9300d13a48777895e788b7f4c9207b5796236e7e1b1834c61458b0a218d64db5dcbfa42875e03a0b7605f12f5a1fe5e43b587f192f002ba23f9 WHIRLPOOL b6dd7d25f5c1788f0a8f49a967d0833c282028d300ae990e3e144a8ea14bceb193c81cfd07ecfb46f802bbea11aab463ce486ee4e6ec25397d27217842a4c7f4
MISC metadata.xml 877 SHA256 babe479f415a9be7b4b9094f29626f0e16e16526e4176eda50a6a6730409a3a9 SHA512 748f995e850bb79fb2bacc55e7028d12f962e6f4e1194beefa69d4919541e1252fbe1ae9407a8982c439a5ae1782da9fd2072b8108c74e3ff4ca8d7ae15cef12 WHIRLPOOL 17cfa896908a486f6e54093825b9d92c68606aa4c50f9498d45516828e851703159a2760fec57a9bb15e42b820c33a6ea1a2c742b572c8d7fb2243d11d0eef6a
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.22 (GNU/Linux)
+
+iEYEAREIAAYFAlLVh1cACgkQ1ycZbhPLE2B+MwCgoLfssxvNjg5fVNGsnj6HQ4QK
+8NYAnj1Fp/iGUwxL4+3VyKayLnC4P39U
+=4l2g
+-----END PGP SIGNATURE-----
diff --git a/sci-libs/coinor-clp/coinor-clp-1.15.6.ebuild b/sci-libs/coinor-clp/coinor-clp-1.15.6.ebuild
new file mode 100644
index 000000000000..763387d38922
--- /dev/null
+++ b/sci-libs/coinor-clp/coinor-clp-1.15.6.ebuild
@@ -0,0 +1,112 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/coinor-clp/coinor-clp-1.15.6.ebuild,v 1.1 2014/01/14 18:52:06 bicatali Exp $
+
+EAPI=5
+
+inherit autotools-utils eutils multilib toolchain-funcs
+
+MYPN=Clp
+
+DESCRIPTION="COIN-OR Linear Programming solver"
+HOMEPAGE="https://projects.coin-or.org/Clp/"
+SRC_URI="http://www.coin-or.org/download/source/${MYPN}/${MYPN}-${PV}.tgz"
+
+LICENSE="EPL-1.0"
+SLOT="0/1"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc examples glpk metis mumps sparse static-libs test"
+
+RDEPEND="
+ sci-libs/coinor-osi:=
+ sci-libs/coinor-utils:=
+ glpk? ( sci-mathematics/glpk:= )
+ metis? ( || ( sci-libs/metis sci-libs/parmetis ) )
+ mumps? ( sci-libs/mumps )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ doc? ( app-doc/doxygen[dot] )
+ test? ( sci-libs/coinor-sample )"
+
+S="${WORKDIR}/${MYPN}-${PV}/${MYPN}"
+
+src_prepare() {
+ # as-needed fix
+ # hack to avoid eautoreconf (coinor has its own weird autotools)
+ sed -i \
+ -e 's:\(libOsiClp_la_LIBADD.*=\).*:\1 $(top_builddir)/src/libClp.la:g' \
+ src/OsiClp/Makefile.in || die
+ sed -i \
+ -e 's:\(libClp_la_LIBADD.*=\).*:\1 @CLPLIB_LIBS@:g' \
+ src/Makefile.in || die
+ epatch "${FILESDIR}"/${PN}-1.15.6-mpi-header.patch
+ if has_version sci-libs/mumps[-mpi]; then
+ ln -s "${EPREFIX}"/usr/include/mpiseq/mpi.h src/mpi.h
+ elif has_version sci-libs/mumps[mpi]; then
+ export CXX=mpicxx
+ fi
+}
+
+src_configure() {
+ local myeconfargs=(
+ $(use_with doc dot)
+ )
+ if use glpk; then
+ myeconfargs+=(
+ --with-glpk-incdir="${EPREFIX}"/usr/include
+ --with-glpk-lib=-lglpk )
+ else
+ myeconfargs+=( --without-glpk )
+ fi
+ if use sparse; then
+ myeconfargs+=(
+ --with-amd-incdir="${EPREFIX}"/usr/include
+ --with-amd-lib=-lamd
+ --with-cholmod-incdir="${EPREFIX}"/usr/include
+ --with-cholmod-lib=-lcholmod )
+ else
+ myeconfargs+=( --without-amd --without-cholmod )
+ fi
+ if use metis; then
+ myeconfargs+=(
+ --with-metis-incdir="$($(tc-getPKG_CONFIG) --cflags metis | sed s/-I//)"
+ --with-metis-lib="$($(tc-getPKG_CONFIG) --libs metis)" )
+ else
+ myeconfargs+=( --without-metis )
+ fi
+ if use mumps; then
+ myeconfargs+=(
+ --with-mumps-incdir="${EPREFIX}"/usr/include
+ --with-mumps-lib="-lmumps_common -ldmumps -lzmumps -lsmumps -lcmumps" )
+ else
+ myeconfargs+=( --without-mumps )
+ fi
+
+ PKG_CONFIG_PATH+="${ED}"/usr/$(get_libdir)/pkgconfig \
+ autotools-utils_src_configure
+}
+
+src_compile() {
+ # hack for parallel build, to overcome not patching Makefile.am above
+ autotools-utils_src_compile -C src libClp.la
+ autotools-utils_src_compile all $(use doc && echo doxydoc)
+}
+
+src_test() {
+ pushd "${BUILD_DIR}" > /dev/null || die
+ emake test
+ popd > /dev/null || die
+}
+
+src_install() {
+ use doc && HTML_DOC=("${BUILD_DIR}/doxydocs/html/")
+ # hack for parallel install, to overcome not patching Makefile.am above
+ autotools-utils_src_install -C src install-am
+ autotools-utils_src_install
+ # already installed
+ rm "${ED}"/usr/share/coin/doc/${MYPN}/{README,AUTHORS,LICENSE} || die
+ if use examples; then
+ insinto /usr/share/doc/${PF}
+ doins -r examples
+ fi
+}
diff --git a/sci-libs/coinor-clp/files/coinor-clp-1.15.6-mpi-header.patch b/sci-libs/coinor-clp/files/coinor-clp-1.15.6-mpi-header.patch
new file mode 100644
index 000000000000..7ad03e8c76c4
--- /dev/null
+++ b/sci-libs/coinor-clp/files/coinor-clp-1.15.6-mpi-header.patch
@@ -0,0 +1,12 @@
+--- src/ClpCholeskyMumps.cpp.orig 2013-06-19 09:58:02.834485943 -0700
++++ src/ClpCholeskyMumps.cpp 2013-06-19 09:57:39.013355095 -0700
+@@ -14,8 +14,8 @@
+ #define USE_COMM_WORLD -987654
+ extern "C" {
+ #include "dmumps_c.h"
+-#include "mpi.h"
+ }
++#include "mpi.h"
+
+ #include "ClpCholeskyMumps.hpp"
+ #include "ClpMessage.hpp"
diff --git a/sci-libs/coinor-clp/metadata.xml b/sci-libs/coinor-clp/metadata.xml
new file mode 100644
index 000000000000..8c7fb9886919
--- /dev/null
+++ b/sci-libs/coinor-clp/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+<longdescription lang="en">
+ Clp (Coin-or linear programming) is an open-source linear
+ programming solver written in C++. It is primarily meant to be used
+ as a callable library, but a basic, stand-alone executable version
+ is also available. It is designed to find solutions of constrained
+ linear mathematical optimization problems.
+</longdescription>
+<use>
+ <flag name='glpk'>Enable GNU Linear Programming Kit
+ <pkg>sci-mathematics/glpk</pkg> support</flag>
+ <flag name='metis'>Enable partitioning with
+ <pkg>sci-libs/metis</pkg></flag>
+ <flag name='mumps'>Enable <pkg>sci-libs/mumps</pkg> support</flag>
+ <flag name='sparse'>Enable support for sparse matrix with <pkg>sci-libs/cholmod</pkg></flag>
+</use>
+</pkgmetadata>