public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Alfredo Tupone" <tupone@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: www-servers/moonbridge/files/, www-servers/moonbridge/
Date: Sun, 18 Apr 2021 08:33:17 +0000 (UTC)	[thread overview]
Message-ID: <1618734775.5f62aad9242d7a8b39e271b89aaa2b1a3fe0077d.tupone@gentoo> (raw)

commit:     5f62aad9242d7a8b39e271b89aaa2b1a3fe0077d
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 18 08:32:55 2021 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Sun Apr 18 08:32:55 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f62aad9

www-servers/moonbridge: web server for lua application

Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 www-servers/moonbridge/Manifest                    |  1 +
 .../moonbridge/files/moonbridge-1.0.1-gentoo.patch | 19 +++++++++
 www-servers/moonbridge/metadata.xml                |  8 ++++
 www-servers/moonbridge/moonbridge-1.0.1.ebuild     | 49 ++++++++++++++++++++++
 4 files changed, 77 insertions(+)

diff --git a/www-servers/moonbridge/Manifest b/www-servers/moonbridge/Manifest
new file mode 100644
index 00000000000..11fbf9d12cc
--- /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 00000000000..5691a16b47b
--- /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 00000000000..633b09e480d
--- /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 00000000000..206544b88f6
--- /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
+}


             reply	other threads:[~2021-04-18  8:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-18  8:33 Alfredo Tupone [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-07-11 19:27 [gentoo-commits] repo/gentoo:master commit in: www-servers/moonbridge/files/, www-servers/moonbridge/ Alfredo Tupone
2024-01-22 21:21 Alfredo Tupone
2024-02-20  7:40 Alfredo Tupone

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1618734775.5f62aad9242d7a8b39e271b89aaa2b1a3fe0077d.tupone@gentoo \
    --to=tupone@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox