public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/sci:master commit in: sci-libs/coinor-smi/
@ 2013-12-08  5:00 Sebastien Fabbro
  0 siblings, 0 replies; only message in thread
From: Sebastien Fabbro @ 2013-12-08  5:00 UTC (permalink / raw
  To: gentoo-commits

commit:     cb824cb1c093c0ce1a71b13e71da9221d41525db
Author:     Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
AuthorDate: Sat Dec  7 16:47:54 2013 +0000
Commit:     Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Sat Dec  7 16:47:54 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=cb824cb1

sci-libs/coinor-smi: Initial import

Package-Manager: portage-2.2.7-prefix

---
 sci-libs/coinor-smi/ChangeLog                |  9 ++++
 sci-libs/coinor-smi/coinor-smi-0.93.3.ebuild | 69 ++++++++++++++++++++++++++++
 sci-libs/coinor-smi/metadata.xml             | 18 ++++++++
 3 files changed, 96 insertions(+)

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

diff --git a/sci-libs/coinor-smi/coinor-smi-0.93.3.ebuild b/sci-libs/coinor-smi/coinor-smi-0.93.3.ebuild
new file mode 100644
index 0000000..e881ff8
--- /dev/null
+++ b/sci-libs/coinor-smi/coinor-smi-0.93.3.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+AUTOTOOLS_IN_SOURCE_BUILD=yes
+inherit autotools-utils multilib
+
+MYPN=Smi
+
+DESCRIPTION="COIN-OR Stochastic modelling interface"
+HOMEPAGE="https://projects.coin-or.org/Smi/"
+SRC_URI="http://www.coin-or.org/download/source/${MYPN}/${MYPN}-${PV}.tgz"
+
+LICENSE="CPL-1.0"
+SLOT="0/2"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc examples static-libs test"
+
+RDEPEND="
+	sci-libs/coinor-cbc
+	sci-libs/coinor-cgl
+	sci-libs/coinor-clp
+	sci-libs/coinor-flopcpp
+	sci-libs/coinor-osi
+	sci-libs/coinor-utils"
+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:\(libSmi_la_LIBADD.*=\).*:\1 @SMI_LIBS@:g' \
+		src/Makefile.in || die
+}
+
+src_configure() {
+	PKG_CONFIG_PATH+="${ED}"/usr/$(get_libdir)/pkgconfig \
+		autotools-utils_src_configure
+}
+
+src_compile() {
+	autotools-utils_src_compile
+	if use doc; then
+		cd "${WORKDIR}/${MYPN}-${PV}/doxydoc" || die
+		doxygen doxygen.conf || die
+	fi
+}
+
+src_test() {
+	pushd "${AUTOTOOLS_BUILD_DIR}" > /dev/null || die
+	emake test
+	popd > /dev/null || die
+}
+
+src_install() {
+	use doc && HTML_DOC=("${WORKDIR}/${MYPN}-${PV}/doxydoc/html/")
+	autotools-utils_src_install
+	if use examples; then
+		insinto /usr/share/doc/${PF}/examples
+		doins -r Examples/*
+	fi
+}

diff --git a/sci-libs/coinor-smi/metadata.xml b/sci-libs/coinor-smi/metadata.xml
new file mode 100644
index 0000000..5510662
--- /dev/null
+++ b/sci-libs/coinor-smi/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+<longdescription lang="en">
+  The COIN-OR Stochastic Modeling Interface (SMI) is an interface for
+  problems in which uncertainty and optimization appear
+  together. There are many modeling and algorithmic approaches that
+  could belong here, like: recourse programming, chance constrained
+  programming, stochastic control and dynamic programming, robust
+  optimization, etc, etc. SMI is intended to be like OSI in the sense
+  that an SmiXX object is an implementation derived from a base class
+  that takes care of a number of commonly encountered programming
+  issues, like handling probability distributions, managing problem
+  generation, interacting with solvers to obtain solution information,
+  etc.
+</longdescription>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-12-08  5:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-08  5:00 [gentoo-commits] proj/sci:master commit in: sci-libs/coinor-smi/ Sebastien Fabbro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox