www/luakit: new port, luakit 2.4.0

This commit is contained in:
c0dev0id
2026-07-08 11:11:03 +02:00
parent d76a5dce4b
commit 5fcf1e2d83
5 changed files with 343 additions and 0 deletions

73
www/luakit/Makefile Normal file
View File

@@ -0,0 +1,73 @@
COMMENT = fast, small, webkit based browser written in lua
V = 2.4.0
COMMIT = 1cce97acefa2477f46ad8fc20e6a0bd3b5eafc6a
DISTNAME = luakit-${V}
DIST_TUPLE = github c0dev0id luakit ${COMMIT} .
WRKSRC = ${WRKDIR}/luakit-${COMMIT}
REVISION = 11
EPOCH = 1
CATEGORIES = www
MAINTAINER = Stefan Hagen <sh+ports@codevoid.de>
HOMEPAGE = https://luakit.github.io
# GPLv3
PERMIT_PACKAGE = Yes
USE_GMAKE = Yes
COMPILER = base-clang ports-gcc
WANTLIB = atk-1.0 c cairo cairo-gobject gdk-3 gdk_pixbuf-2.0 gio-2.0
WANTLIB += glib-2.0 gmodule-2.0 gobject-2.0 gthread-2.0 gtk-3 harfbuzz
WANTLIB += intl javascriptcoregtk-4.1 pango-1.0 pangocairo-1.0 pthread
WANTLIB += soup-3.0 sqlite3 webkit2gtk-4.1
.include <bsd.port.arch.mk>
.if ${PROPERTIES:Mluajit}
WANTLIB += luajit-5.1
LIB_DEPENDS += lang/luajit
MAKE_FLAGS += USE_LUAJIT=1
USE_NOBTCFI = Yes
.else
WANTLIB += ${MODLUA_WANTLIB}
MAKE_FLAGS += USE_LUAJIT=0
.endif
MODULES = lang/lua
MODLUA_VERSION = 5.1
BUILD_DEPENDS = devel/help2man \
devel/luafs
RUN_DEPENDS = devel/desktop-file-utils \
devel/luafs \
net/luasocket \
textproc/lua-markdown
LIB_DEPENDS += www/webkitgtk4
TEST_DEPENDS = devel/luassert \
devel/luacheck
TEST_TARGET = run-tests
## webkit browsing
RUN_DEPENDS += multimedia/gstreamer1/plugins-good \
multimedia/gstreamer1/libav
MAKE_FLAGS += LUA_BIN_NAME=${MODLUA_BIN} \
XDGPREFIX=${PREFIX}/share/examples \
DOCDIR=${PREFIX}/share/doc/luakit \
MANPREFIX=${PREFIX}/man \
PIXMAPDIR=${PREFIX}/share/pixmaps/ \
APPDIR=${PREFIX}/share/applications/ \
PREFIX=${PREFIX} \
VERSION=${V}
.include <bsd.port.mk>

2
www/luakit/distinfo Normal file
View File

@@ -0,0 +1,2 @@
SHA256 (c0dev0id-luakit-1cce97acefa2477f46ad8fc20e6a0bd3b5eafc6a.tar.gz) = 6WV8ML74sdsReOhyPVCpTtmL6N8GNuGwqFusOMdWoio=
SIZE (c0dev0id-luakit-1cce97acefa2477f46ad8fc20e6a0bd3b5eafc6a.tar.gz) = 519246

6
www/luakit/pkg/DESCR Normal file
View File

@@ -0,0 +1,6 @@
Luakit is a highly configurable, browser framework based on the WebKit
web content engine and the GTK+ toolkit. It is very fast, extensible by
Lua and licensed under the GNU GPLv3 license. It is primarily targeted
at power users, developers and any people with too much time on their
hands who want to have fine-grained control over their web browsers
behaviour and interface.

252
www/luakit/pkg/PLIST Normal file
View File

