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/webmcp-2.2.1.ebuild
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/webmcp-2.2.1.ebuild')
-rw-r--r--www-apps/webmcp/webmcp-2.2.1.ebuild47
1 files changed, 47 insertions, 0 deletions
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/*
+}