summaryrefslogtreecommitdiff
path: root/dev-lang/regina-rexx
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-12-13 02:01:50 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-12-13 02:01:50 +0000
commit2a3e0d61b3d88306b6fae46756f9ba7d230222ae (patch)
treea0d3259dd259861a49a2d3e6e9220beaa8ec39c2 /dev-lang/regina-rexx
parent39c32f4d5dca9f6293fccb69e9d50baf494c8de4 (diff)
gentoo auto-resync : 13:12:2024 - 02:01:50
Diffstat (limited to 'dev-lang/regina-rexx')
-rw-r--r--dev-lang/regina-rexx/Manifest3
-rw-r--r--dev-lang/regina-rexx/files/regina-rexx-3.9.6-makefile.patch211
-rw-r--r--dev-lang/regina-rexx/regina-rexx-3.9.6.ebuild54
3 files changed, 268 insertions, 0 deletions
diff --git a/dev-lang/regina-rexx/Manifest b/dev-lang/regina-rexx/Manifest
index be132fa701cd..c4443c00ef14 100644
--- a/dev-lang/regina-rexx/Manifest
+++ b/dev-lang/regina-rexx/Manifest
@@ -1,5 +1,8 @@
AUX regina-rexx-3.9.5-makefile.patch 13712 BLAKE2B e9a185bcd1f5d6b156a3807afb6b629c6dafaa7c7f4fe71c850fea16e4339c7664e7197e9d3ed71fd209a1eefbaa325f454a9b22b94251db6156640a1c44a340 SHA512 549f1e916784ce287c3d7b9773169f72f4a873c21388b07c86c44277d18e630278aa4b2862793f759a2233467d5940e2af15fd3b5a9fb8726cacf19dc44810a8
+AUX regina-rexx-3.9.6-makefile.patch 6193 BLAKE2B 06259cfd1621b9f4fa5749db287e3c5d12dcfa120f17f1dc83580e2205cacf937026b6d54c2f2a3d7b91074162225cb163f8450acdeb529522b2a1b2b0c53f2b SHA512 5ac95e0f44c7f64914e9479d7926c53de9a6439fb0267135bc9c2c6711d95aa552c899b4f4046fce83a1ed809f979ad36e7e711ffc37b5d81e471aa6863f0fb0
AUX rxstack-r1 268 BLAKE2B 1bec862218eb0ef5087d5859f53adacf6fa22f3fc4b05a04ae89a861f32f800261e07620e1bab97a1aa7548f1232aad86367fc69c1696cd126edc4168064eb2b SHA512 823cc12df4986919b3177590b9da73c76474012361ff41eb93a04376df2efb3445b27da8931b9fdc5d960f5231a34ddaa7724d35d139eb2a1e340b025dfc460c
DIST regina-rexx-3.9.5.tar.gz 2705272 BLAKE2B f26d4c7c582e1dafb97c2280651d07bba67549ccf9f58eb42e88e92ddbbb3184a36e5d3480977adccafdd1d9fdd1ca208950cd2700201600b6fbc0da7ebbd336 SHA512 bff25e5d218441306d021924582c19ed29c652b691e73988a4b53b9de4b51b758b1ee08704685967bd9bea469e93bf57b19875207fd4649d5af3e53dade39dd2
+DIST regina-rexx-3.9.6.tar.gz 2705800 BLAKE2B d869f9285e0fa0810b690d97932059aa6d3aaf0d99355bad18ffd480cc322a076928d08fce03893124a0ebd330a55ac9b6c580657e92601d8204a2a0b3c15406 SHA512 17f02afea59daa994f4ff1499914b80ed8da8109237e02ed18ab9194e532427f2f7f724be0e3345ca133e19a0501f7457f6248caf5de2ab158d17cb0e996db6a
EBUILD regina-rexx-3.9.5.ebuild 1020 BLAKE2B 3ba3bce891f3b99b519d85ab44f8b8cd1bab1b257386399967e7920873f193a638c29b92a430d124e8ec70fdf62a1eca33aed5bf6ade57728c0ddef77e5c80d5 SHA512 1f0218ae7dde15686510bec9b9b84d339153250e4809db14784452b1986739e17eae302169fe271e69775d6695c658757bd11d9fd29a8b7ad1d2bef430dd83b8
+EBUILD regina-rexx-3.9.6.ebuild 1390 BLAKE2B 85c803f39e702a619c0c8b294adb6e7237809907d0f049b8d7b0a58b7830dc947b810017938a302defa873a7d93fe0a3c8b57882e731f129d70a250ed3123b78 SHA512 1c17d3660610ea1b88794dea3aff91bec9d7c16e3d4502ad8e7c27e001bf0e1c56df674924ff6e3a7499ea1e87e5a1211337dab856b738e28eca637d2101fd2f
MISC metadata.xml 843 BLAKE2B c4e0e30ab78a6984374059eca8588e03111d6164aced096017be50e0324ffef411a7bdb731712f12bb48142e5c0430d6ddae4a2e701225bf2a3669ce062660d0 SHA512 adf11a12bd49b8a1690263f8d21fba9aa3a4038074a11ee0c351803be8980608f14790706b1d95cd48c51f67e6fe7a46730dd86c2790432acbb2e39393b9e0be
diff --git a/dev-lang/regina-rexx/files/regina-rexx-3.9.6-makefile.patch b/dev-lang/regina-rexx/files/regina-rexx-3.9.6-makefile.patch
new file mode 100644
index 000000000000..7286c0df1d19
--- /dev/null
+++ b/dev-lang/regina-rexx/files/regina-rexx-3.9.6-makefile.patch
@@ -0,0 +1,211 @@
+diff --git a/Makefile.in b/Makefile.in
+index 4ce427b..c2278ad 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
+
+@@ -1070,11 +1070,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
+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 993daf2..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" -o "$mach" = "aarch64" -o "$mach" = "ppc64le"; 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* | *-netbsd*)
+- 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 bed60d6..ffc5b83 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/regina-rexx-3.9.6.ebuild b/dev-lang/regina-rexx/regina-rexx-3.9.6.ebuild
new file mode 100644
index 000000000000..03382912c5a1
--- /dev/null
+++ b/dev-lang/regina-rexx/regina-rexx-3.9.6.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools flag-o-matic 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.6-makefile.patch" )
+
+src_prepare() {
+ default
+ mv configure.{in,ac} || die
+ sed -i "s/\$(INSTALL) -s/\$(INSTALL)/g" Makefile.in || die
+ sed -E -i "s/\\$\(INSTALL\) -m ([0-9]{3}) -c/\$\(INSTALL\) -m \1 -c -D/g" Makefile.in || die
+ sed -E -i "s/\\$\(INSTALL\) -c -m ([0-9]{3})/\$\(INSTALL\) -c -m \1 -D/g" Makefile.in || die
+ eautoconf
+}
+
+src_configure() {
+ append-cflags "$(test-flags-CC -std=gnu17)" # bug 944237
+ local bits="$(( "$(tc-get-ptr-size)" * 8))"
+ econf "bitflag=${bits}" "osis${bits}bit=yes" "--enable-${bits}bit"
+}
+
+src_compile() {
+ emake -j1 CC="$(tc-getCC)"
+}
+
+src_install() {
+ emake -j1 INSTALL="$(command -v install)" 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)."
+}