Gentoo Archives: gentoo-commits

From: Sebastien Fabbro <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/coinor-smi/
Date: Sun, 08 Dec 2013 05:01:06
Message-Id: 1386434874.cb824cb1c093c0ce1a71b13e71da9221d41525db.bicatali@gentoo
1 commit: cb824cb1c093c0ce1a71b13e71da9221d41525db
2 Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 7 16:47:54 2013 +0000
4 Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 7 16:47:54 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=cb824cb1
7
8 sci-libs/coinor-smi: Initial import
9
10 Package-Manager: portage-2.2.7-prefix
11
12 ---
13 sci-libs/coinor-smi/ChangeLog | 9 ++++
14 sci-libs/coinor-smi/coinor-smi-0.93.3.ebuild | 69 ++++++++++++++++++++++++++++
15 sci-libs/coinor-smi/metadata.xml | 18 ++++++++
16 3 files changed, 96 insertions(+)
17
18 diff --git a/sci-libs/coinor-smi/ChangeLog b/sci-libs/coinor-smi/ChangeLog
19 new file mode 100644
20 index 0000000..7584df1
21 --- /dev/null
22 +++ b/sci-libs/coinor-smi/ChangeLog
23 @@ -0,0 +1,9 @@
24 +# ChangeLog for sci-libs/coinor-smi
25 +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
26 +# $Header: $
27 +
28 +*coinor-smi-0.93.3 (07 Dec 2013)
29 +
30 + 07 Dec 2013; Sébastien Fabbro <bicatali@g.o> +coinor-smi-0.93.3.ebuild,
31 + +metadata.xml:
32 + sci-libs/coinor-smi: Initial import
33
34 diff --git a/sci-libs/coinor-smi/coinor-smi-0.93.3.ebuild b/sci-libs/coinor-smi/coinor-smi-0.93.3.ebuild
35 new file mode 100644
36 index 0000000..e881ff8
37 --- /dev/null
38 +++ b/sci-libs/coinor-smi/coinor-smi-0.93.3.ebuild
39 @@ -0,0 +1,69 @@
40 +# Copyright 1999-2013 Gentoo Foundation
41 +# Distributed under the terms of the GNU General Public License v2
42 +# $Header: $
43 +
44 +EAPI=5
45 +
46 +AUTOTOOLS_IN_SOURCE_BUILD=yes
47 +inherit autotools-utils multilib
48 +
49 +MYPN=Smi
50 +
51 +DESCRIPTION="COIN-OR Stochastic modelling interface"
52 +HOMEPAGE="https://projects.coin-or.org/Smi/"
53 +SRC_URI="http://www.coin-or.org/download/source/${MYPN}/${MYPN}-${PV}.tgz"
54 +
55 +LICENSE="CPL-1.0"
56 +SLOT="0/2"
57 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
58 +IUSE="doc examples static-libs test"
59 +
60 +RDEPEND="
61 + sci-libs/coinor-cbc
62 + sci-libs/coinor-cgl
63 + sci-libs/coinor-clp
64 + sci-libs/coinor-flopcpp
65 + sci-libs/coinor-osi
66 + sci-libs/coinor-utils"
67 +DEPEND="${RDEPEND}
68 + virtual/pkgconfig
69 + doc? ( app-doc/doxygen[dot] )
70 + test? ( sci-libs/coinor-sample )"
71 +
72 +S="${WORKDIR}/${MYPN}-${PV}/${MYPN}"
73 +
74 +src_prepare() {
75 + # as-needed fix
76 + # hack to avoid eautoreconf (coinor has its own weird autotools
77 + sed -i \
78 + -e 's:\(libSmi_la_LIBADD.*=\).*:\1 @SMI_LIBS@:g' \
79 + src/Makefile.in || die
80 +}
81 +
82 +src_configure() {
83 + PKG_CONFIG_PATH+="${ED}"/usr/$(get_libdir)/pkgconfig \
84 + autotools-utils_src_configure
85 +}
86 +
87 +src_compile() {
88 + autotools-utils_src_compile
89 + if use doc; then
90 + cd "${WORKDIR}/${MYPN}-${PV}/doxydoc" || die
91 + doxygen doxygen.conf || die
92 + fi
93 +}
94 +
95 +src_test() {
96 + pushd "${AUTOTOOLS_BUILD_DIR}" > /dev/null || die
97 + emake test
98 + popd > /dev/null || die
99 +}
100 +
101 +src_install() {
102 + use doc && HTML_DOC=("${WORKDIR}/${MYPN}-${PV}/doxydoc/html/")
103 + autotools-utils_src_install
104 + if use examples; then
105 + insinto /usr/share/doc/${PF}/examples
106 + doins -r Examples/*
107 + fi
108 +}
109
110 diff --git a/sci-libs/coinor-smi/metadata.xml b/sci-libs/coinor-smi/metadata.xml
111 new file mode 100644
112 index 0000000..5510662
113 --- /dev/null
114 +++ b/sci-libs/coinor-smi/metadata.xml
115 @@ -0,0 +1,18 @@
116 +<?xml version="1.0" encoding="UTF-8"?>
117 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
118 +<pkgmetadata>
119 +<herd>sci</herd>
120 +<longdescription lang="en">
121 + The COIN-OR Stochastic Modeling Interface (SMI) is an interface for
122 + problems in which uncertainty and optimization appear
123 + together. There are many modeling and algorithmic approaches that
124 + could belong here, like: recourse programming, chance constrained
125 + programming, stochastic control and dynamic programming, robust
126 + optimization, etc, etc. SMI is intended to be like OSI in the sense
127 + that an SmiXX object is an implementation derived from a base class
128 + that takes care of a number of commonly encountered programming
129 + issues, like handling probability distributions, managing problem
130 + generation, interacting with solvers to obtain solution information,
131 + etc.
132 +</longdescription>
133 +</pkgmetadata>