commit:     3a870f881dc14389f43b82818860841e9d15a2e3
Author:     Matoro Mahri <matoro_gentoo <AT> matoro <DOT> tk>
AuthorDate: Wed May  8 14:52:44 2024 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Wed May  8 19:26:14 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a870f88

dev-lang/regina-rexx: new package, add 3.9.5

Signed-off-by: Matoro Mahri <matoro_gentoo <AT> matoro.tk>
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 dev-lang/regina-rexx/Manifest                      |   1 +
 .../files/regina-rexx-3.9.5-makefile.patch         | 309 +++++++++++++++++++++
 dev-lang/regina-rexx/files/rxstack-r1              |  14 +
 dev-lang/regina-rexx/metadata.xml                  |  18 ++
 dev-lang/regina-rexx/regina-rexx-3.9.5.ebuild      |  50 ++++
 5 files changed, 392 insertions(+)

diff --git a/dev-lang/regina-rexx/Manifest b/dev-lang/regina-rexx/Manifest
new file mode 100644
index 000000000000..3d295cd2b71f
--- /dev/null
+++ b/dev-lang/regina-rexx/Manifest
@@ -0,0 +1 @@
+DIST regina-rexx-3.9.5.tar.gz 2705272 BLAKE2B 
f26d4c7c582e1dafb97c2280651d07bba67549ccf9f58eb42e88e92ddbbb3184a36e5d3480977adccafdd1d9fdd1ca208950cd2700201600b6fbc0da7ebbd336
 SHA512 
bff25e5d218441306d021924582c19ed29c652b691e73988a4b53b9de4b51b758b1ee08704685967bd9bea469e93bf57b19875207fd4649d5af3e53dade39dd2

