1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit autotools-utils multilib
11 DESCRIPTION="COIN-OR using the dynamic simplex linear programming solver"
12 HOMEPAGE="https://projects.coin-or.org/DyLP/"
13 SRC_URI="http://www.coin-or.org/download/source/${MYPN}/${MYPN}-${PV}.tgz"
17 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
18 IUSE="doc examples static-libs test"
20 RDEPEND="sci-libs/coinor-osi:="
23 doc? ( app-doc/doxygen[dot] )
24 test? ( sci-libs/coinor-sample )"
26 S="${WORKDIR}/${MYPN}-${PV}/${MYPN}"
29 # needed for the --with-coin-instdir
32 -e "s:lib/pkgconfig:$(get_libdir)/pkgconfig:g" \
34 autotools-utils_src_prepare
39 --enable-dependency-linking
40 --with-coin-instdir="${ED}"/usr
43 autotools-utils_src_configure
47 autotools-utils_src_compile all $(usex doc doxydoc "")
51 autotools-utils_src_test test
55 use doc && HTML_DOC=("${BUILD_DIR}/doxydocs/html/")
56 autotools-utils_src_install
58 rm "${ED}"/usr/share/coin/doc/${MYPN}/{README,AUTHORS,LICENSE} || die
60 insinto /usr/share/doc/${PF}