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-flopcpp/
Date: Sun, 26 May 2013 18:34:46
Message-Id: 1369593110.9f648dc97a4908f61e7f4bfcf3fc72d315a1b4bf.bicatali@gentoo
1 commit: 9f648dc97a4908f61e7f4bfcf3fc72d315a1b4bf
2 Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 26 18:31:50 2013 +0000
4 Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
5 CommitDate: Sun May 26 18:31:50 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=9f648dc9
7
8 sci-libs/coinor-flopcpp: Initial import
9
10 Package-Manager: portage-2.2.01.21938-prefix
11 RepoMan-Options: --force
12
13 ---
14 sci-libs/coinor-flopcpp/ChangeLog | 9 +++
15 .../coinor-flopcpp/coinor-flopcpp-1.1.2.ebuild | 67 ++++++++++++++++++++
16 sci-libs/coinor-flopcpp/metadata.xml | 14 ++++
17 3 files changed, 90 insertions(+), 0 deletions(-)
18
19 diff --git a/sci-libs/coinor-flopcpp/ChangeLog b/sci-libs/coinor-flopcpp/ChangeLog
20 new file mode 100644
21 index 0000000..912a4b5
22 --- /dev/null
23 +++ b/sci-libs/coinor-flopcpp/ChangeLog
24 @@ -0,0 +1,9 @@
25 +# ChangeLog for sci-libs/coinor-flopcpp
26 +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
27 +# $Header: $
28 +
29 +*coinor-flopcpp-1.1.2 (26 May 2013)
30 +
31 + 26 May 2013; Sébastien Fabbro <bicatali@g.o>
32 + +coinor-flopcpp-1.1.2.ebuild, +metadata.xml:
33 + sci-libs/coinor-flopcpp: Initial import
34
35 diff --git a/sci-libs/coinor-flopcpp/coinor-flopcpp-1.1.2.ebuild b/sci-libs/coinor-flopcpp/coinor-flopcpp-1.1.2.ebuild
36 new file mode 100644
37 index 0000000..b388816
38 --- /dev/null
39 +++ b/sci-libs/coinor-flopcpp/coinor-flopcpp-1.1.2.ebuild
40 @@ -0,0 +1,67 @@
41 +# Copyright 1999-2013 Gentoo Foundation
42 +# Distributed under the terms of the GNU General Public License v2
43 +# $Header: $
44 +
45 +EAPI=5
46 +
47 +inherit autotools-utils multilib
48 +
49 +MYPN=FlopC++
50 +
51 +DESCRIPTION="COIN-OR algebraic modelling language for linear optimization"
52 +HOMEPAGE="https://projects.coin-or.org/FlopC++/"
53 +SRC_URI="http://www.coin-or.org/download/source/${MYPN}/${MYPN}-${PV}.tgz"
54 +
55 +LICENSE="EPL-1.0"
56 +SLOT="0"
57 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
58 +IUSE="doc examples static-libs"
59 +
60 +RDEPEND="
61 + sci-libs/coinor-cgl
62 + sci-libs/coinor-clp
63 + sci-libs/coinor-osi"
64 +DEPEND="${RDEPEND}
65 + virtual/pkgconfig
66 + doc? ( app-doc/doxygen[dot] )"
67 +
68 +S="${WORKDIR}/${MYPN}-${PV}/FlopCpp"
69 +
70 +src_prepare() {
71 + # as-needed fix
72 + # hack to avoid eautoreconf (coinor has its own weird autotools)
73 + sed -i \
74 + -e 's:\(libFlopCpp_la_LIBADD.*=.*\)$:\1 @FLOPCPP_LIBS@:' \
75 + src/Makefile.in || die
76 +}
77 +
78 +src_configure() {
79 + local myeconfargs=(
80 + $(use_with doc dot)
81 + )
82 + PKG_CONFIG_PATH+="${ED}"/usr/$(get_libdir)/pkgconfig \
83 + autotools-utils_src_configure
84 +}
85 +
86 +src_compile() {
87 + autotools-utils_src_compile
88 + if use doc; then
89 + cd "${WORKDIR}/${MYPN}-${PV}/doxydoc" || die
90 + doxygen doxygen.conf || die
91 + fi
92 +}
93 +
94 +src_test() {
95 + pushd "${AUTOTOOLS_BUILD_DIR}" > /dev/null || die
96 + emake test
97 + popd > /dev/null || die
98 +}
99 +
100 +src_install() {
101 + use doc && HTML_DOC=("${WORKDIR}/${MYPN}-${PV}/doxydoc/html/")
102 + autotools-utils_src_install
103 + if use examples; then
104 + insinto /usr/share/doc/${PF}
105 + doins -r examples
106 + fi
107 +}
108
109 diff --git a/sci-libs/coinor-flopcpp/metadata.xml b/sci-libs/coinor-flopcpp/metadata.xml
110 new file mode 100644
111 index 0000000..fd88f40
112 --- /dev/null
113 +++ b/sci-libs/coinor-flopcpp/metadata.xml
114 @@ -0,0 +1,14 @@
115 +<?xml version="1.0" encoding="UTF-8"?>
116 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
117 +<pkgmetadata>
118 +<herd>sci</herd>
119 +<longdescription lang="en">
120 + The COIN-OR Formulation of Linear Optimization Problems in C++
121 + (FLOPC++) is a linear optimization modelling language that can be
122 + specified in a declarative style, similar to algebraic modelling
123 + languages such as GAMS and AMPL, within a C++ program. As a result
124 + the traditional strengths of algebraic modelling languages are
125 + preserved, while embedding linear optimization models in software
126 + applications is facilitated.
127 +</longdescription>
128 +</pkgmetadata>