diff --git a/dev-lang/regina-rexx/files/regina-rexx-3.9.5-makefile.patch 
b/dev-lang/regina-rexx/files/regina-rexx-3.9.5-makefile.patch
new file mode 100644
index 000000000000..36124bedaa7b
--- /dev/null
+++ b/dev-lang/regina-rexx/files/regina-rexx-3.9.5-makefile.patch
@@ -0,0 +1,309 @@
+diff --git a/Makefile.in b/Makefile.in
+index 17e43da..75368f7 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -323,7 +323,7 @@ JUNK = *.o *.so.$(OBJ) $(STATICLIB) 
execiser$(binarybitprefix)$(EXE) threader$(b
+ #
+ .SUFFIXES:
+ 
+-all : rexx$(binarybitprefix)$(EXE) $(STATICLIB) 
execiser$(binarybitprefix)$(EXE) $(SHL_TARGETS) $(THREADSAFE_TARGET) 
rxstack$(binarybitprefix)$(EXE) rxqueue$(binarybitprefix)$(EXE) $(MTBFILES)
++all : rexx$(binarybitprefix)$(EXE) execiser$(binarybitprefix)$(EXE) 
$(SHL_TARGETS) $(THREADSAFE_TARGET) rxstack$(binarybitprefix)$(EXE) 
rxqueue$(binarybitprefix)$(EXE) $(MTBFILES)
+ 
+ $(srcdir)/rexx.h : $(srcdir)/extern.h $(srcdir)/strengs.h $(srcdir)/defs.h 
$(srcdir)/regina_t.h $(srcdir)/mt.h
+ 
+@@ -1053,9 +1053,9 @@ installbase: all
+       $(INSTALL) -m 755 -d $(DESTDIR)$(examplesdir)
+       $(INSTALL) -m 755 -d $(DESTDIR)$(sysconfdir)
+       $(INSTALL) -m 755 -d $(DESTDIR)$(mandir)/man1
+-      $(INSTALL) -s -m 755 -c ./rexx$(binarybitprefix)$(EXE) 
$(DESTDIR)$(bindir)/rexx$(binarybitprefix)$(EXE)
+-      $(INSTALL) -s -m 755 -c ./rxqueue$(binarybitprefix)$(EXE) 
$(DESTDIR)$(bindir)/rxqueue$(binarybitprefix)$(EXE)
+-      $(INSTALL) -s -m 755 -c ./rxstack$(binarybitprefix)$(EXE) 
$(DESTDIR)$(bindir)/rxstack$(binarybitprefix)$(EXE)
++      $(INSTALL) -m 755 -c ./rexx$(binarybitprefix)$(EXE) 
$(DESTDIR)$(bindir)/rexx$(binarybitprefix)$(EXE)
++      $(INSTALL) -m 755 -c ./rxqueue$(binarybitprefix)$(EXE) 
$(DESTDIR)$(bindir)/rxqueue$(binarybitprefix)$(EXE)
++      $(INSTALL) -m 755 -c ./rxstack$(binarybitprefix)$(EXE) 
$(DESTDIR)$(bindir)/rxstack$(binarybitprefix)$(EXE)
+       $(INSTALL) -m 644 -c $(srcdir)/rxstack.conf.etc 
$(DESTDIR)$(sysconfdir)/rxstack.conf
+       $(INSTALL) -m 755 -c ./regina-config $(DESTDIR)$(bindir)/regina-config
+       $(INSTALL) -m 755 -c ./libregina.pc 
$(DESTDIR)$(libdir)/pkgconfig/libregina.pc
+@@ -1066,11 +1066,6 @@ installbase: all
+       $(INSTALL) -m 644 -c $(srcdir)/regina-config.1 
$(DESTDIR)$(mandir)/man1/regina-config.1
+       $(INSTALL) -m 644 -c $(srcdir)/rxstack.1 
$(DESTDIR)$(mandir)/man1/rxstack.1
+       $(INSTALL) -m 644 -c $(srcdir)/rxqueue.1 
$(DESTDIR)$(mandir)/man1/rxqueue.1
+-      gzip -f $(DESTDIR)$(mandir)/man1/regina.1
+-      gzip -f $(DESTDIR)$(mandir)/man1/rexx.1
+-      gzip -f $(DESTDIR)$(mandir)/man1/regina-config.1
+-      gzip -f $(DESTDIR)$(mandir)/man1/rxstack.1
+-      gzip -f $(DESTDIR)$(mandir)/man1/rxqueue.1
+       $(INSTALL) -m 644 -c $(srcdir)/rexxsaa.h 
$(DESTDIR)$(includedir)/rexxsaa.h
+       $(INSTALL) -m 644 -c ./en.mtb $(DESTDIR)$(sharedir)/en.mtb
+       $(INSTALL) -m 644 -c ./pt.mtb $(DESTDIR)$(sharedir)/pt.mtb
+@@ -1092,7 +1087,7 @@ installdoc:
+       $(INSTALL) -m 644 -c ./doc/regutil.pdf 
$(DESTDIR)/$(PACKAGE)-regutil-$(VERDOTUNQUOTED)-doc.pdf
+ 
+ installregina:
+-      $(INSTALL) -s -m 755 -c ./regina$(binarybitprefix)$(EXE) 
$(DESTDIR)$(bindir)/regina$(binarybitprefix)$(EXE)
++      $(INSTALL) -m 755 -c ./regina$(binarybitprefix)$(EXE) 
$(DESTDIR)$(bindir)/regina$(binarybitprefix)$(EXE)
+       $(INSTALL) -m 755 -c $(srcdir)/demo/dynfunc.rexx  
$(DESTDIR)$(examplesdir)/dynfunc.rexx
+       $(INSTALL) -m 755 -c $(srcdir)/regutil/regutil.rexx  
$(DESTDIR)$(examplesdir)/regutil.rexx
+       $(INSTALL) -m 755 -c $(srcdir)/regutil/getline.rexx  
$(DESTDIR)$(examplesdir)/getline.rexx
+@@ -1100,14 +1095,14 @@ installregina:
+ installlib: installregina
+       $(INSTALL) -m 755 -d $(DESTDIR)$(libdir)
+       $(INSTALL) -m 755 -d $(DESTDIR)$(addonsdir)
+-##    $(INSTALL) -s -m 755 -c ./$(SHLPRE)$(SHLFILE)$(SHLPST) 
$(DESTDIR)$(libdir)/$(SHLPRE)$(SHLFILE)$(SHLPST)
+-##    $(INSTALL) -s -m 755 -c ./$(SHLPRE)regutil$(MODPST) 
$(DESTDIR)$(addonsdir)/$(SHLPRE)regutil$(MODPST)
+-##    $(INSTALL) -s -m 755 -c ./$(SHLPRE)rxtest1$(MODPST) 
$(DESTDIR)$(addonsdir)/$(SHLPRE)rxtest1$(MODPST)
+-##    $(INSTALL) -s -m 755 -c ./$(SHLPRE)rxtest2$(MODPST) 
$(DESTDIR)$(addonsdir)/$(SHLPRE)rxtest2$(MODPST)
+-      $(INSTALL) -s -m 755 -c ./$(SHL_NAME_REGINA) 
$(DESTDIR)$(libdir)/$(SHL_NAME_REGINA)
+-      $(INSTALL) -s -m 755 -c ./$(SHL_NAME_REGUTIL) 
$(DESTDIR)$(packagedir)/$(SHL_NAME_REGUTIL)
+-      $(INSTALL) -s -m 755 -c ./$(SHL_NAME_RXTEST1) 
$(DESTDIR)$(packagedir)/$(SHL_NAME_RXTEST1)
+-      $(INSTALL) -s -m 755 -c ./$(SHL_NAME_RXTEST2) 
$(DESTDIR)$(packagedir)/$(SHL_NAME_RXTEST2)
++##    $(INSTALL) -m 755 -c ./$(SHLPRE)$(SHLFILE)$(SHLPST) 
$(DESTDIR)$(libdir)/$(SHLPRE)$(SHLFILE)$(SHLPST)
++##    $(INSTALL) -m 755 -c ./$(SHLPRE)regutil$(MODPST) 
$(DESTDIR)$(addonsdir)/$(SHLPRE)regutil$(MODPST)
++##    $(INSTALL) -m 755 -c ./$(SHLPRE)rxtest1$(MODPST) 
$(DESTDIR)$(addonsdir)/$(SHLPRE)rxtest1$(MODPST)
++##    $(INSTALL) -m 755 -c ./$(SHLPRE)rxtest2$(MODPST) 
$(DESTDIR)$(addonsdir)/$(SHLPRE)rxtest2$(MODPST)
++      $(INSTALL) -m 755 -c ./$(SHL_NAME_REGINA) 
$(DESTDIR)$(libdir)/$(SHL_NAME_REGINA)
++      $(INSTALL) -m 755 -c ./$(SHL_NAME_REGUTIL) 
$(DESTDIR)$(packagedir)/$(SHL_NAME_REGUTIL)
++      $(INSTALL) -m 755 -c ./$(SHL_NAME_RXTEST1) 
$(DESTDIR)$(packagedir)/$(SHL_NAME_RXTEST1)
++      $(INSTALL) -m 755 -c ./$(SHL_NAME_RXTEST2) 
$(DESTDIR)$(packagedir)/$(SHL_NAME_RXTEST2)
+ #     ln -sf $(DESTDIR)$(packagedir)/$(SHL_NAME_REGUTIL) 
$(DESTDIR)$(addonsdir)
+ #     ln -sf $(DESTDIR)$(packagedir)/$(SHL_NAME_RXTEST1) 
$(DESTDIR)$(addonsdir)
+ #     ln -sf $(DESTDIR)$(packagedir)/$(SHL_NAME_RXTEST2) 
$(DESTDIR)$(addonsdir)
+@@ -1115,22 +1110,22 @@ installlib: installregina
+       -(cd $(DESTDIR)$(addonsdir);$(LN_S) 
../$(VERDOTUNQUOTED)/$(SHL_NAME_RXTEST1) .)
+       -(cd $(DESTDIR)$(addonsdir);$(LN_S) 
../$(VERDOTUNQUOTED)/$(SHL_NAME_RXTEST2) .)
+ 
+-#     $(INSTALL) -s -m 755 -c ./$(SHL_NAME_REGUTIL) 
$(DESTDIR)$(addonsdir)/$(SHL_NAME_REGUTIL)
+-#     $(INSTALL) -s -m 755 -c ./$(SHL_NAME_RXTEST1) 
$(DESTDIR)$(addonsdir)/$(SHL_NAME_RXTEST1)
+-#     $(INSTALL) -s -m 755 -c ./$(SHL_NAME_RXTEST2) 
$(DESTDIR)$(addonsdir)/$(SHL_NAME_RXTEST2)
++#     $(INSTALL) -m 755 -c ./$(SHL_NAME_REGUTIL) 
$(DESTDIR)$(addonsdir)/$(SHL_NAME_REGUTIL)
++#     $(INSTALL) -m 755 -c ./$(SHL_NAME_RXTEST1) 
$(DESTDIR)$(addonsdir)/$(SHL_NAME_RXTEST1)
++#     $(INSTALL) -m 755 -c ./$(SHL_NAME_RXTEST2) 
$(DESTDIR)$(addonsdir)/$(SHL_NAME_RXTEST2)
+ 
+ installabilib: installregina
+       $(INSTALL) -m 755 -d $(DESTDIR)$(libdir)
+       $(INSTALL) -m 755 -d $(DESTDIR)$(addonsdir)
+-      -$(INSTALL) -s -m 755 -c ./$(SHLPRE)$(SHLFILE)$(SHLPST).$(ABI) 
$(DESTDIR)$(libdir)/$(SHLPRE)$(SHLFILE)$(SHLPST).$(ABI)
++      -$(INSTALL) -m 755 -c ./$(SHLPRE)$(SHLFILE)$(SHLPST).$(ABI) 
$(DESTDIR)$(libdir)/$(SHLPRE)$(SHLFILE)$(SHLPST).$(ABI)
+       -rm -f $(DESTDIR)$(libdir)/$(SHLPRE)$(SHLFILE)$(SHLPST).$(ABI_MAJOR)
+       -(cd $(DESTDIR)$(libdir);$(LN_S) $(SHLPRE)$(SHLFILE)$(SHLPST).$(ABI) 
$(SHLPRE)$(SHLFILE)$(SHLPST).$(ABI_MAJOR) )
+       -rm -f $(DESTDIR)$(libdir)/$(SHLPRE)$(SHLFILE)$(SHLPST)
+       -(cd $(DESTDIR)$(libdir);$(LN_S) 
$(SHLPRE)$(SHLFILE)$(SHLPST).$(ABI_MAJOR) $(SHLPRE)$(SHLFILE)$(SHLPST) )
+ 
+-      $(INSTALL) -s -m 755 -c ./$(SHLPRE)regutil$(MODPST) 
$(DESTDIR)$(packagedir)/$(SHLPRE)regutil$(MODPST)
+-      $(INSTALL) -s -m 755 -c ./$(SHLPRE)rxtest1$(MODPST) 
$(DESTDIR)$(packagedir)/$(SHLPRE)rxtest1$(MODPST)
+-      $(INSTALL) -s -m 755 -c ./$(SHLPRE)rxtest2$(MODPST) 
$(DESTDIR)$(packagedir)/$(SHLPRE)rxtest2$(MODPST)
++      $(INSTALL) -m 755 -c ./$(SHLPRE)regutil$(MODPST) 
$(DESTDIR)$(packagedir)/$(SHLPRE)regutil$(MODPST)
++      $(INSTALL) -m 755 -c ./$(SHLPRE)rxtest1$(MODPST) 
$(DESTDIR)$(packagedir)/$(SHLPRE)rxtest1$(MODPST)
++      $(INSTALL) -m 755 -c ./$(SHLPRE)rxtest2$(MODPST) 
$(DESTDIR)$(packagedir)/$(SHLPRE)rxtest2$(MODPST)
+ #     ln -sf $(DESTDIR)$(packagedir)/$(SHLPRE)regutil$(MODPST) 
$(DESTDIR)$(addonsdir)
+ #     ln -sf $(DESTDIR)$(packagedir)/$(SHLPRE)rxtest1$(MODPST) 
$(DESTDIR)$(addonsdir)
+ #     ln -sf $(DESTDIR)$(packagedir)/$(SHLPRE)rxtest2$(MODPST) 
$(DESTDIR)$(addonsdir)
+@@ -1138,15 +1133,15 @@ installabilib: installregina
+       -(cd $(DESTDIR)$(addonsdir);$(LN_S) 
../$(VERDOTUNQUOTED)/$(SHL_NAME_RXTEST1) .)
+       -(cd $(DESTDIR)$(addonsdir);$(LN_S) 
../$(VERDOTUNQUOTED)/$(SHL_NAME_RXTEST2) .)
+ 
+-#     $(INSTALL) -s -m 755 -c ./$(SHLPRE)regutil$(MODPST) 
$(DESTDIR)$(addonsdir)/$(SHLPRE)regutil$(MODPST)
+-#     $(INSTALL) -s -m 755 -c ./$(SHLPRE)rxtest1$(MODPST) 
$(DESTDIR)$(addonsdir)/$(SHLPRE)rxtest1$(MODPST)
+-#     $(INSTALL) -s -m 755 -c ./$(SHLPRE)rxtest2$(MODPST) 
$(DESTDIR)$(addonsdir)/$(SHLPRE)rxtest2$(MODPST)
++#     $(INSTALL) -m 755 -c ./$(SHLPRE)regutil$(MODPST) 
$(DESTDIR)$(addonsdir)/$(SHLPRE)regutil$(MODPST)
++#     $(INSTALL) -m 755 -c ./$(SHLPRE)rxtest1$(MODPST) 
$(DESTDIR)$(addonsdir)/$(SHLPRE)rxtest1$(MODPST)
++#     $(INSTALL) -m 755 -c ./$(SHLPRE)rxtest2$(MODPST) 
$(DESTDIR)$(addonsdir)/$(SHLPRE)rxtest2$(MODPST)
+ 
+ installcyglib:
+-      $(INSTALL) -s -m 755 -c ./$(SHL_NAME_REGINA) 
$(DESTDIR)$(bindir)/$(SHL_NAME_REGINA)
+-      $(INSTALL) -s -m 755 -c ./$(SHL_NAME_REGUTIL) 
$(DESTDIR)$(addonsdir)/$(SHL_NAME_REGUTIL)
+-      $(INSTALL) -s -m 755 -c ./$(SHL_NAME_RXTEST1) 
$(DESTDIR)$(addonsdir)/$(SHL_NAME_RXTEST1)
+-      $(INSTALL) -s -m 755 -c ./$(SHL_NAME_RXTEST2) 
$(DESTDIR)$(addonsdir)/$(SHL_NAME_RXTEST2)
++      $(INSTALL) -m 755 -c ./$(SHL_NAME_REGINA) 
$(DESTDIR)$(bindir)/$(SHL_NAME_REGINA)
++      $(INSTALL) -m 755 -c ./$(SHL_NAME_REGUTIL) 
$(DESTDIR)$(addonsdir)/$(SHL_NAME_REGUTIL)
++      $(INSTALL) -m 755 -c ./$(SHL_NAME_RXTEST1) 
$(DESTDIR)$(addonsdir)/$(SHL_NAME_RXTEST1)
++      $(INSTALL) -m 755 -c ./$(SHL_NAME_RXTEST2) 
$(DESTDIR)$(addonsdir)/$(SHL_NAME_RXTEST2)
+ 
+ #
+ # Can't strip .dylib on OSX
+diff --git a/common/incdebug.m4 b/common/incdebug.m4
+index 14c106e..86e4135 100644
+--- a/common/incdebug.m4
++++ b/common/incdebug.m4
+@@ -15,67 +15,6 @@ DEBUGGING=""
+ cflags_g="`echo $CFLAGS | grep -c '\-g'`"
+ cflags_O="`echo $CFLAGS | grep -c '\-O'`"
+ 
+-if test "$with_debug" = yes; then
+-   DEBUG="-DDEBUG"
+-   DEBUGGING="-g"
+-   if test "$cflags_g" = "0"; then
+-      CFLAGS="${CFLAGS} -g"
+-   fi
+-   if test "$cflags_O" != "0"; then
+-      CFLAGS="`echo ${CFLAGS} | sed -e s/-O.//`"
+-   fi
+-else
+-   DEBUG="-DNDEBUG"
+-   if test "$cflags_O" = "0"; then
+-      CFLAGS="${CFLAGS} -O"
+-   fi
+-   if test "$cflags_g" = "0"; then
+-      CFLAGS="${CFLAGS} -g"
+-   fi
+-fi
+-if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o 
"$ac_cv_prog_CC" = "clang"; then
+-   if test "$with_debug" = yes; then
+-      CFLAGS="${CFLAGS} -Wall"
+-   else
+-      CFLAGS="${CFLAGS} -O3 -Wall -fomit-frame-pointer -fno-strict-aliasing 
-Wno-char-subscripts"
+-   fi
+-fi
+-if test "$on_qnx4" = yes; then
+-   if test "$ac_cv_prog_CC" = "gcc"; then
+-      QNX4_CFLAGS=""
+-   else
+-      if test "$SIMPLE_CFLAGS" = "yes"; then
+-         QNX4_CFLAGS="-O"
+-      else
+-         QNX4_CFLAGS="-Wc,-r -b -j -Wc,-ei -N4096000 -mf -DNO_REGEX -DQNX 
-DQNX4 -D__QNX__ -DSTRINGS_ALIGNED -Q"
+-      fi
+-   fi
+-   if test "$with_debug" = yes; then
+-      CFLAGS="-g $QNX4_CFLAGS"
+-   else
+-      CFLAGS="-Otax $QNX4_CFLAGS"
+-   fi
+-fi
+-if test "$on_beos" = yes; then
+-   if test "$with_debug" = yes; then
+-      CFLAGS="${CFLAGS} -Wall"
+-   else
+-      CFLAGS="${CFLAGS} -O2 -Wall"
+-   fi
+-   if test "$datadir" = "\${prefix}/share"; then
+-      datadir="/boot/home/config/add-ons"
+-   fi
+-fi
+-if test "$on_haiku" = yes; then
+-   if test "$with_debug" = yes; then
+-      CFLAGS="${CFLAGS} -Wall"
+-   else
+-      CFLAGS="${CFLAGS} -O2 -Wall"
+-   fi
+-   if test "$datadir" = "\${prefix}/share"; then
+-      datadir="/boot/home/config/non-packaged/add-ons"
+-   fi
+-fi
+ AC_SUBST(DEBUG)
+ AC_SUBST(DEBUGGING)
+ 
+diff --git a/common/inclibarch.m4 b/common/inclibarch.m4
+index 57ae6f5..6a0a11d 100644
+--- a/common/inclibarch.m4
++++ b/common/inclibarch.m4
+@@ -25,96 +25,7 @@ AC_ARG_ENABLE(64bit,
+ gcc_64bit="-m64"
+ gcc_32bit="-m32"
+ on_osx="no"
+-osis64bit=no
+-bitflag="32"
+ MACH_ARCH=`$ac_config_guess | cut -f1 -d-`
+-case "$target" in
+-   *hp-hpux*)
+-      ;;
+-   *ibm-aix*)
+-      rc=`lsconf -k | grep -c 64-bit`
+-      if test $rc -eq 1; then
+-         bitflag="64"
+-         osis64bit=yes
+-      fi
+-      #
+-      # AIX gcc has its own special bit switches :-(
+-      #
+-      gcc_64bit="-maix64"
+-      gcc_32bit="-maix32"
+-      ;;
+-   powerpc-ibm-os400)
+-      bitflag="64"
+-      osis64bit=yes
+-      gcc_64bit=""
+-      ;;
+-   *dec-osf4*)
+-      ;;
+-   *dec-osf*)
+-      ;;
+-   *sequent-dynix*)
+-      ;;
+-   i*86*solaris*)
+-      ;;
+-   *solaris*)
+-      rc=`isainfo -v | grep -c 64-bit`
+-      if test $rc -eq 1; then
+-         bitflag="64"
+-         osis64bit=yes
+-      fi
+-      ;;
+-   sparc*sunos*)
+-      ;;
+-   *linux* | *kfreebsd*-gnu*)
+-      mach="`uname -m`"
+-      if test "$mach" = "x86_64" -o "$mach" = "ia86" -o "$mach" = "alpha" -o 
"$mach" = "ppc64" -o "$mach" = "s390x"; then
+-         bitflag="64"
+-         osis64bit=yes
+-      fi
+-#      if test -f "/etc/os-release"; then
+-         # get Linux ID...
+-#      fi
+-      if test -f "/etc/apk/arch"; then
+-         # get Alpine Linux architecture for APK
+-         MACH_ARCH="`cat /etc/apk/arch`"
+-      fi
+-      ;;
+-   *-freebsd* | *-openbsd*)
+-      mach="`uname -m`"
+-      if test "$mach" = "amd64"; then
+-         bitflag="64"
+-         osis64bit=yes
+-      fi
+-      ;;
+-   *nto-qnx*)
+-      ;;
+-   *qnx*)
+-      ;;
+-   *beos*)
+-      ;;
+-   *haiku*)
+-      mach="`uname -m`"
+-      if test "$mach" = "x86_64"; then
+-         bitflag="64"
+-         osis64bit=yes
+-      fi
+-      ;;
+-   *cygwin*)
+-      mach="`uname -m`"
+-      if test "$mach" = "x86_64"; then
+-         bitflag="64"
+-         osis64bit=yes
+-      fi
+-      ;;
+-   *apple-darwin*)
+-      on_osx="yes"
+-      osx_64bit=`sysctl hw.cpu64bit_capable | cut -f2 -d' '`
+-      if test $osx_64bit -eq 1; then
+-         bitflag="64"
+-         osis64bit=yes
+-      fi
+-      ;;
+-esac
+ 
+ if test "x$bitflag32" = "xyes" -a "x$bitflag64" = "xyes"; then
+    AC_MSG_ERROR(--enable-32bit and --enable-64bit flags cannot both be 
specified.)
+diff --git a/configure.in b/configure.in
+index bb424b9..12cf5e6 100644
+--- a/configure.in
++++ b/configure.in
+@@ -30,7 +30,7 @@ cp $srcdir/common/config.sub $srcdir
+ 
+ dnl ---------------------- check for C compiler -----------------
+ dnl Checks for one of the C compilers below - change if yours not there.
+-MH_PROG_CC
++AC_PROG_CC
+ 
+ AC_CONFIG_HEADER(config.h)
+ AC_ISC_POSIX

