/[gentoo-x86]/sci-libs/coinor-mp/coinor-mp-1.7.6.ebuild
Gentoo

Contents of /sci-libs/coinor-mp/coinor-mp-1.7.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (hide annotations) (download)
Tue Feb 4 10:37:56 2014 UTC (6 years, 6 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +3 -3 lines
Move preparations to src_prepare

(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.6 # $Header: /var/cvsroot/gentoo-x86/sci-libs/coinor-mp/coinor-mp-1.7.6.ebuild,v 1.5 2014/02/04 09:22:13 jlec Exp $
4 bicatali 1.1
5     EAPI=5
6    
7     inherit autotools-utils multilib
8    
9     MYPN=CoinMP
10    
11     DESCRIPTION="COIN-OR lightweight API for COIN-OR libraries CLP, CBC, and CGL"
12     HOMEPAGE="https://projects.coin-or.org/CoinMP/"
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="examples static-libs"
19    
20     RDEPEND="sci-libs/coinor-cbc:="
21     DEPEND="${RDEPEND}
22     virtual/pkgconfig"
23    
24     S="${WORKDIR}/${MYPN}-${PV}/${MYPN}"
25    
26     src_prepare() {
27 jlec 1.6 # needed for the --with-coin-instdir
28     dodir /usr
29 bicatali 1.1 sed -i \
30 jlec 1.3 -e "s:lib/pkgconfig:$(get_libdir)/pkgconfig:g" \
31     configure || die
32 jlec 1.5 sed -i \
33     -e '/^addlibsdir/s/$(DESTDIR)//' \
34     -e 's/$(addlibsdir)/$(DESTDIR)\/$(addlibsdir)/g' \
35     -e 's/$(DESTDIR)$(DESTDIR)/$(DESTDIR)/g' \
36     Makefile.in || die
37 jlec 1.3 autotools-utils_src_prepare
38 bicatali 1.1 }
39    
40     src_configure() {
41 bicatali 1.2 local myeconfargs=(
42     --enable-dependency-linking
43 jlec 1.3 --with-coin-instdir="${ED}"/usr
44 jlec 1.5 --datadir=/usr/share
45 bicatali 1.2 )
46     autotools-utils_src_configure
47 bicatali 1.1 }
48    
49     src_test() {
50 bicatali 1.2 autotools-utils_src_test test
51 bicatali 1.1 }
52    
53     src_install() {
54     autotools-utils_src_install
55     # already installed
56     rm "${ED}"/usr/share/coin/doc/${MYPN}/{README,AUTHORS,LICENSE} || die
57     if use examples; then
58     insinto /usr/share/doc/${PF}
59     doins -r examples
60     fi
61     }

  ViewVC Help
Powered by ViewVC 1.1.20