public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sebastien Fabbro" <bicatali@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/coinor-couenne/
Date: Thu, 19 Jul 2012 20:52:30 +0000 (UTC)	[thread overview]
Message-ID: <1342723084.698ecefbbe3d07005666b99325312c08ce211d9e.bicatali@gentoo> (raw)

commit:     698ecefbbe3d07005666b99325312c08ce211d9e
Author:     Sebastien Fabbro <sfabbro <AT> uvic <DOT> ca>
AuthorDate: Thu Jul 19 18:38:04 2012 +0000
Commit:     Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Thu Jul 19 18:38:04 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=698ecefb

sci-libs/coinor-couenne: Initial import

(Portage version: 2.2.01.20757-prefix/git/Linux x86_64, unsigned Manifest commit)

---
 sci-libs/coinor-couenne/ChangeLog                  |    9 +++
 .../coinor-couenne/coinor-couenne-0.4.2.ebuild     |   65 ++++++++++++++++++++
 sci-libs/coinor-couenne/metadata.xml               |   12 ++++
 3 files changed, 86 insertions(+), 0 deletions(-)

diff --git a/sci-libs/coinor-couenne/ChangeLog b/sci-libs/coinor-couenne/ChangeLog
new file mode 100644
index 0000000..eaf936c
--- /dev/null
+++ b/sci-libs/coinor-couenne/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for sci-libs/coinor-couenne
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*coinor-couenne-0.4.2 (19 Jul 2012)
+
+  19 Jul 2012; Sébastien Fabbro <bicatali@gentoo.org>
+  +coinor-couenne-0.4.2.ebuild, +metadata.xml:
+  sci-libs/coinor-couenne: Initial import

diff --git a/sci-libs/coinor-couenne/coinor-couenne-0.4.2.ebuild b/sci-libs/coinor-couenne/coinor-couenne-0.4.2.ebuild
new file mode 100644
index 0000000..35588e9
--- /dev/null
+++ b/sci-libs/coinor-couenne/coinor-couenne-0.4.2.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+inherit autotools-utils multilib
+
+MYPN=Couenne
+
+DESCRIPTION="COIN-OR Convex Over and Under ENvelopes for Nonlinear Estimation"
+HOMEPAGE="https://projects.coin-or.org/Couenne/"
+SRC_URI="http://www.coin-or.org/download/source/${MYPN}/${MYPN}-${PV}.tgz"
+
+LICENSE="EPL-1.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc static-libs test"
+
+RDEPEND="sci-libs/coinor-bonmin"
+DEPEND="${RDEPEND}
+	virtual/pkgconfig"
+
+S="${WORKDIR}/${MYPN}-${PV}/${MYPN}"
+
+src_prepare() {
+	# as-needed fix
+	# hack to avoid eautoreconf (coinor has its own weird autotools)
+	sed -i \
+		-e 's:\(libBonCouenne_la_LIBADD.*=\).*:\1 $(top_builddir)/src/libCouenne.la:' \
+		src/main/Makefile.in || die
+
+	sed -i \
+		-e '/LINK/s/$(libCouenne_la_LIBADD)/@COUENNELIB_LIBS@ $(libCouenne_la_LIBADD)/' \
+		src/Makefile.in || die
+
+	# missing includes from Bonmin
+	ln -s ../../../Bonmin/src/Interfaces/BonExitCodes.hpp \
+		src/main/BonExitCodes.hpp
+	ln -s ../../../Bonmin/src/Algorithms/QuadCuts/BonLinearCutsGenerator.hpp \
+		src/main/BonLinearCutsGenerator.hpp
+}
+
+src_configure() {
+	PKG_CONFIG_PATH+="${ED}"/usr/$(get_libdir)/pkgconfig \
+		autotools-utils_src_configure
+}
+
+src_compile() {
+	autotools-utils_src_compile
+	# resolve as-needed
+	# circular dependencies between libCouenne and libBonCouenne :(
+	pushd ${AUTOTOOLS_BUILD_DIR}/src > /dev/null
+	rm libCouenne.la main/libBonCouenne.la || die
+	emake LIBS+="-Lmain/.libs -lBonCouenne" libCouenne.la
+	emake -C main
+	popd > /dev/null
+}
+
+src_install() {
+	autotools-utils_src_install
+	use doc && dodoc doc/couenne-user-manual.pdf
+	# already installed
+	rm "${ED}"/usr/share/coin/doc/${MYPN}/{README,AUTHORS,LICENSE} || die
+}

diff --git a/sci-libs/coinor-couenne/metadata.xml b/sci-libs/coinor-couenne/metadata.xml
new file mode 100644
index 0000000..77cb214
--- /dev/null
+++ b/sci-libs/coinor-couenne/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+<longdescription lang="en">
+  Couenne (Convex Over and Under ENvelopes for Nonlinear Estimation)
+  is a spatial branch and bound algorithm that implements linearization, bound
+  reduction, and branching techniques for Mixed-integer, Nonlinear
+  Programming (MINLP) problems. The purpose of Couenne is to find global
+  optima of nonconvex MINLPs.
+</longdescription>
+</pkgmetadata>



             reply	other threads:[~2012-07-19 20:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-19 20:52 Sebastien Fabbro [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-01-29 22:30 [gentoo-commits] proj/sci:master commit in: sci-libs/coinor-couenne/ Sebastien Fabbro
2013-12-08  5:00 Sebastien Fabbro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1342723084.698ecefbbe3d07005666b99325312c08ce211d9e.bicatali@gentoo \
    --to=bicatali@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox