blob: 86f9c7e0a333641ac668f11f56d36e70c7d224d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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/*
}
|