blob: 201a80f48490c915f97c494d1f081489bdec01f5 (
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
48
49
50
51
52
53
54
|
# Copyright 2021-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
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"
S="${WORKDIR}"/${MYP}
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"
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
}
|