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: Mon, 22 Jan 2024 21:21:14 +0000 (UTC)	[thread overview]
Message-ID: <1705958457.1c0e6b3a8d3b8691ee1873b34788d8b44e4b5708.tupone@gentoo> (raw)

commit:     1c0e6b3a8d3b8691ee1873b34788d8b44e4b5708
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 22 21:20:39 2024 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Mon Jan 22 21:20:57 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c0e6b3a

www-servers/moonbridge: add 1.1.3

Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 www-servers/moonbridge/Manifest                    |  1 +
 .../moonbridge/files/moonbridge-1.1.2-gentoo.patch | 19 ++++++++
 www-servers/moonbridge/moonbridge-1.1.3.ebuild     | 55 ++++++++++++++++++++++
 3 files changed, 75 insertions(+)

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
+}


             reply	other threads:[~2024-01-22 21:21 UTC|newest]

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