parmetis-3.2.0.ebuild 867 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils autotools
  5. MYP=ParMetis-${PV}
  6. DESCRIPTION="Parallel graph partitioner"
  7. HOMEPAGE="http://www-users.cs.umn.edu/~karypis/metis/parmetis/"
  8. SRC_URI="http://glaros.dtc.umn.edu/gkhome/fetch/sw/${PN}/OLD/${MYP}.tar.gz"
  9. SLOT="0"
  10. LICENSE="free-noncomm"
  11. KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
  12. IUSE="doc static-libs"
  13. DEPEND="virtual/mpi"
  14. RDEPEND="${DEPEND}
  15. !sci-libs/metis"
  16. S="${WORKDIR}/${MYP}"
  17. src_prepare() {
  18. epatch "${FILESDIR}"/${PN}-3.1.1-autotools.patch
  19. sed -i -e "s/3.1.1/${PV}/" configure.ac || die
  20. sed -i -e 's/order.c//' -e 's/lmatch.c//' ParMETISLib/Makefile.am || die
  21. eautoreconf
  22. export CC=mpicc
  23. }
  24. src_configure() {
  25. econf $(use_enable static-libs static)
  26. }
  27. src_install() {
  28. default
  29. use doc && dodoc Manual/*.pdf
  30. }