commit:     eb8edff66541a45fa425e4fb7223a4d2e47f4c93
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Fri Apr  1 01:00:02 2022 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Fri Apr  1 01:00:02 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=eb8edff6

sys-cluster/temanejo: remove bashisms

Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 .../temanejo/files/temanejo-1.3-bashisms.patch     | 41 ++++++++++++++++++++++
 sys-cluster/temanejo/temanejo-1.3.ebuild           |  4 ++-
 2 files changed, 44 insertions(+), 1 deletion(-)

diff --git a/sys-cluster/temanejo/files/temanejo-1.3-bashisms.patch 
b/sys-cluster/temanejo/files/temanejo-1.3-bashisms.patch
new file mode 100644
index 000000000..095d16ced
--- /dev/null
+++ b/sys-cluster/temanejo/files/temanejo-1.3-bashisms.patch
@@ -0,0 +1,41 @@
+--- a/Ayudame/configure.ac
++++ b/Ayudame/configure.ac
+@@ -22,8 +22,8 @@
+ # determine OS to set eg linker flags; yields variables host_os, host_vendor, 
and host_cpu
+ AC_CANONICAL_HOST
+ #echo "***************${host_os}"
+-AM_CONDITIONAL([HAVE_LINUX], test "${host_os/linux}" != "$host_os")
+-AM_CONDITIONAL([HAVE_APPLE], test "${host_os/darwin}" != "$host_os")
++AM_CONDITIONAL([HAVE_LINUX], test "linux" = "$host_os")
++AM_CONDITIONAL([HAVE_APPLE], test "darwin" = "$host_os")
+ 
+ # from Kailai's version:
+ #AC_CONFIG_MACRO_DIR([m4])
+--- a/Ayudame/m4/ompss_plugin.m4
++++ b/Ayudame/m4/ompss_plugin.m4
+@@ -32,7 +32,7 @@
+     # test if OmpSs headers usuable; this is a hack
+     AC_LANG_PUSH([C++])    # switch to C++
+     CPPFLAGS_SAVE=$CPPFLAGS
+-    CPPFLAGS+=" -Ishould_not_be_here -I$with_ompss/include/nanox-dev 
-include"new_decl.hpp""
++    CPPFLAGS="${CPPFLAGS} -Ishould_not_be_here 
-I$with_ompss/include/nanox-dev -include"new_decl.hpp""
+     AC_CHECK_HEADER([plugin.hpp], [enable_ompss_plugin="yes"], 
[enable_ompss_plugin="no"]) # this does not seem to work with gxx
+     CPPFLAGS=$CPPFLAGS_SAVE
+     # check for c++11 compiler
+@@ -41,13 +41,13 @@
+   ])
+   AM_CONDITIONAL(ENABLE_OMPSS_PLUGIN, test "$enable_ompss_plugin" != "no")    
+   
+-  AS_IF([test "$enable_ompss_plugin" == "yes"], [
++  AS_IF([test "$enable_ompss_plugin" = "yes"], [
+     #  try to find APIs for getting number of threads/workers
+     AC_LANG_PUSH([C++])    # switch to C++
+     CXXFLAGS_SAVE=$CXXFLAGS
+     CPPFLAGS_SAVE=$CPPFLAGS
+-    CPPFLAGS+=" -Ishould_not_be_here2 -I$with_ompss/include/nanox-dev "
+-    CXXFLAGS+=" -std=c++03 "
++    CPPFLAGS="${CPPFLAGS} -Ishould_not_be_here2 
-I$with_ompss/include/nanox-dev "
++    CXXFLAGS="${CXXFLAGS} -std=c++03 "
+     # 
+     AC_COMPILE_IFELSE(
+        [ AC_LANG_PROGRAM([#include <system.hpp>],

diff --git a/sys-cluster/temanejo/temanejo-1.3.ebuild 
b/sys-cluster/temanejo/temanejo-1.3.ebuild
index fb34f92ec..a1df16872 100644
--- a/sys-cluster/temanejo/temanejo-1.3.ebuild
+++ b/sys-cluster/temanejo/temanejo-1.3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -35,6 +35,8 @@ RDEPEND="
 
 BDEPEND="doc? ( dev-texlive/texlive-latex )"
 
+PATCHES=( "${FILESDIR}/${P}-bashisms.patch" )
+
 src_prepare() {
        default
        eautoreconf

Reply via email to