diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-06-15 14:57:03 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-06-15 14:57:03 +0100 |
commit | d18bf1e01b65ee4bf0c804e2843b282d3d4e5d7c (patch) | |
tree | 4a95cbc6ffdf13bad6ecbc7f8d5af99631984123 /www-client/luakit/luakit-2.3.ebuild | |
parent | e748ba9741f6540f4675c23e3e37b73e822c13a4 (diff) |
gentoo resync : 15.06.2021
Diffstat (limited to 'www-client/luakit/luakit-2.3.ebuild')
-rw-r--r-- | www-client/luakit/luakit-2.3.ebuild | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/www-client/luakit/luakit-2.3.ebuild b/www-client/luakit/luakit-2.3.ebuild new file mode 100644 index 000000000000..4898eed6a661 --- /dev/null +++ b/www-client/luakit/luakit-2.3.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/luakit/luakit.git" +else + SRC_URI="https://github.com/luakit/luakit/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +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? ( app-doc/doxygen ) + test? ( + $(lua_gen_cond_dep ' + dev-lua/luassert[${LUA_USEDEP}] + dev-lua/luacheck[${LUA_USEDEP}] + ') + x11-base/xorg-server[xvfb] + ) +" +PATCHES=( + "${FILESDIR}"/${PN}-2.2.1-make.patch +) + +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 +} |