diff options
Diffstat (limited to 'sci-libs/scotch/scotch-5.1.6.ebuild')
-rw-r--r-- | sci-libs/scotch/scotch-5.1.6.ebuild | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/sci-libs/scotch/scotch-5.1.6.ebuild b/sci-libs/scotch/scotch-5.1.6.ebuild new file mode 100644 index 000000000000..427ef0725564 --- /dev/null +++ b/sci-libs/scotch/scotch-5.1.6.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/scotch/scotch-5.1.6.ebuild,v 1.1 2009/09/03 16:58:50 patrick Exp $ + +EAPI="2" + +inherit eutils + +DESCRIPTION="Software package and libraries for graph partitioning, static mapping, and sparse matrix block ordering" +HOMEPAGE="http://www.labri.u-bordeaux.fr/perso/pelegrin/scotch/" +SRC_URI="http://gforge.inria.fr/frs/download.php/5218/${PN}_${PV}.tgz" + +LICENSE="CeCILL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="mpi" + +DEPEND="sys-devel/bison + mpi? ( virtual/mpi )" +RDEPEND="${DEPEND}" + +S=${WORKDIR}"/scotch_5.0/src" + +src_prepare() { + epatch "${FILESDIR}"/mmkt-typo.patch + epatch "${FILESDIR}"/shared-libs.patch + epatch "${FILESDIR}"/metis-header.patch +} + +src_configure() { + cp "${FILESDIR}"/Makefile.inc ./ +} + +src_compile() { + emake -j1 || die "make failed" + use mpi && (emake -j1 ptscotch || die "make failed") +} + +src_install() { + dodir "/usr" + emake prefix="${D}/usr" install + + use mpi && dobin "${S}"/../bin/{dgord,dgscat,dgtst} + + dolib.so "${S}"/{libscotch,libscotchmetis}/*.so + if [ "$(get_libdir)" != "lib" ]; then + mv "${D}"/usr/lib/* "${D}"/usr/$(get_libdir) + rm -rf "${D}"/usr/lib + fi + + insinto /usr/include/scotch + doins "${S}"/libscotch/*.h + + insinto /usr/include/scotchmetis + doins "${S}"/libscotchmetis/*.h + + mv "${D}"/usr/include/*scotch*.h "${D}"/usr/include/scotch/ + + insinto "/usr/share/${PN}/tgt" + doins "${S}"/../tgt/* + insinto "/usr/share/${PN}/grf" + doins "${S}"/../grf/* + + cd "${S}/../doc" + dodoc * +} |