diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2021-04-18 10:32:55 +0200 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2021-04-18 10:32:55 +0200 |
commit | 5f62aad9242d7a8b39e271b89aaa2b1a3fe0077d (patch) | |
tree | 09092a084ef7f1231ec677fc4f41e493d32e46a0 /www-servers/moonbridge | |
parent | dev-java/xerces: min java 11 (diff) | |
download | gentoo-5f62aad9242d7a8b39e271b89aaa2b1a3fe0077d.tar.gz gentoo-5f62aad9242d7a8b39e271b89aaa2b1a3fe0077d.tar.bz2 gentoo-5f62aad9242d7a8b39e271b89aaa2b1a3fe0077d.zip |
www-servers/moonbridge: web server for lua application
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'www-servers/moonbridge')
-rw-r--r-- | www-servers/moonbridge/Manifest | 1 | ||||
-rw-r--r-- | www-servers/moonbridge/files/moonbridge-1.0.1-gentoo.patch | 19 | ||||
-rw-r--r-- | www-servers/moonbridge/metadata.xml | 8 | ||||
-rw-r--r-- | www-servers/moonbridge/moonbridge-1.0.1.ebuild | 49 |
4 files changed, 77 insertions, 0 deletions
diff --git a/www-servers/moonbridge/Manifest b/www-servers/moonbridge/Manifest new file mode 100644 index 000000000000..11fbf9d12ccd --- /dev/null +++ b/www-servers/moonbridge/Manifest @@ -0,0 +1 @@ +DIST moonbridge-v1.0.1.tar.gz 48837 BLAKE2B ec0f433c220627b38e610358dbdb4f6a7406fcf5fc10b52001387d1d8a7fd2b2ef8df66cded97159b0360512cbf409a672f4bbd7db9decdb32ef843194c7e6b4 SHA512 2beba27da8b4f5d760f620648be32acb85d57c2498edc9e97bf380d675397ccab7a74eec6630f91130f999d66dbf868bb7ff708a409aaf8840149cd05614e37b 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 +} |