beagle-3.0.3-r1.ebuild 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. DESCRIPTION="Open BEAGLE, a versatile EC/GA/GP framework"
  5. SRC_URI="mirror://sourceforge/beagle/${P}.tar.gz"
  6. HOMEPAGE="http://beagle.gel.ulaval.ca/"
  7. SLOT="0"
  8. LICENSE="LGPL-2.1"
  9. KEYWORDS="~amd64 ~x86"
  10. IUSE="doc examples static-libs"
  11. RDEPEND="
  12. sys-libs/zlib
  13. !app-misc/beagle
  14. !dev-libs/libbeagle"
  15. DEPEND="${RDEPEND}
  16. doc? ( app-doc/doxygen )"
  17. PATCHES=(
  18. "${FILESDIR}/${PN}-3.0.3-gcc43.patch"
  19. "${FILESDIR}/${PN}-3.0.3-gcc47.patch"
  20. "${FILESDIR}/${PN}-3.0.3-fix-c++14.patch"
  21. )
  22. src_prepare() {
  23. default
  24. sed -e "s:@LIBS@:@LIBS@ -lpthread:" \
  25. -i PACC/Threading/Makefile.in || die
  26. }
  27. src_configure() {
  28. econf \
  29. --enable-optimization \
  30. $(use_enable static-libs static)
  31. }
  32. src_compile() {
  33. default
  34. use doc && emake doc
  35. }
  36. src_install () {
  37. use doc && local HTML_DOCS=( refman/. )
  38. if use examples; then
  39. dodoc -r examples
  40. docompress -x /usr/share/doc/${PF}/examples
  41. fi
  42. default
  43. if ! use static-libs; then
  44. find "${D}" -name '*.la' -delete || die
  45. fi
  46. }