/[gentoo-x86]/sci-libs/coinor-cgl/coinor-cgl-0.58.5.ebuild
Gentoo

Contents of /sci-libs/coinor-cgl/coinor-cgl-0.58.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Tue Feb 4 09:59:40 2014 UTC (6 years, 9 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Move preparations to src_prepare

(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-cgl/coinor-cgl-0.58.5.ebuild,v 1.3 2014/02/04 08:18:32 jlec Exp $
4
5 EAPI=5
6
7 inherit autotools-utils multilib
8
9 MYPN=Cgl
10
11 DESCRIPTION="COIN-OR cutting-plane generators library"
12 HOMEPAGE="https://projects.coin-or.org/Cgl/"
13 SRC_URI="http://www.coin-or.org/download/source/${MYPN}/${MYPN}-${PV}.tgz"
14
15 LICENSE="EPL-1.0"
16 SLOT="0"
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-dylp:=
23 sci-libs/coinor-osi:=
24 sci-libs/coinor-utils:=
25 sci-libs/coinor-vol:="
26 DEPEND="${RDEPEND}
27 virtual/pkgconfig
28 doc? ( app-doc/doxygen[dot] )
29 test? ( sci-libs/coinor-sample )"
30
31 S="${WORKDIR}/${MYPN}-${PV}/${MYPN}"
32
33 src_prepare() {
34 sed -i \
35 -e "s:lib/pkgconfig:$(get_libdir)/pkgconfig:g" \
36 configure || die
37 autotools-utils_src_prepare
38 }
39 src_configure() {
40 # needed for the --with-coin-instdir
41 dodir /usr
42 local myeconfargs=(
43 --enable-dependency-linking
44 --with-coin-instdir="${ED}"/usr
45 $(use_with doc dot)
46 )
47 autotools-utils_src_configure
48 }
49
50 src_compile() {
51 autotools-utils_src_compile all $(use doc && echo doxydoc)
52 }
53
54 src_test() {
55 autotools-utils_src_test test
56 }
57
58 src_install() {
59 use doc && HTML_DOC=("${BUILD_DIR}/doxydocs/html/")
60 autotools-utils_src_install
61 # already installed
62 rm "${ED}"/usr/share/coin/doc/${MYPN}/{README,AUTHORS,LICENSE} || die
63 if use examples; then
64 insinto /usr/share/doc/${PF}
65 doins -r examples
66 fi
67 }

  ViewVC Help
Powered by ViewVC 1.1.20