public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/ekopath/
Date: Fri, 21 Oct 2016 18:58:16 +0000 (UTC)	[thread overview]
Message-ID: <1477076295.15221a5c5639027b2bc5eef34f55ecff1abebe1a.mgorny@gentoo> (raw)

commit:     15221a5c5639027b2bc5eef34f55ecff1abebe1a
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 21 18:53:59 2016 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Oct 21 18:58:15 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15221a5c

dev-lang/ekopath: Make MPI libs optional

 dev-lang/ekopath/ekopath-6.0.967_p20161020-r1.ebuild   | 13 ++++++++++++-
 dev-lang/ekopath/ekopath-6.0.967_p20161020-r100.ebuild | 13 ++++++++++++-
 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 f71706c..546dd4e 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 6a39c10..e5c6baf 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 699de24..6e99353 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 


             reply	other threads:[~2016-10-21 18:58 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-21 18:58 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-06-14  9:30 [gentoo-commits] repo/gentoo:master commit in: dev-lang/ekopath/ Mikle Kolyada
2016-10-21 18:58 Michał Górny
2016-06-30 17:07 Michał Górny
2016-06-23 12:48 Michał Górny
2016-04-29  9:27 Michał Górny
2016-04-29  9:27 Michał Górny
2016-04-10 12:34 Michał Górny
2016-03-25  8:28 Michał Górny
2016-03-19 14:03 Michał Górny
2016-03-12 16:33 Michał Górny
2016-03-12 16:33 Michał Górny
2016-03-12 16:33 Michał Górny
2016-03-12 16:33 Michał Górny
2016-03-12 16:33 Michał Górny
2016-03-12 13:41 Michał Górny
2016-03-04  6:12 Michał Górny
2016-01-25 19:45 Michał Górny
2016-01-01 10:25 Michał Górny
2016-01-01 10:25 Michał Górny
2015-12-14 22:14 Michał Górny
2015-12-12 12:59 Michał Górny
2015-12-02 20:08 Michał Górny
2015-10-30 23:37 Michał Górny
2015-10-30 23:37 Michał Górny
2015-10-12  8:52 Michał Górny
2015-10-11 18:19 Michał Górny
2015-09-22 17:42 Michał Górny
2015-09-11 18:51 Michał Górny
2015-08-12 20:51 Michał Górny
2015-08-10  7:15 Michał Górny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1477076295.15221a5c5639027b2bc5eef34f55ecff1abebe1a.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox