summaryrefslogtreecommitdiff
path: root/www-servers/moonbridge
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-01-22 22:48:12 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-01-22 22:48:12 +0000
commitfe48e91039d2758f30166b25a5223a0f53433e24 (patch)
treef808585bb0157e83a5266e855e11b9875fcd2f8a /www-servers/moonbridge
parentce163dcd0944d81d8406c9532b457535efca7a6d (diff)
gentoo auto-resync : 22:01:2024 - 22:48:12
Diffstat (limited to 'www-servers/moonbridge')
-rw-r--r--www-servers/moonbridge/Manifest5
-rw-r--r--www-servers/moonbridge/files/moonbridge-1.0.1-gentoo.patch2
-rw-r--r--www-servers/moonbridge/files/moonbridge-1.1.2-gentoo.patch19
-rw-r--r--www-servers/moonbridge/moonbridge-1.1.3.ebuild55
4 files changed, 79 insertions, 2 deletions
diff --git a/www-servers/moonbridge/Manifest b/www-servers/moonbridge/Manifest
index a37e21de1616..e5fa0d3dd046 100644
--- a/www-servers/moonbridge/Manifest
+++ b/www-servers/moonbridge/Manifest
@@ -1,5 +1,8 @@
AUX moonbridge-1.0.1-fcntl.patch 376 BLAKE2B 80297bacc916893d089d8c656e3786770572b3983cb1e4531cf141deb7b79c2fd19fb0152468304fa6f2b080f37bf2b9055b8ef0739abd9fc20fb06d180f400a SHA512 d8dad8a24918d37e02b5129cd179e06e665d7a8ee469c07896cfb5c759646220f43feddf9dcd729d79eec5b102cdbdb9f039bb45aaa54b279b5d700f2a1b1374
-AUX moonbridge-1.0.1-gentoo.patch 1093 BLAKE2B ea5cc2b18b4c9ec2ba9776cb34f9d2b5990e98df09ae4ba2bbf3e1f881ceb7b076da77eed6ed2cb0ec5589e6906e926293c022bddfbb549c4c13baeaf587a956 SHA512 a3b1c0cabe61b4dc9aafc50707ffe3024fd865bbed975f4b94a4421101c6f9fc9cca105cc6b6ce8a2b09f404c41c4add815cc8333bfa8082abdb94aecf1071b4
+AUX moonbridge-1.0.1-gentoo.patch 1104 BLAKE2B 5719a0c3cd92ab14155e986f609d9e371df535961d01b84a73486a0563e29a4651414a1a47c2355e346879f197f75e9f092bb6cb97f5290f3c23a3b23f7e61c9 SHA512 f30be4a6b7ff4c146c26470cb48faee15d516c34f3f75dcbe8b211f6b7f8ffe1c2e6b34b1ec170d54218c94bdbc91c55483911a79deb1c4003d847d14fb4ffea
+AUX moonbridge-1.1.2-gentoo.patch 1071 BLAKE2B 999f45f582b6f962ab107a6fa3f7b4413d047dbc07d7010f36143b3cf3e003eb604e7dfcf391a59e6470e5563a1f88ca1ffd8118929ff4adfd5d0cc3f5e1f4d7 SHA512 6d4b837610fa950ff2c363c1730fca3bce04b287ee02f616a9984b333f5f49ba115fda819929b2d6f4b1acb0d4947c9d30ddcc2006449735be72770deccb6045
DIST moonbridge-v1.0.1.tar.gz 48837 BLAKE2B ec0f433c220627b38e610358dbdb4f6a7406fcf5fc10b52001387d1d8a7fd2b2ef8df66cded97159b0360512cbf409a672f4bbd7db9decdb32ef843194c7e6b4 SHA512 2beba27da8b4f5d760f620648be32acb85d57c2498edc9e97bf380d675397ccab7a74eec6630f91130f999d66dbf868bb7ff708a409aaf8840149cd05614e37b
+DIST moonbridge-v1.1.3.tar.gz 53146 BLAKE2B 5996fa05b16d96b17fc00c4aaefdadeaf82904008ab851b4dc755eaea8ad5fa0f5cf220e84fcb1294eadb151529816d837f6550cbd5b0ba50f9d800176acaf79 SHA512 25bedaa8b2eadea6936c237f295cb6bf28b911c2f280f6e755dbdfc38a5f379aabfce30b05aab58defe104aeda7031280eb68deed2cd89767d9760cbff494cfd
EBUILD moonbridge-1.0.1.ebuild 1121 BLAKE2B 05cb7400717865a2815d4f4d9f82cf80b856e46370e6a0bf385419d868512840d9a6dc7df594349be677b1f5e85a6b94a527cd2c8c495252666b24d1825a9562 SHA512 9f798268e47cd7784997d774999031ffd3c03b6b9ff1fdacbd9b1a59dfe98c94cc0a62112462a1d4367db942dd0eefe1c1ce6bc528fef4af3ad389da10a9e5ae
+EBUILD moonbridge-1.1.3.ebuild 1206 BLAKE2B ee31664a9be51f759345638e18048cacb53476a162c5a13d7ca5881724452a6759326d59bbdafcbc7e99e849b513f7c27776d9e6dac990875e401022c69e639d SHA512 a8826e3b22308e11009651775d96fe9f5b231e3795731c681365496f05f8361e3572b2ef6c83908b9d617f09e3a787e32af1aa33dd570bd47bdbffd64f417ef6
MISC metadata.xml 248 BLAKE2B 6cf7555626f83d30e661b4284812eeb1b1f2fe0c0a2c78e68382cf21165eee45a4027020d509af5b87814913ea7f16a555b7f0b7da174f49dbb0200bcb2511e2 SHA512 4680f3a309b5836b23c44b1578f14ad49f6ebc52413f42e1d1d4b91d7000081df3be0ca1054ed47cd9df06a1a6bb7cf54d184619efff7dedb82ec7b528ea2dd2
diff --git a/www-servers/moonbridge/files/moonbridge-1.0.1-gentoo.patch b/www-servers/moonbridge/files/moonbridge-1.0.1-gentoo.patch
index 5691a16b47b2..3c9516cf4033 100644
--- a/www-servers/moonbridge/files/moonbridge-1.0.1-gentoo.patch
+++ b/www-servers/moonbridge/files/moonbridge-1.0.1-gentoo.patch
@@ -5,7 +5,7 @@
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
++ $(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
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
+}