blob: b573bb34668b7ab9dbd8433a0b2e597dcb496570 (
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
LUA_COMPAT=( lua5-1 luajit )
inherit lua-single toolchain-funcs xdg
DESCRIPTION="A fast, extensible, and customizable web browser"
HOMEPAGE="https://luakit.github.io/luakit"
SRC_URI="https://github.com/luakit/luakit/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm64"
LICENSE="GPL-3+"
SLOT="0"
IUSE="doc test"
REQUIRED_USE="${LUA_REQUIRED_USE}"
RESTRICT="!test? ( test )"
RDEPEND="
dev-db/sqlite:3
dev-libs/glib:2
net-libs/webkit-gtk:4=
x11-libs/gtk+:3
${LUA_DEPS}
$(lua_gen_cond_dep '
dev-lua/luafilesystem[${LUA_USEDEP}]
')
"
DEPEND="${RDEPEND}"
BDEPEND="
virtual/pkgconfig
doc? (
dev-lua/luafilesystem
app-doc/doxygen
media-gfx/graphviz
)
test? (
$(lua_gen_cond_dep '
dev-lua/luassert[${LUA_USEDEP}]
dev-lua/luacheck[${LUA_USEDEP}]
')
x11-base/xorg-server[xvfb]
)
"
src_configure() {
export LUA_BIN_NAME=${ELUA}
export LUA_PKG_NAME=${ELUA}
tc-export CC PKG_CONFIG
}
src_compile() {
emake \
PREFIX="${EPREFIX}/usr" \
USE_LUAJIT=$(usex lua_single_target_luajit 1 0) \
${PN} ${PN}.so
use doc && emake doc
}
src_test() {
local failing_test
for failing_test in test_clib_luakit test_image_css; do
mv tests/async/${failing_test}.lua{,.disabled} || die
done
emake \
USE_LUAJIT=$(usex lua_single_target_luajit 1 0) \
run-tests
}
src_install() {
emake \
DESTDIR="${ED}" \
DOCDIR="${EPREFIX}/usr/share/doc/${PF}" \
PREFIX="${EPREFIX}/usr" \
USE_LUAJIT=$(usex lua_single_target_luajit 1 0) \
XDGPREFIX="${EPREFIX}/etc/xdg" \
install
rm "${ED}/usr/share/doc/${PF}/COPYING.GPLv3" || die
use doc && dodoc -r doc/html
}
|