summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sci-libs/coinor-cgl/ChangeLog42
-rw-r--r--sci-libs/coinor-cgl/Manifest4
-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
6 files changed, 202 insertions, 2 deletions
diff --git a/sci-libs/coinor-cgl/ChangeLog b/sci-libs/coinor-cgl/ChangeLog
new file mode 100644
index 000000000000..1aefc4dc1072
--- /dev/null
+++ b/sci-libs/coinor-cgl/ChangeLog
@@ -0,0 +1,42 @@
+# ChangeLog for sci-libs/coinor-cgl
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/coinor-cgl/ChangeLog,v 1.1 2014/01/14 18:54:51 bicatali Exp $
+
+*coinor-cgl-0.58.5 (14 Jan 2014)
+
+ 14 Jan 2014; Sébastien Fabbro <bicatali@gentoo.org>
+ +coinor-cgl-0.58.5.ebuild, +metadata.xml:
+ Initial import in main tree
+
+*coinor-cgl-0.58.4 (07 Dec 2013)
+
+ 07 Dec 2013; Sébastien Fabbro <bicatali@gentoo.org> +coinor-cgl-0.58.4.ebuild,
+ -coinor-cgl-0.58.1.ebuild:
+ sci-libs/coinor-cgl: Version bump
+
+*coinor-cgl-0.58.1 (03 Jul 2013)
+
+ 03 Jul 2013; Sébastien Fabbro <bicatali@gentoo.org> +coinor-cgl-0.58.1.ebuild,
+ -coinor-cgl-0.58.0.ebuild:
+ sci-libs/coinor-cgl: Version bump
+
+ 26 May 2013; Sébastien Fabbro <bicatali@gentoo.org> coinor-cgl-0.58.0.ebuild:
+ sci-libs/coinor-cgl: Fixed missing header
+
+*coinor-cgl-0.58.0 (26 May 2013)
+
+ 26 May 2013; Sébastien Fabbro <bicatali@gentoo.org> +coinor-cgl-0.58.0.ebuild,
+ -coinor-cgl-0.57.4.ebuild:
+ sci-libs/coinor-cgl: Version bump
+
+*coinor-cgl-0.57.4 (29 Jan 2013)
+
+ 29 Jan 2013; Sébastien Fabbro <bicatali@gentoo.org> +coinor-cgl-0.57.4.ebuild,
+ -coinor-cgl-0.57.3.ebuild:
+ sci-libs/coinor-cgl: Version bump
+
+*coinor-cgl-0.57.3 (16 Jul 2012)
+
+ 16 Jul 2012; Sébastien Fabbro <bicatali@gentoo.org> +coinor-cgl-0.57.3.ebuild,
+ +metadata.xml:
+ sci-libs/coinor-cgl: Initial import
diff --git a/sci-libs/coinor-cgl/Manifest b/sci-libs/coinor-cgl/Manifest
new file mode 100644
index 000000000000..0284f77d5991
--- /dev/null
+++ b/sci-libs/coinor-cgl/Manifest
@@ -0,0 +1,4 @@
+DIST Cgl-0.58.5.tgz 5330007 SHA256 ddd6db332b8b0f531992271749810794e44e415996e05476461d51136836ef4d SHA512 f4e5d837cc9de3b34d902aa952616113456a77e966edc7ed1fd14b49df751ddc309f0a83ebd35d5338cda94b976210ae682c9cdf10ed312a3e5fab86b02ca06f WHIRLPOOL 2862bbb475bb0d87d279669f16146ebd53b6eaef177add73bdb8e0cfe0e55a2ae531b5c258c63f10f3c550d7f6122edf81d331bd9612bf139902a633c8dfd4a2
+EBUILD coinor-cgl-0.58.5.ebuild 1721 SHA256 fe3884988fb05d67145dc35bc5d6de95f26bcb56dd0b253814d2577359baa566 SHA512 a9a5115ea0ce391b19e07dfc1c835ec548190060c18d6092bb8f63f5eb4a0f1c78f9f9c4a3cd562e9124161fce8bda6cf5681fe8d5fb30192f98c649d5cdcb7d WHIRLPOOL 2f1769b9d67198d30d6da22fed20dfc671094f086102f099757de4183cd49fb04313e14c0d16bef9500c16eeba49cdf5ffb8fa10336aa1ddbcbf8e222f2a44bf
+MISC ChangeLog 1309 SHA256 b90735ec80dd3939b45a3af9f9945b35e61981ea77b6130b04d116bb2a32f6cf SHA512 54da19ce75cdbab87bec75be1efc631b7b162b10d999bd71a0895057cc261ca16dfb94b41d2e30b925416457fa1609b5b2ecad6a1bb2734e8aba6a22041c6d45 WHIRLPOOL f11bc3ddd5050e553667895af0e686005534cb486cd1863583733e4801595f9e586e034c24bc244f4cfb672ee279b83179a0a881d427079f9369579652195547
+MISC metadata.xml 490 SHA256 1e377e43badaf7a65429fdf3c29e883e0e6c61bd24b66e4d732c24297b444640 SHA512 2a42c2583c176b2995730713aeee74d69ebd6ed13e84a8908c6188b404ba2dc46c9c3243f55f49a59beb5fd2b0ae091e904ad550ebd990fde06b432e9ff1e1c5 WHIRLPOOL 23e3602756e2a31431d1d7fdbf42a030bd12574faf11ddb4c29bb506c9bbd3a2c7a9d80c7dcb8874424b1d1e7d952caec6ce339863f928237715ab29d10d2d53
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>