summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2024-01-22 22:20:39 +0100
committerAlfredo Tupone <tupone@gentoo.org>2024-01-22 22:20:57 +0100
commit1c0e6b3a8d3b8691ee1873b34788d8b44e4b5708 (patch)
tree955c9a7f4d9fc891827dd2b617481a470b92db80 /www-servers
parentnet-libs/nodejs: drop 16.20.2 (diff)
downloadgentoo-1c0e6b3a8d3b8691ee1873b34788d8b44e4b5708.tar.gz
gentoo-1c0e6b3a8d3b8691ee1873b34788d8b44e4b5708.tar.bz2
gentoo-1c0e6b3a8d3b8691ee1873b34788d8b44e4b5708.zip
www-servers/moonbridge: add 1.1.3
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'www-servers')
-rw-r--r--www-servers/moonbridge/Manifest1
-rw-r--r--www-servers/moonbridge/files/moonbridge-1.1.2-gentoo.patch19
-rw-r--r--www-servers/moonbridge/moonbridge-1.1.3.ebuild55
3 files changed, 75 insertions, 0 deletions
diff --git a/www-servers/moonbridge/Manifest b/www-servers/moonbridge/Manifest
index 11fbf9d12ccd..5605e92b5de8 100644
--- a/www-servers/moonbridge/Manifest
+++ b/www-servers/moonbridge/Manifest
@@ -1 +1,2 @@
DIST moonbridge-v1.0.1.tar.gz 48837 BLAKE2B ec0f433c220627b38e610358dbdb4f6a7406fcf5fc10b52001387d1d8a7fd2b2ef8df66cded97159b0360512cbf409a672f4bbd7db9decdb32ef843194c7e6b4 SHA512 2beba27da8b4f5d760f620648be32acb85d57c2498edc9e97bf380d675397ccab7a74eec6630f91130f999d66dbf868bb7ff708a409aaf8840149cd05614e37b
+DIST moonbridge-v1.1.3.tar.gz 53146 BLAKE2B 5996fa05b16d96b17fc00c4aaefdadeaf82904008ab851b4dc755eaea8ad5fa0f5cf220e84fcb1294eadb151529816d837f6550cbd5b0ba50f9d800176acaf79 SHA512 25bedaa8b2eadea6936c237f295cb6bf28b911c2f280f6e755dbdfc38a5f379aabfce30b05aab58defe104aeda7031280eb68deed2cd89767d9760cbff494cfd
diff --git a/www-servers/moonbridge/files/moonbridge-1.1.2-gentoo.patch b/www-servers/moonbridge/files/moonbridge-1.1.2-gentoo.patch
new file mode 100644
index 000000000000..bef63d638cf0
--- /dev/null
+++ b/www-servers/moonbridge/files/moonbridge-1.1.2-gentoo.patch
@@ -0,0 +1,19 @@
+--- a/Makefile 2024-01-22 21:51:54.311826889 +0100
++++ b/Makefile 2024-01-22 21:56:48.849198857 +0100
+@@ -53,13 +53,13 @@
+ all:: moonbridge moonbridge_io.so
+
+ moonbridge: moonbridge.c moonbridge_io.h moonbridge_io.o
+- cc -Wall -Wno-unused-result -O2 -Wl,-E -I $(LUA_INCLUDE) -L $(LUA_LIBDIR) -o moonbridge $(MOONBR_LUA_PATH_DEFINE) $(MOONBR_LUA_CPATH_DEFINE) moonbridge.c -lm -l$(LUA_LIBRARY) $(UTIL_FLAGS) moonbridge_io.o
++ $(CC) -Wall -Wno-unused-result $(CFLAGS) -Wl,-E -I $(LUA_INCLUDE) -L $(LUA_LIBDIR) -o moonbridge $(MOONBR_LUA_PATH_DEFINE) $(MOONBR_LUA_CPATH_DEFINE) moonbridge.c $(LUA_LIBRARY) $(UTIL_FLAGS) moonbridge_io.o $(LDFLAGS)
+
+ moonbridge_io.o: moonbridge_io.c moonbridge_io.h
+- cc -c -Wall -O2 -fPIC -I $(LUA_INCLUDE) -o moonbridge_io.o moonbridge_io.c
++ $(CC) -c -Wall $(CFLAGS) -fPIC -I $(LUA_INCLUDE) -o moonbridge_io.o moonbridge_io.c
+
+ moonbridge_io.so: moonbridge_io.o
+- cc -shared -o moonbridge_io.so moonbridge_io.o $(UTIL_FLAGS)
++ $(CC) -shared -o moonbridge_io.so moonbridge_io.o $(UTIL_FLAGS) $(LUA_LIBRARY)
+
+ freebsd_with_tls::
+ #TODO
diff --git a/www-servers/moonbridge/moonbridge-1.1.3.ebuild b/www-servers/moonbridge/moonbridge-1.1.3.ebuild
new file mode 100644
index 000000000000..99c141eedf3f
--- /dev/null
+++ b/www-servers/moonbridge/moonbridge-1.1.3.ebuild
@@ -0,0 +1,55 @@
+# Copyright 2021-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LUA_COMPAT=( lua5-{2,3} )
+
+inherit lua-single toolchain-funcs
+
+MYP=${PN}-v${PV}
+
+DESCRIPTION="Network Server for Lua Applications"
+HOMEPAGE="https://www.public-software-group.org/moonbridge"
+SRC_URI="https://www.public-software-group.org/pub/projects/${PN}/v${PV}/${MYP}.tar.gz
+ https://dev.gentoo.org/~tupone/distfiles/${MYP}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+DEPEND="
+ ${LUA_DEPS}
+ dev-libs/libbsd"
+RDEPEND="${DEPEND}"
+BDEPEND="dev-build/pmake
+ sys-apps/lsb-release
+ virtual/pkgconfig"
+
+S="${WORKDIR}"/${MYP}
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.1.2-gentoo.patch
+ "${FILESDIR}"/${PN}-1.0.1-fcntl.patch
+)
+
+DOCS=( README reference.txt )
+
+src_compile() {
+ pmake CC=$(tc-getCC) LUA_INCLUDE="$(lua_get_include_dir)" \
+ MOONBR_LUA_PATH=/usr/lib/moonbridge/?.lua \
+ LUA_LIBRARY="$(lua_get_LIBS)" LUA_LIBDIR=/usr/$(get_libdir) \
+ all || die
+}
+
+src_install() {
+ einstalldocs
+ docinto examples
+ dodoc example_*
+ dodoc helloworld.lua
+ dobin ${PN}
+ insinto /usr/lib/${PN}
+ doins moonbridge_http.lua
+ docompress -x /usr/share/doc/${PF}/examples
+}