summaryrefslogtreecommitdiff
path: root/net-misc/lambdamoo
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-06-09 00:08:14 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-06-09 00:08:14 +0100
commit4fe228ee9aa3b9b825d54ace549a5517e153e8bd (patch)
tree90a261e3ea59b80722d70d3c42f3e40d16c9f8dd /net-misc/lambdamoo
parentadc09cc4e6ebf7931735c02c0c272b4b885c2b30 (diff)
gentoo auto-resync : 09:06:2024 - 00:08:13
Diffstat (limited to 'net-misc/lambdamoo')
-rw-r--r--net-misc/lambdamoo/Manifest3
-rw-r--r--net-misc/lambdamoo/files/lambdamoo-1.8.1-C99-configure.patch111
-rw-r--r--net-misc/lambdamoo/files/lambdamoo-1.8.1-respect-cflags.patch24
-rw-r--r--net-misc/lambdamoo/lambdamoo-1.8.1-r4.ebuild43
4 files changed, 181 insertions, 0 deletions
diff --git a/net-misc/lambdamoo/Manifest b/net-misc/lambdamoo/Manifest
index c2d9ac35dc63..0ad4ab2ca346 100644
--- a/net-misc/lambdamoo/Manifest
+++ b/net-misc/lambdamoo/Manifest
@@ -1,6 +1,9 @@
AUX 1.8.1-enable-outbound.patch 451 BLAKE2B 71c9fa7921e258df1b785e7b5d92eed3b38095a0c49bee5edc81a76737262e536239ede374f9d6a56a96d0d0241cb63dc5d1c758b9ed7f5559a06cc205b50dba SHA512 16aec9e348a2b6ae4d773f12d007fda90d38c0d7113120fcfd63d44ffeb8f2fbfbddd428e3f091581e054cf2c650b92d737c5c63178c6db526f7e2bff9a9c712
+AUX lambdamoo-1.8.1-C99-configure.patch 3450 BLAKE2B 2024e95d2c77c5f9e3b96efee38565e2e62731333f29e68802fb4accfce31bbb2fdfc4dc655023162c4f111d79db0883ab6a005493a6436368ad8360317693e8 SHA512 935fb32b53543b0e20d82fee3262bbddeb32628679d8a863bdc5821b925b9871837c73595ab437a802efb6d24697171a739fc27c035d034b0ec69b9767f3cf89
+AUX lambdamoo-1.8.1-respect-cflags.patch 838 BLAKE2B f2f20e574b392e2ef4f22647cd51eab2fc624f8f606bb61786e5e19c3322e817273e6cc131243688e3cc0d2158fb68c239123d2e04822870a61be7cb91f24dd7 SHA512 ae02072b12224bbb7b48da917494cd4196cd8a14ef175c4e593a447543d97b3e407b8955c201c8da5e370a0bab63020e3fe51acb8a078a2aeec4f4663581e491
AUX lambdamoo.conf 185 BLAKE2B d681b52af98a278c9ee4c4485afcd0919f952e5a5cd1740a4365af233f60c273833c3c35d9a65f4e1e48ebe99d93e9c0ee307ed8b052b97e41abdd6d8e4a3bd2 SHA512 fa96885e674b571c6eccb682cb4ab47d09a723a1dd82d6a11a42e5760c2b53ab24919627823ab9c4a2aeb5d3d2d41984df3eb9f3de382164b062e024639ba2b2
AUX lambdamoo.rc 1145 BLAKE2B c6b5b7d25644c0a2832144a6c8b6be3af082d9bac30f5916c84a3ecac983556095018cbbbdbd138c046927873c9e52cbb02560ef1b84a553b666f0c5514534c3 SHA512 ce0d41459aac2249b2982d5bc174810e2fd5a77ad5c5f102929c350306bb799cdd9582926dda42c062d7f60b77ae59dd26d7f32d249193d13e9b9feb888ebd96
DIST LambdaMOO-1.8.1.tar.gz 363803 BLAKE2B 0bca69eff651911d97f1de66c93aaa0ebb14e199277bb83171e0855313291501ef501272b58a0524da1e3764359f0c6b79377d021db0b45097ed29674793024e SHA512 1629375d74c67851e20ac007411261bb24c642249e4ede0415580b5c87e0df77b23e8a70b249f734ad3b5bc3b8859b5f0162dc55f69b9756ce2afa6a9553b7fc
EBUILD lambdamoo-1.8.1-r3.ebuild 961 BLAKE2B b1d1b2c294cf1f88400079c73765beb5e99cbe089fc56e8c837b06bcfe438069377eba34dd781e51ce9014602db6cb5dad904814f4ad5362d7721dd46df660f3 SHA512 72b6344b167f5fa2a89ba64f4a166056c0da4270cf55567e44975407569836cc0868ad14d94a064c22a19df32bc22f0f87774487a0ecbdaefeba48c007b67e1a
+EBUILD lambdamoo-1.8.1-r4.ebuild 942 BLAKE2B c22dbe0d5b6c695af6b87500b5846047ba12fa58b3291a5a778c5719119fd003d2b6220ff99a976e29f009a79bfd2a28ef17a4ed817a926b5a9aff5acfa8d36d SHA512 3afaf53277d2b31be539fb37632b2069c44227986a8205465551f8ec2813ac3899e871fe6159f35751c53b9f787b43539b14d37cd0acf6cb4c31d437608e6896
MISC metadata.xml 247 BLAKE2B 26c6f1781285d6a2e474461f846bb7cf7438d7693d9ff6dd275aea80494abb0852b86b0eaab76208df608b40743d41403a2b0bfbe6d0f56daa18ef871cb52f92 SHA512 d155b4a71540ed996da9bf8aaf79560c81d07c3248bf7329c235fb501a115e8aba1b2814fdf051aa5e81816b16477b250d231b9e2e5f8c38b7116f496a4e94df
diff --git a/net-misc/lambdamoo/files/lambdamoo-1.8.1-C99-configure.patch b/net-misc/lambdamoo/files/lambdamoo-1.8.1-C99-configure.patch
new file mode 100644
index 000000000000..972bf918db06
--- /dev/null
+++ b/net-misc/lambdamoo/files/lambdamoo-1.8.1-C99-configure.patch
@@ -0,0 +1,111 @@
+Original minimal fix for bug https://bugs.gentoo.org/927734
+with it lambdaroo starts compiling
+diff -ur MOO-1.8.1.orig/configure.in MOO-1.8.1/configure.in
+--- a/configure.in 2024-04-01 07:02:38.948009581 +0000
++++ b/configure.in 2024-04-01 07:04:19.706417934 +0000
+@@ -260,7 +260,8 @@
+ SAVECC="$CC"
+ CC="$CC $opt"
+ AC_TEST_PROGRAM([
+-int main(int argc, char *argv) { void *ptr; exit(0); }
++#include <stdlib.h>
++int main(int argc, char **argv) { void *ptr; exit(0); }
+ ],
+ [have_ansi=1
+ break],
+diff -ur MOO-1.8.1.orig/config.h.in MOO-1.8.1/config.h.in
+--- a/config.h.in 2024-04-01 07:11:20.263972630 +0000
++++ b/config.h.in 2024-04-01 07:13:06.909341833 +0000
+@@ -253,6 +253,7 @@
+ */
+
+ #include <limits.h>
++#include <string.h>
+
+ #if INT_MAX == 2147483647
+ typedef int int32;
+fix for old name of configure.in
+--- a/Makefile.in 2024-05-09 05:39:45.019672388 -0000
++++ b/Makefile.in 2024-05-09 05:40:41.162384171 -0000
+@@ -69,7 +69,7 @@
+
+ DISTFILES = $(SRCS) Makefile.in restart restart.sh \
+ Minimal.db README.Minimal \
+- ChangeLog.txt README configure.in configure config.h.in \
++ ChangeLog.txt README configure.ac configure config.h.in \
+ MOOCodeSequences.txt AddingNewMOOTypes.txt pgperf aclocal.m4
+
+ COBJS = $(CSRCS:.c=.o)
+@@ -94,7 +94,7 @@
+ restart:
+ touch restart
+
+-configure: configure.in
++configure: configure.ac
+ # autoconf
+ @echo "Not running autoconf; you must do this by hand."
+ touch configure
+QA fixes from Sam, modified for configure.in, as they are applied
+before renaming
+https://github.com/gentoo/gentoo/pull/36033#issuecomment-2101077890
+diff --git a/configure.in b/configure.in
+index 685bdfe..24cfe64 100644
+--- a/configure.in
++++ b/configure.in
+@@ -381,8 +381,10 @@ dnl ***************************************************************************
+ echo "checking whether or not fstat() can tell how much data is in a FIFO"
+ AC_TEST_PROGRAM([#include <sys/types.h>
+ #include <sys/stat.h>
++#include <stdlib.h>
+ #include <fcntl.h>
+-main()
++#include <unistd.h>
++int main()
+ {
+ #ifdef NeXT
+ /* The NeXT claims to have FIFOs, but using them panics the kernel... */
+@@ -407,13 +409,15 @@ AC_TEST_PROGRAM([#include <sys/types.h>
+ #include <sys/time.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
++#include <stdlib.h>
++#include <unistd.h>
+ #ifndef FD_ZERO
+ #define NFDBITS (sizeof(fd_set)*8)
+ #define FD_ZERO(p) bzero((char *)(p), sizeof(*(p)))
+ #define FD_SET(n, p) ((p)->fds_bits[0] |= (1L<<((n)%NFDBITS)))
+ #define FD_ISSET(n, p) ((p)->fds_bits[0] & (1L<<((n)%NFDBITS)))
+ #endif /* FD_ZERO */
+-main()
++int main()
+ {
+ #ifdef NeXT
+ /* The NeXT claims to have FIFOs, but using them panics the kernel... */
+@@ -443,7 +447,9 @@ AC_TEST_PROGRAM([#include <sys/types.h>
+ #include <poll.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
+-main()
++#include <stdlib.h>
++#include <unistd.h>
++int main()
+ {
+ int rfd, wfd, result; struct pollfd fds[1];
+ unlink("/tmp/conftest-fifo");
+@@ -461,11 +467,14 @@ main()
+ dnl ***************************************************************************
+ echo checking whether POSIX-style non-blocking I/O works
+ AC_TEST_PROGRAM([#include <sys/types.h>
++#include <sys/stat.h>
+ #include <errno.h>
+ #include <fcntl.h>
+ #include <signal.h>
+-handler(int sig) { }
+-main ()
++#include <stdlib.h>
++#include <unistd.h>
++void handler(int sig) { return; }
++int main ()
+ { /* Testing a POSIX feature, so assume FIFOs */
+ #ifdef NeXT
+ /* The NeXT claims to have FIFOs, but using them panics the kernel... */
diff --git a/net-misc/lambdamoo/files/lambdamoo-1.8.1-respect-cflags.patch b/net-misc/lambdamoo/files/lambdamoo-1.8.1-respect-cflags.patch
new file mode 100644
index 000000000000..2ebfdadb59c9
--- /dev/null
+++ b/net-misc/lambdamoo/files/lambdamoo-1.8.1-respect-cflags.patch
@@ -0,0 +1,24 @@
+was sed -i Makefile.in -e '/ -o /s|$(CFLAGS)|& $(LDFLAGS)|g'
+--- a/Makefile.in 2024-05-09 05:12:18.249018601 -0000
++++ b/Makefile.in 2024-05-09 05:12:20.497004963 -0000
+@@ -79,16 +79,16 @@
+ OBJS = $(COBJS) $(YOBJS)
+
+ moo: $(OBJS)
+- $(CC) $(CFLAGS) $(OBJS) $(LIBRARIES) -o $@
++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBRARIES) -o $@
+
+ pure_moo: moo
+- purify $(CC) $(CFLAGS) $(OBJS) $(LIBRARIES) -o $@
++ purify $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBRARIES) -o $@
+
+ client_bsd: client_bsd.o
+- $(CC) $(CFLAGS) client_bsd.o $(LIBRARIES) -o $@
++ $(CC) $(CFLAGS) $(LDFLAGS) client_bsd.o $(LIBRARIES) -o $@
+
+ client_sysv: client_sysv.o
+- $(CC) $(CFLAGS) client_sysv.o $(LIBRARIES) -o $@
++ $(CC) $(CFLAGS) $(LDFLAGS) client_sysv.o $(LIBRARIES) -o $@
+
+ # This rule gets around some "make"s' desire to `derive' it from `restart.sh'.
+ restart:
diff --git a/net-misc/lambdamoo/lambdamoo-1.8.1-r4.ebuild b/net-misc/lambdamoo/lambdamoo-1.8.1-r4.ebuild
new file mode 100644
index 000000000000..6b2d17764c00
--- /dev/null
+++ b/net-misc/lambdamoo/lambdamoo-1.8.1-r4.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+
+inherit autotools toolchain-funcs
+
+DESCRIPTION="networked mud that can be used for different types of collaborative software"
+HOMEPAGE="https://sourceforge.net/projects/lambdamoo/"
+SRC_URI="https://downloads.sourceforge.net/lambdamoo/LambdaMOO-${PV}.tar.gz"
+S=${WORKDIR}/MOO-${PV}
+
+LICENSE="LambdaMOO GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~sparc ~x86"
+
+DEPEND="app-alternatives/yacc"
+
+PATCHES=(
+ "${FILESDIR}/${PV}-enable-outbound.patch"
+ "${FILESDIR}/${P}-C99-configure.patch"
+ "${FILESDIR}/${P}-respect-cflags.patch"
+)
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" \
+ CFLAGS="${CFLAGS} -DHAVE_MKFIFO=1"
+}
+
+src_install() {
+ dosbin moo
+ insinto /usr/share/${PN}
+ doins Minimal.db
+ dodoc *.txt README*
+
+ newinitd "${FILESDIR}"/lambdamoo.rc ${PN}
+ newconfd "${FILESDIR}"/lambdamoo.conf ${PN}
+}