app-shells/mpibash: version bump
authorChristoph Junghans <junghans@gentoo.org>
Wed, 22 Nov 2017 23:26:28 +0000 (16:26 -0700)
committerChristoph Junghans <junghans@gentoo.org>
Wed, 22 Nov 2017 23:26:44 +0000 (16:26 -0700)
Package-Manager: Portage-2.3.13, Repoman-2.3.3

app-shells/mpibash/Manifest
app-shells/mpibash/mpibash-1.3.ebuild [new file with mode: 0644]
app-shells/mpibash/mpibash-9999.ebuild

index 4d8ea88158d7e8e882414b8e8500d81e22984720..3bdc4e71f6a389cdc0af42dc900b3b6d8f8fc20f 100644 (file)
@@ -1 +1,2 @@
 DIST mpibash-1.2.tar.gz 347083 SHA256 5c2faaa74464111205dbae4799bd89c2425810ec3708d004237b42d620c8be57 SHA512 db755dd2c6212a8d7dfd6cbff17d5dffcbc3b6a0286abdad4d2e21790453d2356e88c566abe4648da138d6964098fad581b8fd5beae1335f5787de92f4659104 WHIRLPOOL 94fcf50d89250a6478a2ed56a0c1769dd678869884e1e80066ebdb479dd0c6d64048ade7829020fdad050b1e77a2315ab7e325a97aa472291d3e9a4888c915e3
+DIST mpibash-1.3.tar.gz 369803 BLAKE2B b1959deaa2d5b3bce1a66e5ef0ff41ad156093aec9cc1efcd12873b6d5814ad1586ff951d6fd7f37dab6a55040378774b435edc4e2c8892952480539864f91fa SHA512 4728565239aae80013322231a928fd1e9a59484614a92cf7e314d0cd5c090d3a47de395507ce52f71a6900245855089d659c6509f8c4df3bfd88e46fc2187749
diff --git a/app-shells/mpibash/mpibash-1.3.ebuild b/app-shells/mpibash/mpibash-1.3.ebuild
new file mode 100644 (file)
index 0000000..76bbce4
--- /dev/null
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools multilib
+
+if [[ ${PV} = 9999 ]]; then
+       EGIT_REPO_URI="https://github.com/lanl/MPI-Bash.git"
+       inherit git-r3
+       KEYWORDS=""
+else
+       SRC_URI="https://github.com/lanl/MPI-Bash/releases/download/v${PV}/${P}.tar.gz"
+       KEYWORDS="~amd64"
+fi
+
+DESCRIPTION="Parallel scripting right from the Bourne-Again Shell (Bash)"
+HOMEPAGE="https://github.com/lanl/MPI-Bash"
+
+LICENSE="GPL-3"
+SLOT="0"
+IUSE="examples"
+
+DEPEND="virtual/mpi
+       >=app-shells/bash-4.2[plugins]
+       sys-cluster/libcircle"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+       default
+       [[ ${PV} != 9999 ]] || eautoreconf
+}
+
+src_configure() {
+       econf --with-plugindir="${EPREFIX}"/usr/$(get_libdir)/bash \
+               --with-bashdir="${EPREFIX}"/usr/include/bash-plugins
+}
+
+src_install() {
+       default
+       sed -i '/^export LD_LIBRARY_PATH/d' "${ED}/usr/bin/${PN}" || die
+       use examples || rm -r "${ED}/usr/share/doc/${PF}/examples" || die
+}
index 594ac6bc88cb66a0533399e0bc4980d93e593d17..76bbce43cda20b571df2c8c8284bc9974c1c7ef2 100644 (file)
@@ -3,13 +3,12 @@
 
 EAPI=5
 
-inherit autotools-utils multilib
+inherit autotools multilib
 
 if [[ ${PV} = 9999 ]]; then
        EGIT_REPO_URI="https://github.com/lanl/MPI-Bash.git"
        inherit git-r3
        KEYWORDS=""
-       AUTOTOOLS_AUTORECONF=1
 else
        SRC_URI="https://github.com/lanl/MPI-Bash/releases/download/v${PV}/${P}.tar.gz"
        KEYWORDS="~amd64"
@@ -27,16 +26,18 @@ DEPEND="virtual/mpi
        sys-cluster/libcircle"
 RDEPEND="${DEPEND}"
 
+src_prepare() {
+       default
+       [[ ${PV} != 9999 ]] || eautoreconf
+}
+
 src_configure() {
-       local myeconfargs=(
+       econf --with-plugindir="${EPREFIX}"/usr/$(get_libdir)/bash \
                --with-bashdir="${EPREFIX}"/usr/include/bash-plugins
-               --with-plugindir="${EPREFIX}"/usr/$(get_libdir)/bash
-       )
-       autotools-utils_src_configure
 }
 
 src_install() {
-       autotools-utils_src_install
+       default
        sed -i '/^export LD_LIBRARY_PATH/d' "${ED}/usr/bin/${PN}" || die
        use examples || rm -r "${ED}/usr/share/doc/${PF}/examples" || die
 }