/[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.3 - (hide annotations) (download)
Tue Feb 4 10:03:52 2014 UTC (6 years, 7 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +5 -4 lines
Move preparations to src_prepare; use usex()

(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)

1 bicatali 1.1 # Copyright 1999-2014 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 jlec 1.3 # $Header: /var/cvsroot/gentoo-x86/sci-libs/coinor-couenne/coinor-couenne-0.4.7.ebuild,v 1.2 2014/02/04 08:46:43 jlec Exp $
4 bicatali 1.1
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 jlec 1.2 src_prepare() {
27 jlec 1.3 # needed for the --with-coin-instdir
28     dodir /usr
29 jlec 1.2 sed -i \
30     -e "s:lib/pkgconfig:$(get_libdir)/pkgconfig:g" \
31     configure || die
32     autotools-utils_src_prepare
33     }
34 jlec 1.3
35 bicatali 1.1 src_configure() {
36     local myeconfargs=(
37     --enable-dependency-linking
38 jlec 1.2 --with-coin-instdir="${ED}"/usr
39 bicatali 1.1 )
40     autotools-utils_src_configure
41     }
42    
43     src_compile() {
44     autotools-utils_src_compile
45     # resolve as-needed
46     # circular dependencies between libCouenne and libBonCouenne :(
47     pushd "${BUILD_DIR}"/src > /dev/null
48     rm libCouenne.la main/libBonCouenne.la || die
49 jlec 1.3 emake LIBS+=" -Lmain/.libs -lBonCouenne" libCouenne.la
50 bicatali 1.1 emake -C main
51     popd > /dev/null
52     }
53    
54     src_install() {
55     autotools-utils_src_install
56     use doc && dodoc doc/couenne-user-manual.pdf
57     # already installed
58     rm "${ED}"/usr/share/coin/doc/${MYPN}/{README,AUTHORS,LICENSE} || die
59     }

  ViewVC Help
Powered by ViewVC 1.1.20