summaryrefslogtreecommitdiff
path: root/dev-lang/regina-rexx
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-05-09 00:01:03 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-05-09 00:01:03 +0100
commita0ce545d52f231499bf9f3644493113d8af58ec9 (patch)
tree4d67c09eed0c2ae28d1317f72d7f7b08b4f6aeea /dev-lang/regina-rexx
parent5181ced3f3566a9610b85922b083c8f84f20d78f (diff)
gentoo auto-resync : 09:05:2024 - 00:01:03
Diffstat (limited to 'dev-lang/regina-rexx')
-rw-r--r--dev-lang/regina-rexx/Manifest5
-rw-r--r--dev-lang/regina-rexx/files/regina-rexx-3.9.5-makefile.patch309
-rw-r--r--dev-lang/regina-rexx/files/rxstack-r114
-rw-r--r--dev-lang/regina-rexx/metadata.xml18
-rw-r--r--dev-lang/regina-rexx/regina-rexx-3.9.5.ebuild50
5 files changed, 396 insertions, 0 deletions
diff --git a/dev-lang/regina-rexx/Manifest b/dev-lang/regina-rexx/Manifest
new file mode 100644
index 000000000000..9e79c169c6a0
--- /dev/null
+++ b/dev-lang/regina-rexx/Manifest
@@ -0,0 +1,5 @@
+AUX regina-rexx-3.9.5-makefile.patch 13712 BLAKE2B e9a185bcd1f5d6b156a3807afb6b629c6dafaa7c7f4fe71c850fea16e4339c7664e7197e9d3ed71fd209a1eefbaa325f454a9b22b94251db6156640a1c44a340 SHA512 549f1e916784ce287c3d7b9773169f72f4a873c21388b07c86c44277d18e630278aa4b2862793f759a2233467d5940e2af15fd3b5a9fb8726cacf19dc44810a8
+AUX rxstack-r1 268 BLAKE2B 1bec862218eb0ef5087d5859f53adacf6fa22f3fc4b05a04ae89a861f32f800261e07620e1bab97a1aa7548f1232aad86367fc69c1696cd126edc4168064eb2b SHA512 823cc12df4986919b3177590b9da73c76474012361ff41eb93a04376df2efb3445b27da8931b9fdc5d960f5231a34ddaa7724d35d139eb2a1e340b025dfc460c
+DIST regina-rexx-3.9.5.tar.gz 2705272 BLAKE2B f26d4c7c582e1dafb97c2280651d07bba67549ccf9f58eb42e88e92ddbbb3184a36e5d3480977adccafdd1d9fdd1ca208950cd2700201600b6fbc0da7ebbd336 SHA512 bff25e5d218441306d021924582c19ed29c652b691e73988a4b53b9de4b51b758b1ee08704685967bd9bea469e93bf57b19875207fd4649d5af3e53dade39dd2
+EBUILD regina-rexx-3.9.5.ebuild 1022 BLAKE2B 7c6869488649b8c99d49f60db95787f1bd55f591147c6b955ccbce4937cda1ba93a32b9c52c15bd480005a31939304f06062d71ad4081ec4a243750192b5389c SHA512 28ae5704d6f9fef9b4fa3b9fb935d2a60227d8f112113e74735ad17dc5de3493b77efe30d52a8c746ddd6acd5e02247b1194d5ffa475b816743a2b27265dcf93
+MISC metadata.xml 699 BLAKE2B f65a811dab1dd79b1fc46b652c1ca73394cb992de4a25e47e9e349b4382fdb8f808aeb2a813a692fbe20c2818bae73a50cf40e0e8fed3226a6847c85cd3cfd0d SHA512 add25b14c4712e08a6d5495ede1f9f1969c15752175cc91df433a833abf6572ab59a5275655ffae3676d43588d18695c8bcb24a758be5f3c0762cb695e4c72e9
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>s390@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..6783de3c6f87
--- /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/project/${PN}/${PN}/${PV}/${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)."
+}