coinor-cgl-0.58.6.ebuild 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit autotools-utils multilib
  5. MYPN=Cgl
  6. DESCRIPTION="COIN-OR cutting-plane generators library"
  7. HOMEPAGE="https://projects.coin-or.org/Cgl/"
  8. SRC_URI="http://www.coin-or.org/download/source/${MYPN}/${MYPN}-${PV}.tgz"
  9. LICENSE="EPL-1.0"
  10. SLOT="0"
  11. KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
  12. IUSE="doc examples static-libs test"
  13. RDEPEND="
  14. sci-libs/coinor-clp:=
  15. sci-libs/coinor-dylp:=
  16. sci-libs/coinor-osi:=
  17. sci-libs/coinor-utils:=
  18. sci-libs/coinor-vol:="
  19. DEPEND="${RDEPEND}
  20. virtual/pkgconfig
  21. doc? ( app-doc/doxygen[dot] )
  22. test? ( sci-libs/coinor-sample )"
  23. S="${WORKDIR}/${MYPN}-${PV}/${MYPN}"
  24. src_prepare() {
  25. # needed for the --with-coin-instdir
  26. dodir /usr
  27. sed -i \
  28. -e "s:lib/pkgconfig:$(get_libdir)/pkgconfig:g" \
  29. configure || die
  30. autotools-utils_src_prepare
  31. }
  32. src_configure() {
  33. local myeconfargs=(
  34. --enable-dependency-linking
  35. --with-coin-instdir="${ED}"/usr
  36. $(use_with doc dot)
  37. )
  38. autotools-utils_src_configure
  39. }
  40. src_compile() {
  41. autotools-utils_src_compile all $(usex doc doxydoc "")
  42. }
  43. src_test() {
  44. autotools-utils_src_test test
  45. }
  46. src_install() {
  47. use doc && HTML_DOC=("${BUILD_DIR}/doxydocs/html/")
  48. autotools-utils_src_install
  49. # already installed
  50. rm "${ED}"/usr/share/coin/doc/${MYPN}/{README,AUTHORS,LICENSE} || die
  51. if use examples; then
  52. insinto /usr/share/doc/${PF}
  53. doins -r examples
  54. fi
  55. }