@@ -0,0 +1,252 @@
@bin bin/luakit
lib/luakit/
@so lib/luakit/luakit.so
@man man/man1/luakit.1
share/applications/luakit.desktop
share/doc/luakit/
share/doc/luakit/AUTHORS
share/doc/luakit/COPYING.GPLv3
share/doc/luakit/README.md
share/doc/luakit/classes/
share/doc/luakit/classes/dom_document.html
share/doc/luakit/classes/dom_element.html
share/doc/luakit/classes/download.html
share/doc/luakit/classes/page.html
share/doc/luakit/classes/regex.html
share/doc/luakit/classes/sqlite3.html
share/doc/luakit/classes/stylesheet.html
share/doc/luakit/classes/timer.html
share/doc/luakit/classes/widget.html
share/doc/luakit/classes/widget:box.html
share/doc/luakit/classes/widget:drawing_area.html
share/doc/luakit/classes/widget:entry.html
share/doc/luakit/classes/widget:event_box.html
share/doc/luakit/classes/widget:image.html
share/doc/luakit/classes/widget:label.html
share/doc/luakit/classes/widget:notebook.html
share/doc/luakit/classes/widget:overlay.html
share/doc/luakit/classes/widget:paned.html
share/doc/luakit/classes/widget:scrolled.html
share/doc/luakit/classes/widget:socket.html
share/doc/luakit/classes/widget:spinner.html
share/doc/luakit/classes/widget:webview.html
share/doc/luakit/classes/widget:window.html
share/doc/luakit/index.html
share/doc/luakit/modules/
share/doc/luakit/modules/adblock.html
share/doc/luakit/modules/adblock_chrome.html
share/doc/luakit/modules/binds.html
share/doc/luakit/modules/binds_chrome.html
share/doc/luakit/modules/bookmarks.html
share/doc/luakit/modules/bookmarks_chrome.html
share/doc/luakit/modules/chrome.html
share/doc/luakit/modules/clear_data.html
share/doc/luakit/modules/cmdhist.html
share/doc/luakit/modules/completion.html
share/doc/luakit/modules/domain_props.html
share/doc/luakit/modules/downloads.html
share/doc/luakit/modules/downloads_chrome.html
share/doc/luakit/modules/editor.html
share/doc/luakit/modules/error_page.html
share/doc/luakit/modules/follow.html
share/doc/luakit/modules/follow_selected.html
share/doc/luakit/modules/formfiller.html
share/doc/luakit/modules/go_input.html
share/doc/luakit/modules/go_next_prev.html
share/doc/luakit/modules/go_up.html
share/doc/luakit/modules/gopher.html
share/doc/luakit/modules/help_chrome.html
share/doc/luakit/modules/hide_scrollbars.html
share/doc/luakit/modules/history.html
share/doc/luakit/modules/history_chrome.html
share/doc/luakit/modules/image_css.html
share/doc/luakit/modules/introspector_chrome.html
share/doc/luakit/modules/ipc.html
share/doc/luakit/modules/keysym.html
share/doc/luakit/modules/log_chrome.html
share/doc/luakit/modules/lousy.bind.html
share/doc/luakit/modules/lousy.load.html
share/doc/luakit/modules/lousy.mode.html
share/doc/luakit/modules/lousy.pickle.html
share/doc/luakit/modules/lousy.signal.html
share/doc/luakit/modules/lousy.theme.html
share/doc/luakit/modules/lousy.uri.html
share/doc/luakit/modules/lousy.util.html
share/doc/luakit/modules/lousy.widget.buf.html
share/doc/luakit/modules/lousy.widget.common.html
share/doc/luakit/modules/lousy.widget.hist.html
share/doc/luakit/modules/lousy.widget.html
share/doc/luakit/modules/lousy.widget.menu.html
share/doc/luakit/modules/lousy.widget.progress.html
share/doc/luakit/modules/lousy.widget.scroll.html
share/doc/luakit/modules/lousy.widget.ssl.html
share/doc/luakit/modules/lousy.widget.tab.html
share/doc/luakit/modules/lousy.widget.tabi.html
share/doc/luakit/modules/lousy.widget.tablist.html
share/doc/luakit/modules/lousy.widget.tgname.html
share/doc/luakit/modules/lousy.widget.uri.html
share/doc/luakit/modules/lousy.widget.zoom.html
share/doc/luakit/modules/luakit.html
share/doc/luakit/modules/luakit.unique.html
share/doc/luakit/modules/modes.html
share/doc/luakit/modules/msg.html
share/doc/luakit/modules/newtab_chrome.html
share/doc/luakit/modules/noscript.html
share/doc/luakit/modules/open_editor.html
share/doc/luakit/modules/proxy.html
share/doc/luakit/modules/quickmarks.html
share/doc/luakit/modules/readline.html
share/doc/luakit/modules/referer_control_wm.html
share/doc/luakit/modules/search.html
share/doc/luakit/modules/select.html
share/doc/luakit/modules/select_wm.html
share/doc/luakit/modules/session.html
share/doc/luakit/modules/settings.html
share/doc/luakit/modules/settings_chrome.html
share/doc/luakit/modules/soup.html
share/doc/luakit/modules/styles.html
share/doc/luakit/modules/tab_favicons.html
share/doc/luakit/modules/tabgroups.html
share/doc/luakit/modules/tabhistory.html
share/doc/luakit/modules/tabmenu.html
share/doc/luakit/modules/taborder.html
share/doc/luakit/modules/tests.lib.html
share/doc/luakit/modules/undoclose.html
share/doc/luakit/modules/unique_instance.html
share/doc/luakit/modules/userscripts.html
share/doc/luakit/modules/utf8.html
share/doc/luakit/modules/vertical_tabs.html
share/doc/luakit/modules/view_source.html
share/doc/luakit/modules/viewpdf.html
share/doc/luakit/modules/webinspector.html
share/doc/luakit/modules/webview.html
share/doc/luakit/modules/window.html
share/doc/luakit/modules/xdg.html
share/doc/luakit/pages/
share/doc/luakit/pages/01-authors.html
share/doc/luakit/pages/02-faq.html
share/doc/luakit/pages/03-quick-start-guide.html
share/doc/luakit/pages/04-migration-guide.html
share/doc/luakit/pages/05-configuration.html
share/doc/luakit/pages/06-tests.html
share/doc/luakit/pages/07-build-debian-package.html
share/examples/luakit/
@sample ${SYSCONFDIR}/xdg/luakit/
share/examples/luakit/rc.lua
@sample ${SYSCONFDIR}/xdg/luakit/rc.lua
share/examples/luakit/theme.lua
@sample ${SYSCONFDIR}/xdg/luakit/theme.lua
share/luakit/
share/luakit/lib/
share/luakit/lib/adblock.lua
share/luakit/lib/adblock_chrome.lua
share/luakit/lib/adblock_wm.lua
share/luakit/lib/binds.lua
share/luakit/lib/binds_chrome.lua
share/luakit/lib/bookmarks.lua
share/luakit/lib/bookmarks_chrome.lua
share/luakit/lib/chrome.lua
share/luakit/lib/chrome_wm.lua
share/luakit/lib/clear_data.lua
share/luakit/lib/cmdhist.lua
share/luakit/lib/completion.lua
share/luakit/lib/domain_props.lua
share/luakit/lib/downloads.lua
share/luakit/lib/downloads_chrome.lua
share/luakit/lib/editor.lua
share/luakit/lib/error_page.lua
share/luakit/lib/error_page_wm.lua
share/luakit/lib/follow.lua
share/luakit/lib/follow_selected.lua
share/luakit/lib/follow_selected_wm.lua
share/luakit/lib/follow_wm.lua
share/luakit/lib/formfiller.lua
share/luakit/lib/formfiller_wm.lua
share/luakit/lib/go_input.lua
share/luakit/lib/go_next_prev.lua
share/luakit/lib/go_up.lua
share/luakit/lib/gopher.lua
share/luakit/lib/help_chrome.lua
share/luakit/lib/hide_scrollbars.lua
share/luakit/lib/history.lua
share/luakit/lib/history_chrome.lua
share/luakit/lib/image_css.lua
share/luakit/lib/image_css_wm.lua
share/luakit/lib/introspector_chrome.lua
share/luakit/lib/keysym.lua
share/luakit/lib/log_chrome.lua
share/luakit/lib/lousy/
share/luakit/lib/lousy/bind.lua
share/luakit/lib/lousy/init.lua
share/luakit/lib/lousy/load.lua
share/luakit/lib/lousy/mode.lua
share/luakit/lib/lousy/pickle.lua
share/luakit/lib/lousy/signal.lua
share/luakit/lib/lousy/theme.lua
share/luakit/lib/lousy/uri.lua
share/luakit/lib/lousy/util.lua
share/luakit/lib/lousy/widget/
share/luakit/lib/lousy/widget/buf.lua
share/luakit/lib/lousy/widget/common.lua
share/luakit/lib/lousy/widget/hist.lua
share/luakit/lib/lousy/widget/init.lua
share/luakit/lib/lousy/widget/menu.lua
share/luakit/lib/lousy/widget/progress.lua
share/luakit/lib/lousy/widget/scroll.lua
share/luakit/lib/lousy/widget/ssl.lua
share/luakit/lib/lousy/widget/tab.lua
share/luakit/lib/lousy/widget/tabi.lua
share/luakit/lib/lousy/widget/tablist.lua
share/luakit/lib/lousy/widget/tgname.lua
share/luakit/lib/lousy/widget/uri.lua
share/luakit/lib/lousy/widget/zoom.lua
share/luakit/lib/markdown.lua
share/luakit/lib/modes.lua
share/luakit/lib/newtab_chrome.lua
share/luakit/lib/noscript.lua
share/luakit/lib/open_editor.lua
share/luakit/lib/proxy.lua
share/luakit/lib/quickmarks.lua
share/luakit/lib/readline.lua
share/luakit/lib/referer_control_wm.lua
share/luakit/lib/search.lua
share/luakit/lib/select.lua
share/luakit/lib/select_wm.lua
share/luakit/lib/session.lua
share/luakit/lib/settings.lua
share/luakit/lib/settings_chrome.lua
share/luakit/lib/styles.lua
share/luakit/lib/tab_favicons.lua
share/luakit/lib/tabgroups.lua
share/luakit/lib/tabhistory.lua
share/luakit/lib/tabmenu.lua
share/luakit/lib/taborder.lua
share/luakit/lib/undoclose.lua
share/luakit/lib/unique_instance.lua
share/luakit/lib/userscripts.lua
share/luakit/lib/vertical_tabs.lua
share/luakit/lib/view_source.lua
share/luakit/lib/viewpdf.lua
share/luakit/lib/webinspector.lua
share/luakit/lib/webview.lua
share/luakit/lib/webview_wm.lua
share/luakit/lib/window.lua
share/luakit/resources/
share/luakit/resources/icons/
share/luakit/resources/icons/COPYING
share/luakit/resources/icons/tab-icon-chrome.png
share/luakit/resources/icons/tab-icon-chrome@2x.png
share/luakit/resources/icons/tab-icon-crash.png
share/luakit/resources/icons/tab-icon-crash@2x.png
share/luakit/resources/icons/tab-icon-error.png
share/luakit/resources/icons/tab-icon-error@2x.png
share/luakit/resources/icons/tab-icon-page.png
share/luakit/resources/icons/tab-icon-page@2x.png
share/luakit/resources/icons/tab-icon-private.png
share/luakit/resources/icons/tab-icon-private@2x.png
share/luakit/resources/icons/tab-icon-security-error.png
share/luakit/resources/icons/tab-icon-security-error@2x.png
share/pixmaps/
share/pixmaps/luakit.png
share/pixmaps/luakit.svg
@tag update-desktop-database

10
www/luakit/update.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/sh -x
export DEVELOPMENT_PATHS=0
cd /usr/ports/mystuff/www/luakit
commit="$(basename $(gh browse --repo c0dev0id/luakit -c -n))"
sed -i "s/^COMMIT =.*/COMMIT = $commit/" Makefile
make clean=all
portbump
make makesum
make install