galib-2.4.6.ebuild 807 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Copyright 1999-2012 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. inherit eutils
  4. MYPV="${PV//\./}"
  5. DESCRIPTION="Library for genetic algorithms in C++ programs"
  6. HOMEPAGE="http://lancet.mit.edu/ga/"
  7. SRC_URI="http://lancet.mit.edu/ga/dist/galib${MYPV}.tgz"
  8. LICENSE="BSD GPL-2"
  9. SLOT="0"
  10. KEYWORDS="~amd64 x86"
  11. IUSE=""
  12. S="${WORKDIR}/galib${MYPV}"
  13. src_unpack() {
  14. unpack ${A}
  15. cd "${S}"
  16. epatch \
  17. "${FILESDIR}"/${P}-makefile.patch \
  18. "${FILESDIR}"/${P}-gcc4-gentoo.patch
  19. }
  20. src_compile() {
  21. emake CXXFLAGS="${CXXFLAGS}" || die "make failed"
  22. }
  23. src_install() {
  24. dodir /usr/lib /usr/include
  25. emake LIB_DEST_DIR="${D}"/usr/lib/ HDR_DEST_DIR="${D}"/usr/include/ install || die
  26. dohtml -r doc/*
  27. dodoc RELEASE-NOTES README
  28. cp -r examples "${D}"/usr/share/doc/${PF}/
  29. }