www-client/luakit: add 2.4.0

Signed-off-by: Oz Tiram <oz.tiram@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/40802
Closes: https://github.com/gentoo/gentoo/pull/40802
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Oz Tiram 2025-02-27 21:56:11 +01:00 committed by Sam James
parent 8708318e6a
commit 79ac547560
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
3 changed files with 143 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST luakit-2.3.6.tar.gz 508466 BLAKE2B 2f5d727349a72c3f9ec9e10030f9e916e7f0ba50e66f94c96973215595ebb6105d198f9b5efcaae93a90dc1f0b898753253bd5cb1c071a06413e84e31120ce1c SHA512 0f6fe8f4805fe5ee7de5534534e3ad3d2c459aad152d3b5598e7c25d9c06cfee177098cbcd305bbcd351733dea7e03370139a7ecbd1b022b8cee8da6ca242e1c
DIST luakit-2.4.0.tar.gz 511716 BLAKE2B efc6704802899ff3e32436bff5467ad547e56d402c58edff26d546ed7a253eb68a80dbf15636a7306f8ee92ce6f138cdd3ac56a6be949f8b2bde4b43ad4bbce3 SHA512 dfcace205c7011028763f71315f5e4c0bae65f51c61b111c53308df2e1931385ed0029bedf3e0f90cc0059e2240a5791c11615754e3109e7f264069a8621f761

View File

@ -0,0 +1,48 @@
diff --git a/Makefile b/Makefile
index b0cf8fed..0a7e7ced 100644
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,7 @@ EXT_OBJS = $(foreach obj,$(EXT_SRCS:.c=.o),$(obj))
# 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 luakit.so apidoc
+all: options newline luakit luakit.1.gz luakit.so apidoc
options:
@echo luakit build options:
@@ -77,6 +77,9 @@ luakit.so: $(EXT_OBJS)
luakit.1: luakit.1.in
@sed "s|LUAKITVERSION|$(VERSION)|" $< > $@
+luakit.1.gz: luakit.1
+ @gzip -c $< > $@
+
doc/apidocs/index.html: $(DOC_SRCS) $(wildcard build-utils/docgen/*)
rm -rf doc/apidocs
mkdir doc/apidocs
@@ -88,7 +91,7 @@ doc: buildopts.h $(THEAD) $(TSRC)
doxygen -s doc/luakit.doxygen
clean:
- rm -rf doc/apidocs doc/html luakit $(OBJS) $(EXT_OBJS) $(TSRC) $(THEAD) buildopts.h luakit.1 luakit.so
+ rm -rf doc/apidocs doc/html luakit $(OBJS) $(EXT_OBJS) $(TSRC) $(THEAD) buildopts.h luakit.1.gz luakit.so
install: all
install -d $(DESTDIR)$(DOCDIR)/classes
@@ -115,13 +118,13 @@ install: all
install -d $(DESTDIR)$(APPDIR)
install -m644 extras/luakit.desktop $(DESTDIR)$(APPDIR)
install -d $(DESTDIR)$(MANPREFIX)/man1/
- install -m644 luakit.1 $(DESTDIR)$(MANPREFIX)/man1/
+ install -m644 luakit.1.gz $(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 $(DESTDIR)$(XDGPREFIX)/luakit
+ rm -rf $(DESTDIR)$(MANPREFIX)/man1/luakit.1.gz $(DESTDIR)$(XDGPREFIX)/luakit
rm -rf $(DESTDIR)$(APPDIR)/luakit.desktop $(DESTDIR)$(PIXMAPDIR)/luakit.png
tests/util.so: tests/util.c Makefile

View File

@ -0,0 +1,94 @@
# Copyright 1999-2025 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"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
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}]
dev-lua/luasocket[${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}/${P}-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
}