diff --git a/dev-lang/regina-rexx/files/rxstack-r1 
b/dev-lang/regina-rexx/files/rxstack-r1
new file mode 100644
index 000000000000..668af5ec0a46
--- /dev/null
+++ b/dev-lang/regina-rexx/files/rxstack-r1
@@ -0,0 +1,14 @@
+#!/sbin/openrc-run
+
+start() {
+       ebegin "Starting Regina stack"
+       start-stop-daemon --start --pidfile /var/run/rxstack.pid \
+               --exec /usr/bin/rxstack -- -d
+       eend $?
+}
+
+stop() {
+       ebegin "Stopping Regina stack"
+       start-stop-daemon --stop --exec /usr/bin/rxstack
+       eend $?
+}

diff --git a/dev-lang/regina-rexx/metadata.xml 
b/dev-lang/regina-rexx/metadata.xml
new file mode 100644
index 000000000000..1d3a12c3cc85
--- /dev/null
+++ b/dev-lang/regina-rexx/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="project">
+               <email>s...@gentoo.org</email>
+               <name>s390 architecture team</name>
+       </maintainer>
+       <longdescription>
+               Regina is a Rexx interpreter. Rexx is a programming language 
that was
+               designed to be easy to use for inexperienced programmers yet 
powerful
+               enough for experienced users. It is also a language ideally 
suited as a
+               macro language for other applications.
+       </longdescription>
+       <upstream>
+               <remote-id type="sourceforge">regina-rexx</remote-id>
+               <bugs-to>https://sourceforge.net/p/regina-rexx/bugs/</bugs-to>
+       </upstream>
+</pkgmetadata>

