/[gentoo-x86]/sci-libs/coinor-couenne/coinor-couenne-0.4.7.ebuild
Gentoo

Contents of /sci-libs/coinor-couenne/coinor-couenne-0.4.7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Jan 15 19:40:37 2014 UTC (6 years, 8 months ago) by bicatali
Branch: MAIN
Import from science overlay, version bump, removed as-needed (applied upstream)

(Portage version: 2.2.8-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI=5
6
7 inherit autotools-utils multilib
8
9 MYPN=Couenne
10
11 DESCRIPTION="COIN-OR Convex Over and Under ENvelopes for Nonlinear Estimation"
12 HOMEPAGE="https://projects.coin-or.org/Couenne/"
13 SRC_URI="http://www.coin-or.org/download/source/${MYPN}/${MYPN}-${PV}.tgz"
14
15 LICENSE="EPL-1.0"
16 SLOT="0/1"
17 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
18 IUSE="doc static-libs test"
19
20 RDEPEND="sci-libs/coinor-bonmin:="
21 DEPEND="${RDEPEND}
22 virtual/pkgconfig"
23
24 S="${WORKDIR}/${MYPN}-${PV}/${MYPN}"
25
26 src_configure() {
27 local myeconfargs=(
28 --enable-dependency-linking
29 )
30 autotools-utils_src_configure
31 }
32
33 src_compile() {
34 autotools-utils_src_compile
35 # resolve as-needed
36 # circular dependencies between libCouenne and libBonCouenne :(
37 pushd "${BUILD_DIR}"/src > /dev/null
38 rm libCouenne.la main/libBonCouenne.la || die
39 emake LIBS+="-Lmain/.libs -lBonCouenne" libCouenne.la
40 emake -C main
41 popd > /dev/null
42 }
43
44 src_install() {
45 autotools-utils_src_install
46 use doc && dodoc doc/couenne-user-manual.pdf
47 # already installed
48 rm "${ED}"/usr/share/coin/doc/${MYPN}/{README,AUTHORS,LICENSE} || die
49 }

  ViewVC Help
Powered by ViewVC 1.1.20