summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Camera <dennis.camera+gentoo@riiengineering.ch>2024-01-26 13:04:46 +0100
committerMatt Turner <mattst88@gentoo.org>2024-02-21 13:08:52 -0500
commitfc2602b8bfdaf266c1510ea568d343f6f334eab8 (patch)
tree33405d7039f9f4c22bc1dabbed85780cf578f32c /www-client/luakit
parentdev-python/sphinxcontrib-plantuml: Bump to 0.28 (diff)
downloadgentoo-fc2602b8bfdaf266c1510ea568d343f6f334eab8.tar.gz
gentoo-fc2602b8bfdaf266c1510ea568d343f6f334eab8.tar.bz2
gentoo-fc2602b8bfdaf266c1510ea568d343f6f334eab8.zip
www-client/luakit: add 2.3.6
Closes: https://bugs.gentoo.org/893714 Closes: https://github.com/gentoo/gentoo/pull/35103 Signed-off-by: Dennis Camera <dennis.camera+gentoo@riiengineering.ch> Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'www-client/luakit')
-rw-r--r--www-client/luakit/Manifest1
-rw-r--r--www-client/luakit/files/luakit-mangz.patch35
-rw-r--r--www-client/luakit/luakit-2.3.6.ebuild92
3 files changed, 128 insertions, 0 deletions
diff --git a/www-client/luakit/Manifest b/www-client/luakit/Manifest
index 8df8b4ce7c7f..43d4ff97bfa7 100644
--- a/www-client/luakit/Manifest
+++ b/www-client/luakit/Manifest
@@ -1 +1,2 @@
DIST luakit-2.3.3.tar.gz 507343 BLAKE2B 4b9c3b3e4d5ff50f1c7409cf8f77ca7c81032f13051c3cca2aef4f794ee159fd12c5bfe0706e74414056899ef64330e888fe141256e52bc6d89eb572cca975e0 SHA512 ae5088541118c693db4a90f7e727d1f4094b56d4ea4cd51d2019351ff6b44672a1d7b9f80b351a37767556564b68633d815649ceaa4d8bd3b966a20a155ba2b2
+DIST luakit-2.3.6.tar.gz 508466 BLAKE2B 2f5d727349a72c3f9ec9e10030f9e916e7f0ba50e66f94c96973215595ebb6105d198f9b5efcaae93a90dc1f0b898753253bd5cb1c071a06413e84e31120ce1c SHA512 0f6fe8f4805fe5ee7de5534534e3ad3d2c459aad152d3b5598e7c25d9c06cfee177098cbcd305bbcd351733dea7e03370139a7ecbd1b022b8cee8da6ca242e1c
diff --git a/www-client/luakit/files/luakit-mangz.patch b/www-client/luakit/files/luakit-mangz.patch
new file mode 100644
index 000000000000..76d2dd7fab82
--- /dev/null
+++ b/www-client/luakit/files/luakit-mangz.patch
@@ -0,0 +1,35 @@
+Patch for QA notice:
+
+ * QA Notice: One or more compressed files were found in docompress-ed
+ * directories. Please fix the ebuild not to install compressed files
+ * (manpages, documentation) when automatic compression is used:
+ *
+ * /usr/share/man/man1/luakit.1.gz
+
+--- a/Makefile
++++ b/Makefile
+@@ -17,7 +17,7 @@
+ # Must be kept in sync with doc/docgen.ld
+ DOC_SRCS = $(filter-out lib/markdown.lua lib/lousy/init.lua,$(shell for d in doc/luadoc lib common/clib; do find $$d -type f; done)) tests/lib.lua
+
+-all: options newline luakit luakit.1.gz luakit.so apidoc
++all: options newline luakit luakit.1 luakit.so apidoc
+
+ options:
+ @echo luakit build options:
+@@ -118,13 +118,13 @@
+ install -d $(DESTDIR)$(APPDIR)
+ install -m644 extras/luakit.desktop $(DESTDIR)$(APPDIR)
+ install -d $(DESTDIR)$(MANPREFIX)/man1/
+- install -m644 luakit.1.gz $(DESTDIR)$(MANPREFIX)/man1/
++ install -m644 luakit.1 $(DESTDIR)$(MANPREFIX)/man1/
+ install -d $(DESTDIR)$(PREFIX)/share/luakit/resources/icons
+ for i in resources/icons/*; do install -m644 "$$i" "$(DESTDIR)$(PREFIX)/share/luakit/resources/icons"; done
+
+ uninstall:
+ rm -rf $(DESTDIR)$(PREFIX)/bin/luakit $(DESTDIR)$(PREFIX)/share/luakit $(DESTDIR)$(PREFIX)/lib/luakit
+- rm -rf $(DESTDIR)$(MANPREFIX)/man1/luakit.1.gz $(DESTDIR)$(XDGPREFIX)/luakit
++ rm -rf $(DESTDIR)$(MANPREFIX)/man1/luakit.1 $(DESTDIR)$(XDGPREFIX)/luakit
+ rm -rf $(DESTDIR)$(APPDIR)/luakit.desktop $(DESTDIR)$(PIXMAPDIR)/luakit.png
+
+ tests/util.so: tests/util.c Makefile
diff --git a/www-client/luakit/luakit-2.3.6.ebuild b/www-client/luakit/luakit-2.3.6.ebuild
new file mode 100644
index 000000000000..9178da7a0d2c
--- /dev/null
+++ b/www-client/luakit/luakit-2.3.6.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2024 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.1=
+ 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-text/doxygen
+ media-gfx/graphviz
+ )
+ test? (
+ $(lua_gen_cond_dep '
+ dev-lua/luassert[${LUA_USEDEP}]
+ dev-lua/luacheck[${LUA_USEDEP}]
+ ')
+ x11-base/xorg-server[xvfb]
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-mangz.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
+}