diff options
author | Michał Górny <mgorny@gentoo.org> | 2016-10-21 20:53:59 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2016-10-21 20:58:15 +0200 |
commit | 15221a5c5639027b2bc5eef34f55ecff1abebe1a (patch) | |
tree | 0773e551726fc0f3c8c704442563dfae544ef58c /dev-lang | |
parent | dev-lang/ekopath: Snapshot bump (diff) | |
download | gentoo-15221a5c5639027b2bc5eef34f55ecff1abebe1a.tar.gz gentoo-15221a5c5639027b2bc5eef34f55ecff1abebe1a.tar.bz2 gentoo-15221a5c5639027b2bc5eef34f55ecff1abebe1a.zip |
dev-lang/ekopath: Make MPI libs optional
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/ekopath/ekopath-6.0.967_p20161020-r1.ebuild | 13 | ||||
-rw-r--r-- | dev-lang/ekopath/ekopath-6.0.967_p20161020-r100.ebuild | 13 | ||||
-rw-r--r-- | dev-lang/ekopath/metadata.xml | 5 |
3 files changed, 29 insertions, 2 deletions
diff --git a/dev-lang/ekopath/ekopath-6.0.967_p20161020-r1.ebuild b/dev-lang/ekopath/ekopath-6.0.967_p20161020-r1.ebuild index f71706c8bc6d..546dd4ed5c46 100644 --- a/dev-lang/ekopath/ekopath-6.0.967_p20161020-r1.ebuild +++ b/dev-lang/ekopath/ekopath-6.0.967_p20161020-r1.ebuild @@ -20,7 +20,7 @@ SRC_URI="http://c591116.r16.cf2.rackcdn.com/${PN}/nightly/Linux/${INSTALLER}" LICENSE="all-rights-reserved" SLOT="${MY_PV}" KEYWORDS="~amd64" -IUSE="" +IUSE="mpich openmpi openmpi2" DEPEND="!!app-arch/rpm" RDEPEND="!dev-lang/ekopath:0/${MY_PV}" @@ -60,4 +60,15 @@ src_install() { [[ -x ${ED%}/opt/${MY_P}/bin/pathcc ]] || die "No pathcc executable was installed, your hardware is unsupported most likely" rm -r "${ED}/opt/${MY_P}"/uninstall* || die + + # cleanup + if ! use mpich; then + rm -r "${ED}/opt/${MY_P}/mpi/mpich" || die + fi + if ! use openmpi; then + rm -r "${ED}/opt/${MY_P}/mpi"/openmpi-1.* || die + fi + if ! use openmpi2; then + rm -r "${ED}/opt/${MY_P}/mpi"/openmpi-2.* || die + fi } diff --git a/dev-lang/ekopath/ekopath-6.0.967_p20161020-r100.ebuild b/dev-lang/ekopath/ekopath-6.0.967_p20161020-r100.ebuild index 6a39c1078870..e5c6bafc0393 100644 --- a/dev-lang/ekopath/ekopath-6.0.967_p20161020-r100.ebuild +++ b/dev-lang/ekopath/ekopath-6.0.967_p20161020-r100.ebuild @@ -20,7 +20,7 @@ SRC_URI="http://c591116.r16.cf2.rackcdn.com/${PN}/nightly/Linux/${INSTALLER}" LICENSE="all-rights-reserved" SLOT="0/${MY_PV}" KEYWORDS="~amd64" -IUSE="" +IUSE="mpich openmpi openmpi2" DEPEND="!!app-arch/rpm" RDEPEND="!dev-lang/ekopath:${MY_PV}" @@ -71,4 +71,15 @@ src_install() { rm -r "${ED}/opt/${MY_P}"/uninstall* || die dosym ${MY_P} /opt/${PN} doenvd 99${PN} + + # cleanup + if ! use mpich; then + rm -r "${ED}/opt/${MY_P}/mpi/mpich" || die + fi + if ! use openmpi; then + rm -r "${ED}/opt/${MY_P}/mpi"/openmpi-1.* || die + fi + if ! use openmpi2; then + rm -r "${ED}/opt/${MY_P}/mpi"/openmpi-2.* || die + fi } diff --git a/dev-lang/ekopath/metadata.xml b/dev-lang/ekopath/metadata.xml index 699de24ba6e6..6e99353915e5 100644 --- a/dev-lang/ekopath/metadata.xml +++ b/dev-lang/ekopath/metadata.xml @@ -10,6 +10,11 @@ <email>sci@gentoo.org</email> <name>Gentoo Science Project</name> </maintainer> +<use> + <flag name='openmpi'>Include pre-built OpenMPI 1.x libraries</flag> + <flag name='openmpi2'>Include pre-built OpenMPI 2.x libraries</flag> + <flag name='mpich'>Include pre-built MPICH libraries</flag> +</use> <longdescription> The PathScale EKOPath Compiler Suite offers programmers a rich set of tools and one of the world's most sophisticated optimization infrastructures to maximize |