summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2023-12-28 21:21:24 +0100
committerAlfredo Tupone <tupone@gentoo.org>2023-12-28 21:21:58 +0100
commit1352c66d868589de6788315dc04d89d8a54306e5 (patch)
tree74c9d8c1013f0a8bbbbca58895699947ac7f154c /www-apps/webmcp
parentkde-plasma/plasma-activities-stats: Stabilize 5.113.0 arm64, #920698 (diff)
downloadgentoo-1352c66d868589de6788315dc04d89d8a54306e5.tar.gz
gentoo-1352c66d868589de6788315dc04d89d8a54306e5.tar.bz2
gentoo-1352c66d868589de6788315dc04d89d8a54306e5.zip
www-apps/webmcp: add 2.2.1
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'www-apps/webmcp')
-rw-r--r--www-apps/webmcp/Manifest1
-rw-r--r--www-apps/webmcp/files/webmcp-2.2.1-gentoo.patch18
-rw-r--r--www-apps/webmcp/webmcp-2.2.1.ebuild47
3 files changed, 66 insertions, 0 deletions
diff --git a/www-apps/webmcp/Manifest b/www-apps/webmcp/Manifest
index 614c03a9f551..296175a21f4d 100644
--- a/www-apps/webmcp/Manifest
+++ b/www-apps/webmcp/Manifest
@@ -1,2 +1,3 @@
DIST webmcp-v1.2.6.tar.gz 132283 BLAKE2B ed5539b91eeb809a1e19b98f2dc8888c055ec547c95c53c0ea9232531bf9b8432ba6a0ad566a1d2fecbdcc056a52e42e99b973741fc44f923ea88369393c5ade SHA512 a233c312f85851c690f9b020e5df1fffb548c708199279021f384a36cf6e2b73a9b7bc2343c886ccc0e18aecf6d205e2a699fa2398b9bf0da587bc4f8a8f8556
DIST webmcp-v2.1.0.tar.gz 145388 BLAKE2B 233b21ccc2c6ebcd32b847ee49ddf9ced5c15b79a860b484c9e3ad088f9996e9bcc56b43c34a558d134157800f19a9b586c9dbcee3ba61a2252178d0cf6b7cd7 SHA512 6698fab9c23d2fb4122bd79659babbcfed8a98515764deb7fa1519abb3c3d783ccec6fd2f23fc947e5e95cafdd066dde4518eff885cc98f36008785fcc45677f
+DIST webmcp-v2.2.1.tar.gz 158068 BLAKE2B a1e1ef07aadbb5dc3ab93d993f2f9cff005c404f489ac0eae736f149a20d1376f9b1013ddbcdc831089fdd0d684693a9dbc01b5bdd52e65e814bb0fb9cd254cf SHA512 98b4eb41e312af5733ebb7cd20af7a721dc6392e5345b650706e9747c228ee0dccafbf0ed95c8ece400a80009d94f8e3c33537bbcdb393add915610570d170b8
diff --git a/www-apps/webmcp/files/webmcp-2.2.1-gentoo.patch b/www-apps/webmcp/files/webmcp-2.2.1-gentoo.patch
new file mode 100644
index 000000000000..5b86be64061d
--- /dev/null
+++ b/www-apps/webmcp/files/webmcp-2.2.1-gentoo.patch
@@ -0,0 +1,18 @@
+--- a/Makefile 2021-04-17 13:46:36.321270501 +0200
++++ b/Makefile 2021-04-17 13:47:26.019424556 +0200
+@@ -2,10 +2,10 @@
+
+ all::
+- make documentation
+- make accelerator
+- make libraries
+- make symlinks
+- make precompile
++ $(MAKE) documentation
++ $(MAKE) accelerator
++ $(MAKE) libraries
++ $(MAKE) symlinks
++ $(MAKE) precompile
+
+ documentation::
+ rm -f doc/autodoc.tmp
diff --git a/www-apps/webmcp/webmcp-2.2.1.ebuild b/www-apps/webmcp/webmcp-2.2.1.ebuild
new file mode 100644
index 000000000000..86f9c7e0a333
--- /dev/null
+++ b/www-apps/webmcp/webmcp-2.2.1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2023 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
+
+MY_P=${PN}-v${PV}
+DESCRIPTION="Web application framework written in Lua and C"
+HOMEPAGE="https://www.public-software-group.org/webmcp"
+SRC_URI="https://www.public-software-group.org/pub/projects/${PN}/v${PV}/${MY_P}.tar.gz
+ https://dev.gentoo.org/~tupone/distfiles/${MY_P}.tar.gz"
+
+LICENSE="HPND"
+KEYWORDS="~amd64"
+SLOT=0
+
+RDEPEND="
+ ${LUA_DEPS}
+ dev-db/postgresql:=
+"
+DEPEND="${RDEPEND}"
+
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+
+S="${WORKDIR}"/${MY_P}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gentoo.patch
+)
+
+src_compile() {
+ emake CC="$(tc-getCC)" \
+ CFLAGS="${CFLAGS} \
+ $(lua_get_CFLAGS) -fPIC" \
+ LD="$(tc-getCC)" \
+ SHAREDFLAGS="${LDFLAGS} -shared" \
+ LDFLAGS_PGSQL="-L `pg_config --libdir`" \
+ LUALIBS="$(lua_get_LIBS)"
+}
+
+src_install() {
+ insinto /usr/lib/${PN}
+ doins -r framework.precompiled/*
+}