/[gentoo-x86]/sci-libs/coinor-cbc/coinor-cbc-2.8.9.ebuild
Gentoo

Contents of /sci-libs/coinor-cbc/coinor-cbc-2.8.9.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Feb 4 10:32:12 2014 UTC (6 years, 1 month ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
Fix typo

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

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-libs/coinor-cbc/coinor-cbc-2.8.9.ebuild,v 1.2 2014/02/04 09:57:27 jlec Exp $
4
5 EAPI=5
6
7 inherit autotools-utils multilib flag-o-matic
8
9 MYPN=Cbc
10
11 DESCRIPTION="COIN-OR Branch-and-Cut Mixed Integer Programming Solver"
12 HOMEPAGE="https://projects.coin-or.org/Cbc/"
13 SRC_URI="http://www.coin-or.org/download/source/${MYPN}/${MYPN}-${PV}.tgz"
14
15 LICENSE="EPL-1.0"
16 SLOT="0/3"
17 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
18 IUSE="doc examples static-libs test"
19
20 RDEPEND="
21 sci-libs/coinor-clp:=
22 sci-libs/coinor-cgl:=
23 sci-libs/coinor-dylp:=
24 sci-libs/coinor-osi:=
25 sci-libs/coinor-utils:=
26 sci-libs/coinor-vol:="
27 DEPEND="${RDEPEND}
28 virtual/pkgconfig
29 doc? ( app-doc/doxygen[dot] )
30 test? ( sci-libs/coinor-sample )"
31
32 S="${WORKDIR}/${MYPN}-${PV}/${MYPN}"
33
34 src_prepare() {
35 # needed for the --with-coin-instdir
36 dodir /usr
37 sed -i \
38 -e "s:lib/pkgconfig:$(get_libdir)/pkgconfig:g" \
39 configure || die
40 autotools-utils_src_prepare
41 }
42
43 src_configure() {
44 local myeconfargs=(
45 --enable-dependency-linking
46 --with-coin-instdir="${ED}"/usr
47 $(use_with doc dot)
48 )
49 autotools-utils_src_configure
50 }
51
52 src_compile() {
53 # hack for parallel build, to overcome not patching Makefile.am above
54 autotools-utils_src_compile -C src libCbc.la
55 autotools-utils_src_compile -C src libCbcSolver.la
56 autotools-utils_src_compile all $(usex doc doxydoc "")
57 }
58
59 src_test() {
60 autotools-utils_src_test test
61 }
62
63 src_install() {
64 use doc && HTML_DOC=("${BUILD_DIR}/doxydocs/html/")
65 # hack for parallel install, to overcome not patching Makefile.am above
66 autotools-utils_src_install -C src install-am
67 autotools-utils_src_install
68 # already installed
69 rm "${ED}"/usr/share/coin/doc/${MYPN}/{README,AUTHORS,LICENSE} || die
70 if use examples; then
71 insinto /usr/share/doc/${PF}
72 doins -r examples
73 fi
74 }

  ViewVC Help
Powered by ViewVC 1.1.20