1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools-utils multilib
10 DESCRIPTION="COIN-OR algebraic modeling language for linear optimization"
11 HOMEPAGE="https://projects.coin-or.org/FlopC++/"
12 SRC_URI="http://www.coin-or.org/download/source/${MYPN}/${MYPN}-${PV}.tgz"
16 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
17 IUSE="doc examples static-libs"
22 sci-libs/coinor-osi:="
25 doc? ( app-doc/doxygen[dot] )"
27 S="${WORKDIR}/${MYPN}-${PV}/FlopCpp"
30 # needed for the --with-coin-instdir
33 -e "s:lib/pkgconfig:$(get_libdir)/pkgconfig:g" \
35 autotools-utils_src_prepare
40 --enable-dependency-linking
41 --with-coin-instdir="${ED}"/usr
44 autotools-utils_src_configure
48 autotools-utils_src_compile
50 cd "${WORKDIR}/${MYPN}-${PV}/doxydoc" || die
51 doxygen doxygen.conf || die
56 autotools-utils_src_test test
60 use doc && HTML_DOC=("${WORKDIR}/${MYPN}-${PV}/doxydoc/html/")
61 autotools-utils_src_install
63 insinto /usr/share/doc/${PF}