diff --git a/dev-lang/regina-rexx/regina-rexx-3.9.5.ebuild 
b/dev-lang/regina-rexx/regina-rexx-3.9.5.ebuild
new file mode 100644
index 000000000000..88bd7934d186
--- /dev/null
+++ b/dev-lang/regina-rexx/regina-rexx-3.9.5.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools toolchain-funcs
+
+DESCRIPTION="Portable Rexx interpreter"
+HOMEPAGE="https://regina-rexx.sourceforge.io/";
+SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.gz";
+
+LICENSE="LGPL-2.1 MPL-1.0"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64"
+
+RDEPEND="virtual/libcrypt:=
+       !dev-lang/oorexx"
+
+PATCHES=( "${FILESDIR}/${PN}-3.9.5-makefile.patch" )
+
+src_prepare() {
+       default
+       mv configure.{in,ac} || die
+       eautoconf
+}
+
+src_configure() {
+       local bits="$(( "$(tc-get-ptr-size)" * 8))"
+       econf "bitflag=${bits}" "osis${bits}bit=yes" "--enable-${bits}bit"
+}
+
+src_compile() {
+       emake -j1
+}
+
+src_install() {
+       emake -j1 DESTDIR="${D}" install
+       DOCS=( BUGS HACKERS.txt README.Unix README_SAFE TODO )
+       einstalldocs
+
+       newinitd "${FILESDIR}/rxstack-r1" rxstack
+}
+
+pkg_postinst() {
+       elog "You may want to run"
+       elog
+       elog "\trc-update add rxstack default"
+       elog
+       elog "to enable Rexx queues (optional)."
+}

Reply via email to