summaryrefslogtreecommitdiff
path: root/www-servers/moonbridge
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-04-28 20:21:43 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-04-28 20:21:43 +0100
commit40aaaa64e86ba6710bbeb31c4615a6ce80e75e11 (patch)
tree758c221bad35c9288d0bd6df9c7dfc226728e52c /www-servers/moonbridge
parent8d5dbd847cbc704a6a06405856e94b461011afe3 (diff)
gentoo resync : 28.04.2021
Diffstat (limited to 'www-servers/moonbridge')
-rw-r--r--www-servers/moonbridge/Manifest4
-rw-r--r--www-servers/moonbridge/files/moonbridge-1.0.1-gentoo.patch19
-rw-r--r--www-servers/moonbridge/metadata.xml8
-rw-r--r--www-servers/moonbridge/moonbridge-1.0.1.ebuild49
4 files changed, 80 insertions, 0 deletions
diff --git a/www-servers/moonbridge/Manifest b/www-servers/moonbridge/Manifest
new file mode 100644
index 000000000000..6d617ccab457
--- /dev/null
+++ b/www-servers/moonbridge/Manifest
@@ -0,0 +1,4 @@
+AUX moonbridge-1.0.1-gentoo.patch 1093 BLAKE2B ea5cc2b18b4c9ec2ba9776cb34f9d2b5990e98df09ae4ba2bbf3e1f881ceb7b076da77eed6ed2cb0ec5589e6906e926293c022bddfbb549c4c13baeaf587a956 SHA512 a3b1c0cabe61b4dc9aafc50707ffe3024fd865bbed975f4b94a4421101c6f9fc9cca105cc6b6ce8a2b09f404c41c4add815cc8333bfa8082abdb94aecf1071b4
+DIST moonbridge-v1.0.1.tar.gz 48837 BLAKE2B ec0f433c220627b38e610358dbdb4f6a7406fcf5fc10b52001387d1d8a7fd2b2ef8df66cded97159b0360512cbf409a672f4bbd7db9decdb32ef843194c7e6b4 SHA512 2beba27da8b4f5d760f620648be32acb85d57c2498edc9e97bf380d675397ccab7a74eec6630f91130f999d66dbf868bb7ff708a409aaf8840149cd05614e37b
+EBUILD moonbridge-1.0.1.ebuild 1045 BLAKE2B ffe9d039fc72fc8b0b4689f4bb9da54bd9e1babdb544c05c628a557d6e2564355c547c3a2f061ad31cd37e94baecba6cf21b386533afdaeb2d6e4e760d54d5e6 SHA512 d70f93e1f1055895623522fc8d6cd9c40b7ea70d9780f1e029751a058f30603c1455535e9ac94019a05b075c5603c96eed0e19970f4acc62682e16cfd53aebc7
+MISC metadata.xml 247 BLAKE2B 93b9b87f9c12d46be11f0300dc77582b56ff89eb92f5d48f9fe7a68fda6f5124553440611219b18caefd2468859745ddd09fb4a0359ce7550ce901505688aaba SHA512 70716ee2f6b85358bae9fde979ad9d5a60541209b385198044403477d1374d0b1a2516e814951c21fce41f1cac38711e5c6fd95706097da8e26cac421af466bb
diff --git a/www-servers/moonbridge/files/moonbridge-1.0.1-gentoo.patch b/www-servers/moonbridge/files/moonbridge-1.0.1-gentoo.patch
new file mode 100644
index 000000000000..5691a16b47b2
--- /dev/null
+++ b/www-servers/moonbridge/files/moonbridge-1.0.1-gentoo.patch
@@ -0,0 +1,19 @@
+--- a/Makefile 2021-04-14 20:14:37.824271249 +0200
++++ b/Makefile 2021-04-14 20:15:18.498590911 +0200
+@@ -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
+
+ 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
+- ld -shared -o moonbridge_io.so moonbridge_io.o $(UTIL_FLAGS)
++ $(CC) -shared -o moonbridge_io.so moonbridge_io.o $(UTIL_FLAGS) $(LUA_LIBRARY)
+
+ clean::
+ rm -f moonbridge moonbridge_io.o moonbridge_io.so
diff --git a/www-servers/moonbridge/metadata.xml b/www-servers/moonbridge/metadata.xml
new file mode 100644
index 000000000000..633b09e480d2
--- /dev/null
+++ b/www-servers/moonbridge/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>tupone@gentoo.org</email>
+ <name>Alfredo Tupone</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/www-servers/moonbridge/moonbridge-1.0.1.ebuild b/www-servers/moonbridge/moonbridge-1.0.1.ebuild
new file mode 100644
index 000000000000..206544b88f68
--- /dev/null
+++ b/www-servers/moonbridge/moonbridge-1.0.1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LUA_COMPAT=( lua5-{2,3} )
+
+inherit lua-single
+
+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"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+DEPEND="
+ ${LUA_DEPS}
+ dev-libs/libbsd"
+RDEPEND="${DEPEND}"
+BDEPEND="sys-devel/pmake
+ virtual/pkgconfig"
+
+S="${WORKDIR}"/${MYP}
+
+PATCHES=( "${FILESDIR}"/${P}-gentoo.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)
+}
+
+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
+}