all the things
This commit is contained in:
59
www/luakit/Makefile
Normal file
59
www/luakit/Makefile
Normal file
@@ -0,0 +1,59 @@
|
||||
# $OpenBSD: Makefile,v 1.26 2020/09/15 07:04:25 pamela Exp $
|
||||
|
||||
COMMENT = fast, small, webkit based browser written in lua
|
||||
|
||||
GH_ACCOUNT = luakit
|
||||
GH_PROJECT = luakit
|
||||
GH_TAGNAME = 2.2.1
|
||||
|
||||
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
|
||||
WANTLIB += gio-2.0 glib-2.0 gobject-2.0 gthread-2.0 gtk-3 harfbuzz
|
||||
WANTLIB += intl javascriptcoregtk-4.0 luajit-5.1 pango-1.0
|
||||
WANTLIB += pangocairo-1.0 pthread soup-2.4 sqlite3 webkit2gtk-4.0
|
||||
|
||||
MODULES = lang/lua
|
||||
|
||||
BUILD_DEPENDS = devel/help2man \
|
||||
devel/luafs
|
||||
|
||||
RUN_DEPENDS = devel/desktop-file-utils \
|
||||
devel/luafs \
|
||||
textproc/lua-markdown
|
||||
|
||||
LIB_DEPENDS = lang/luajit \
|
||||
www/webkitgtk4
|
||||
|
||||
TEST_DEPENDS = devel/luassert \
|
||||
devel/luacheck
|
||||
|
||||
TEST_TARGET = run-tests
|
||||
|
||||
# webkit browsing
|
||||
RUN_DEPENDS += multimedia/gstreamer1/plugins-good \
|
||||
multimedia/gstreamer1/plugins-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} \
|
||||
DEVELOPMENT_PATHS=0
|
||||
|
||||
.include <bsd.port.mk>
|
||||
2
www/luakit/distinfo
Normal file
2
www/luakit/distinfo
Normal file
@@ -0,0 +1,2 @@
|
||||
SHA256 (luakit-2.2.1.tar.gz) = 81NZ9YY/q+K51Cb00+9tKc5bs7rHtMjggkJC+JhoyA4=
|
||||
SIZE (luakit-2.2.1.tar.gz) = 488845
|
||||
39
www/luakit/patches/patch-Makefile
Normal file
39
www/luakit/patches/patch-Makefile
Normal file
@@ -0,0 +1,39 @@
|
||||
$OpenBSD: patch-Makefile,v 1.4 2019/02/09 17:55:27 abieber Exp $
|
||||
Index: Makefile
|
||||
--- Makefile.orig
|
||||
+++ Makefile
|
||||
@@ -56,21 +56,21 @@ buildopts.h: buildopts.h.in
|
||||
$(filter-out $(EXT_OBJS),$(OBJS)) $(EXT_OBJS): $(HEADS) config.mk
|
||||
|
||||
$(filter-out $(EXT_OBJS),$(OBJS)) : %.o : %.c
|
||||
- @echo $(CC) -c $< -o $@
|
||||
+ @echo $(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@
|
||||
@$(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@
|
||||
|
||||
$(EXT_OBJS) : %.o : %.c
|
||||
- @echo $(CC) -c $< -o $@
|
||||
+ @echo $(CC) -c $(CFLAGS) -DLUAKIT_WEB_EXTENSION -fpic $(CPPFLAGS) $< -o $@
|
||||
@$(CC) -c $(CFLAGS) -DLUAKIT_WEB_EXTENSION -fpic $(CPPFLAGS) $< -o $@
|
||||
|
||||
widgets/webview.o: $(wildcard widgets/webview/*.c)
|
||||
|
||||
luakit: $(OBJS)
|
||||
- @echo $(CC) -o $@ $(OBJS)
|
||||
+ @echo $(CC) -o $@ $(OBJS) $(LDFLAGS)
|
||||
@$(CC) -o $@ $(OBJS) $(LDFLAGS)
|
||||
|
||||
luakit.so: $(EXT_OBJS)
|
||||
- @echo $(CC) -o $@ $(EXT_OBJS)
|
||||
+ @echo $(CC) -o $@ $(EXT_OBJS) -shared $(LDFLAGS)
|
||||
@$(CC) -o $@ $(EXT_OBJS) -shared $(LDFLAGS)
|
||||
|
||||
luakit.1: luakit.1.in
|
||||
@@ -115,7 +115,7 @@ install: all
|
||||
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/
|
||||
mkdir -p resources
|
||||
find resources -type d -exec install -d $(DESTDIR)$(PREFIX)/share/luakit/'{}' \;
|
||||
find resources -type f -exec sh -c 'f="{}"; install -m644 "$$f" "$(DESTDIR)$(PREFIX)/share/luakit/$$(dirname $$f)"' \;
|
||||
31
www/luakit/patches/patch-common_ipc_c
Normal file
31
www/luakit/patches/patch-common_ipc_c
Normal file
@@ -0,0 +1,31 @@
|
||||
$OpenBSD$
|
||||
|
||||
NetBSD EOF fix
|
||||
|
||||
Index: common/ipc.c
|
||||
--- common/ipc.c.orig
|
||||
+++ common/ipc.c
|
||||
@@ -21,6 +21,7 @@
|
||||
#include "common/lualib.h"
|
||||
#include "common/luaserialize.h"
|
||||
#include "common/ipc.h"
|
||||
+#include "log.h"
|
||||
|
||||
/* Prototypes for ipc_recv_... functions */
|
||||
#define X(name) void ipc_recv_##name(ipc_endpoint_t *ipc, const void *msg, guint length);
|
||||
@@ -138,6 +139,15 @@ ipc_recv_and_dispatch_or_enqueue(ipc_endpoint_t *ipc)
|
||||
case G_IO_STATUS_AGAIN:
|
||||
return;
|
||||
case G_IO_STATUS_EOF:
|
||||
+ verbose("g_io_channel_read_chars(): End Of File received");
|
||||
+ /* OSX and NetBSD are sending EOF on nonblocking channels first.
|
||||
+ * These requests can be ignored. They should end up in
|
||||
+ * recv_hup(), but unfortunately they do not.
|
||||
+ *
|
||||
+ * If we do not close the socket, glib will continue to
|
||||
+ * call the G_IO_IN handler.
|
||||
+ */
|
||||
+ g_atomic_int_dec_and_test(&ipc->refcount);
|
||||
return;
|
||||
case G_IO_STATUS_ERROR:
|
||||
if (!g_str_equal(ipc->name, "UI"))
|
||||
6
www/luakit/pkg/DESCR
Normal file
6
www/luakit/pkg/DESCR
Normal 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.
|
||||
242
www/luakit/pkg/PLIST
Normal file
242
www/luakit/pkg/PLIST
Normal file
@@ -0,0 +1,242 @@
|
||||
@comment $OpenBSD: PLIST,v 1.8 2020/08/23 22:00:39 abieber Exp $
|
||||
@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/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/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.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/tabhistory.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/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/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/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/tabhistory.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
|
||||
@tag update-desktop-database
|
||||
Reference in New Issue
Block a user