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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.2 Revision 1.3
1# Copyright 1999-2014 Gentoo Foundation 1# Copyright 1999-2014 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
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 $ 3# $Header: /var/cvsroot/gentoo-x86/sci-libs/coinor-couenne/coinor-couenne-0.4.7.ebuild,v 1.3 2014/02/04 10:03:52 jlec Exp $
4 4
5EAPI=5 5EAPI=5
6 6
7inherit autotools-utils multilib 7inherit autotools-utils multilib
8 8
22 virtual/pkgconfig" 22 virtual/pkgconfig"
23 23
24S="${WORKDIR}/${MYPN}-${PV}/${MYPN}" 24S="${WORKDIR}/${MYPN}-${PV}/${MYPN}"
25 25
26src_prepare() { 26src_prepare() {
27 # needed for the --with-coin-instdir
28 dodir /usr
27 sed -i \ 29 sed -i \
28 -e "s:lib/pkgconfig:$(get_libdir)/pkgconfig:g" \ 30 -e "s:lib/pkgconfig:$(get_libdir)/pkgconfig:g" \
29 configure || die 31 configure || die
30 autotools-utils_src_prepare 32 autotools-utils_src_prepare
31} 33}
34
32src_configure() { 35src_configure() {
33 # needed for the --with-coin-instdir
34 dodir /usr
35 local myeconfargs=( 36 local myeconfargs=(
36 --enable-dependency-linking 37 --enable-dependency-linking
37 --with-coin-instdir="${ED}"/usr 38 --with-coin-instdir="${ED}"/usr
38 ) 39 )
39 autotools-utils_src_configure 40 autotools-utils_src_configure
43 autotools-utils_src_compile 44 autotools-utils_src_compile
44 # resolve as-needed 45 # resolve as-needed
45 # circular dependencies between libCouenne and libBonCouenne :( 46 # circular dependencies between libCouenne and libBonCouenne :(
46 pushd "${BUILD_DIR}"/src > /dev/null 47 pushd "${BUILD_DIR}"/src > /dev/null
47 rm libCouenne.la main/libBonCouenne.la || die 48 rm libCouenne.la main/libBonCouenne.la || die
48 emake LIBS+="-Lmain/.libs -lBonCouenne" libCouenne.la 49 emake LIBS+=" -Lmain/.libs -lBonCouenne" libCouenne.la
49 emake -C main 50 emake -C main
50 popd > /dev/null 51 popd > /dev/null
51} 52}
52 53
53src_install() { 54src_install() {

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20