/[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.1 - (show annotations) (download)
Tue Jan 14 22:02:05 2014 UTC (6 years, 6 months ago) by bicatali
Branch: MAIN
Initial import in main tree

(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=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 # as-needed fix
28 # hack to avoid eautoreconf (coinor has its own weird autotools)
29 sed -i \
30 -e 's:\(libCoinMP_la_LIBADD.*=.*\)$:\1 @COINMP_LIBS@:' \
31 src/Makefile.in || die
32 sed -i \
33 -e '/addlibsdir/s/$(DESTDIR)//' \
34 Makefile.in || die
35 }
36
37 src_configure() {
38 PKG_CONFIG_PATH+="${ED}"/usr/$(get_libdir)/pkgconfig \
39 autotools-utils_src_configure
40 }
41
42 src_test() {
43 pushd "${BUILD_DIR}" > /dev/null || die
44 emake test
45 popd > /dev/null || die
46 }
47
48 src_install() {
49 autotools-utils_src_install
50 # already installed
51 rm "${ED}"/usr/share/coin/doc/${MYPN}/{README,AUTHORS,LICENSE} || die
52 if use examples; then
53 insinto /usr/share/doc/${PF}
54 doins -r examples
55 fi
56 }

  ViewVC Help
Powered by ViewVC 1.1.20