diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-09-30 17:27:54 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-09-30 17:27:54 +0100 |
commit | f70a1bfc721336d4fc7dfb711c2f518a6b18cf16 (patch) | |
tree | e907cb121b30e3c1df1710719c0ddf4029597a47 /www-client/luakit | |
parent | db063b515939ab15261136b24e4bc44386335c0c (diff) |
gentoo resync : 30.09.2020
Diffstat (limited to 'www-client/luakit')
-rw-r--r-- | www-client/luakit/Manifest | 10 | ||||
-rw-r--r-- | www-client/luakit/files/luakit-2.2.1-make.patch | 38 | ||||
-rw-r--r-- | www-client/luakit/files/luakit-2.2.1-pkg-config.patch | 21 | ||||
-rw-r--r-- | www-client/luakit/files/luakit-cflags.patch | 11 | ||||
-rw-r--r-- | www-client/luakit/files/luakit-fix_tests.patch | 108 | ||||
-rw-r--r-- | www-client/luakit/luakit-2.2.1.ebuild (renamed from www-client/luakit/luakit-2017.08.10.ebuild) | 59 | ||||
-rw-r--r-- | www-client/luakit/luakit-9999.ebuild | 53 |
7 files changed, 125 insertions, 175 deletions
diff --git a/www-client/luakit/Manifest b/www-client/luakit/Manifest index 86adef23b547..b184b966430c 100644 --- a/www-client/luakit/Manifest +++ b/www-client/luakit/Manifest @@ -1,6 +1,6 @@ -AUX luakit-cflags.patch 240 BLAKE2B 6ea8589e3a552ae67ad45832bafeb97a0138d635e4fc18f8ebc1a18907bbe96b4d2d86e99034be9b821eda0d8e323cc9cb17c91a71d4c10bfc12eaf7c94c87d6 SHA512 a7898e2cc40f4f35753e2c56096955f4098c4fb19a670da021d5aa7baab466c53d0bed96375ef9fbae1579cb881532608a65bd3d2d3572d6b1f043aa02051dc4 -AUX luakit-fix_tests.patch 3877 BLAKE2B a4d1f05a961034ae5b78c84758ffe3cf859786548c6f5e2ca2149b3aa9ff41762a7c821e8fdb59afa1d385310812abb4c42fa32a5f228de0a76010f65d74607b SHA512 40d4aea86e27fb29fd97ca2be9f84aecf25ce148323de6e2233b0c99d583b2ec07b6dbf5afa86852db89d09f1fe04b8c98acc793ff6ad9f66eb4e88f8e8d57f4 -DIST luakit-2017.08.10.tar.gz 399564 BLAKE2B e7efad1e3e2e34971811c2b1fcccf48caeadbb5e87d09bda2835f00cb075ac499b9c7121c7b805acd14f5cae297c16b59fce75fc5dd1c07fa461ed7ed0fae17d SHA512 6cceb241ca5a7ad7dfbb3964888318b5f2c5f734175ea7ecd5178419d037d58dc5e0aba00a7ed8ca3dd811cc5af953c353b0cd203be95a15c6a78c396f9230c8 -EBUILD luakit-2017.08.10.ebuild 1662 BLAKE2B 3f40a8ea9ae2124697036a8d75f5c572107af41cbcbb13a9bad49f2e52532bf1d32cfe6d986edc02ea3a26917f31886144898a529821bd36c9fe383aab47e627 SHA512 7a2db4f5c805aa5272ef64f9e10652d4c510c4735333ccb7fb73594accb82e0f21b865925ebe0d83b7434e99b7c39749f39551cf6c65d68f11ecce60756d8864 -EBUILD luakit-9999.ebuild 1604 BLAKE2B f4b118aa1af57476786954fbcaf2b83ebb7ece48a19cedef2fb44f8a5bf24f2288806f7f31da2bb56a8b1536b3fc6e4e3a39bc5be6456d89c0df68ba86ce8415 SHA512 c34e8cd1ca7d1ceb450b86054312613daed771bd87eff61664421f3e4ece5cd1e5e2bb20f86eba1c1316fe89353d2ee1252c3b20db86d304a995905524bd4048 +AUX luakit-2.2.1-make.patch 1349 BLAKE2B 9f13f93b00908d15fdad63fa4fcaff607512237f6d0a065fff54cf3726bb6274b0e3b163a82d2cf11f01f18990bc0a80dc5d2cc11a16d2a8b834db9ab7f35ff1 SHA512 d7a9250ea33748514f942f38198bedf2bcaf19756c9d75014e6bbb781695443e3b0e280b621db785b0f907bbd80e3971a53d8131e0ab52a136aa72c90db64d1f +AUX luakit-2.2.1-pkg-config.patch 779 BLAKE2B 6ab9e9d8af10f8d8dde8f01a77481f16aaf285718e4fe520d026b6054b175a72b5bd880793a3379dc3cc500bb3889e2f429fdaabdd5d47f261ddfc5b40e5e29e SHA512 f51ba29b41841cb1dc1b5cf4917182b86c9aa1e71ddc8b834314e70700ac805660f87f49c3a5ce3a8b093d1ee49305c008f72a37fbefc0edcbd9ad77ce8f5f95 +DIST luakit-2.2.1.tar.gz 488845 BLAKE2B 2bed592f7d56fc4b5bad4fee3563805954c6211222e25344d01430ef9f2921c240e9cb3c735564fae66d0739d50da41a90309c7dba3ba9f4631d880b9a47e4b1 SHA512 9a055c1541f31027805d3da2604d98c0193a9c2874099fc3ab3ef08c645a8e91b8504d1162e86cbd29a5e5e0a3c54b3154299708f864d135d8640bcc3866674b +EBUILD luakit-2.2.1.ebuild 1630 BLAKE2B 73071d403c2feb97802203dffd15ae9c5997b7b5032a48291f76090e90107ea9dbb44f1289e46af214f3b494f6cf4c7f57f4bea483fffc28155132166151d120 SHA512 ee87b2487742f5a50e4a0df20ee840b8ba71c7734d1f91affda285686caf4fc264fe71588f7088293e126caf3d1326b86c4b630041b4ae3a21f35cb27891285c +EBUILD luakit-9999.ebuild 1586 BLAKE2B 25845834617ac142d7caef22cd31cf4af803e8a0e96a5a6d87a257ca81be7340ec54e644e775d044cdb94b5df74d0be17a98063737ab83334c6b4b16550ce525 SHA512 e58c31f0952a9c95684fa20a0ff20ea063f68d8337baa3413b57b9e9507b281dc9053801072fb9825882e137d08160197a349574d583926a281a5a34d5a63fc8 MISC metadata.xml 170 BLAKE2B eb526dd38c08c5ca150626a4bd6f4e58daeaffd25edcde9782dc8b584d0e302e0e795b9c8ccfa5f96da40ece9cbac094c3867fecf9758a2e530155c1db2dd715 SHA512 ed1f2cc86749299c1a5b0b5d82e82c86816c2f89d41b162b14cfecd7af82fb2ec2ae6a38190002587f5cfc13030b7598b1e49eb438e97bc38e8f4a71ce1e4e08 diff --git a/www-client/luakit/files/luakit-2.2.1-make.patch b/www-client/luakit/files/luakit-2.2.1-make.patch new file mode 100644 index 000000000000..0e0689feee2e --- /dev/null +++ b/www-client/luakit/files/luakit-2.2.1-make.patch @@ -0,0 +1,38 @@ +--- a/Makefile ++++ b/Makefile +@@ -56,22 +56,18 @@ + $(filter-out $(EXT_OBJS),$(OBJS)) $(EXT_OBJS): $(HEADS) config.mk + + $(filter-out $(EXT_OBJS),$(OBJS)) : %.o : %.c +- @echo $(CC) -c $< -o $@ +- @$(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@ ++ $(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@ + + $(EXT_OBJS) : %.o : %.c +- @echo $(CC) -c $< -o $@ +- @$(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) +- @$(CC) -o $@ $(OBJS) $(LDFLAGS) ++ $(CC) -o $@ $(OBJS) $(LDFLAGS) + + luakit.so: $(EXT_OBJS) +- @echo $(CC) -o $@ $(EXT_OBJS) +- @$(CC) -o $@ $(EXT_OBJS) -shared $(LDFLAGS) ++ $(CC) -o $@ $(EXT_OBJS) -shared $(LDFLAGS) + + luakit.1: luakit.1.in + @sed "s|LUAKITVERSION|$(VERSION)|" $< > $@ +@@ -115,7 +111,7 @@ + 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)"' \; diff --git a/www-client/luakit/files/luakit-2.2.1-pkg-config.patch b/www-client/luakit/files/luakit-2.2.1-pkg-config.patch new file mode 100644 index 000000000000..181c02378669 --- /dev/null +++ b/www-client/luakit/files/luakit-2.2.1-pkg-config.patch @@ -0,0 +1,21 @@ +--- a/config.mk ++++ b/config.mk +@@ -98,15 +98,15 @@ + PKGS += javascriptcoregtk-4.0 + + # Check user has correct packages installed (and found by pkg-config). +-PKGS_OK := $(shell pkg-config --print-errors --exists $(PKGS) && echo 1) ++PKGS_OK := $(shell $(PKG_CONFIG) --print-errors --exists $(PKGS) && echo 1) + ifneq ($(PKGS_OK),1) + $(error Cannot find required package(s\) to build luakit. Please \ + check you have the above packages installed and try again) + endif + + # Add pkg-config options to compile flags. +-CFLAGS += $(shell pkg-config --cflags $(PKGS)) ++CFLAGS += $(shell $(PKG_CONFIG) --cflags $(PKGS)) + CFLAGS += -I./ + + # Add pkg-config options to linker flags. +-LDFLAGS += $(shell pkg-config --libs $(PKGS)) ++LDFLAGS += $(shell $(PKG_CONFIG) --libs $(PKGS)) diff --git a/www-client/luakit/files/luakit-cflags.patch b/www-client/luakit/files/luakit-cflags.patch deleted file mode 100644 index dd8d51c391f1..000000000000 --- a/www-client/luakit/files/luakit-cflags.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/config.mk -+++ b/config.mk -@@ -2,7 +2,7 @@ - - # Compile/link options. - CC ?= gcc --CFLAGS += -std=gnu99 -ggdb -W -Wall -Wextra -Werror=unused-result -+CFLAGS += -std=gnu99 -W -Wall -Wextra - LDFLAGS += - CPPFLAGS += - diff --git a/www-client/luakit/files/luakit-fix_tests.patch b/www-client/luakit/files/luakit-fix_tests.patch deleted file mode 100644 index f379fa85f6c8..000000000000 --- a/www-client/luakit/files/luakit-fix_tests.patch +++ /dev/null @@ -1,108 +0,0 @@ -From 1d5ae1d56da688c3ac95301f4ae07eb7721dd20e Mon Sep 17 00:00:00 2001 -From: Aidan Holm <aidanholm@gmail.com> -Date: Fri, 11 Aug 2017 11:32:47 +0800 -Subject: [PATCH] Add support for tests with DEVELOPMENT_PATHS=0 - ---- - ipc.c | 36 ++++++++++++++++-------------------- - tests/async/run_test.lua | 4 ++++ - tests/async/wrangle_paths.lua | 20 ++++++++++++++++++++ - 3 files changed, 40 insertions(+), 20 deletions(-) - create mode 100644 tests/async/wrangle_paths.lua - -diff --git a/ipc.c b/ipc.c -index e0e8bfde..bd871209 100644 ---- a/ipc.c -+++ b/ipc.c -@@ -158,23 +158,20 @@ web_extension_connect_thread(gpointer UNUSED(data)) - static void - initialize_web_extensions_cb(WebKitWebContext *context, gpointer UNUSED(data)) - { --#if DEVELOPMENT_PATHS -- gchar *extension_dir = g_get_current_dir(); --#else -- const gchar *extension_dir = LUAKIT_INSTALL_PATH; --#endif -- -- char *extension_file = g_build_filename(extension_dir, "luakit.so", NULL); -- if (access(extension_file, R_OK)) { --#if DEVELOPMENT_PATHS --# define DEVPATHS "\nLuakit was built with DEVELOPMENT_PATHS=1; are you running luakit correctly?" --#else --# define DEVPATHS "" --#endif -- fatal("Cannot access luakit extension '%s': %s" DEVPATHS, extension_file, strerror(errno)); --#undef DEVPATHS -+ char *dirs[] = { g_get_current_dir(), LUAKIT_INSTALL_PATH }, *dir = NULL; -+ -+ for (unsigned i = 0; !dir && i < LENGTH(dirs); ++i) { -+ char *extension_file = g_build_filename(dirs[i], "luakit.so", NULL); -+ verbose("checking for luakit extension at '%s'", dirs[i]); -+ if (!access(extension_file, R_OK)) -+ dir = dirs[i]; -+ g_free(extension_file); - } -- g_free(extension_file); -+ -+ if (dir) -+ verbose("found luakit extension at '%s'", dir); -+ else -+ fatal("cannot find luakit extension 'luakit.so'"); - - const char *path; - g_mutex_lock (&socket_path_lock); -@@ -185,10 +182,9 @@ initialize_web_extensions_cb(WebKitWebContext *context, gpointer UNUSED(data)) - - GVariant *payload = g_variant_new_string(path); - webkit_web_context_set_web_extensions_initialization_user_data(context, payload); -- webkit_web_context_set_web_extensions_directory(context, extension_dir); --#if DEVELOPMENT_PATHS -- g_free(extension_dir); --#endif -+ webkit_web_context_set_web_extensions_directory(context, dir); -+ -+ g_free(dirs[0]); - } - - static void -diff --git a/tests/async/run_test.lua b/tests/async/run_test.lua -index d281265b..2a55f225 100644 ---- a/tests/async/run_test.lua -+++ b/tests/async/run_test.lua -@@ -3,6 +3,10 @@ - -- @script async.run_test - -- @copyright 2017 Aidan Holm - -+-- Adjust paths to work when running with DEVELOPMENT_PATHS=0 -+dofile("tests/async/wrangle_paths.lua") -+require_web_module("tests/async/wrangle_paths") -+ - local shared_lib = {} - local priv = require "tests.priv" - local test = require("tests.lib") -diff --git a/tests/async/wrangle_paths.lua b/tests/async/wrangle_paths.lua -new file mode 100644 -index 00000000..66efe929 ---- /dev/null -+++ b/tests/async/wrangle_paths.lua -@@ -0,0 +1,20 @@ -+--- Test runner path wrangler. -+-- -+-- @script async.wrangle_paths -+-- @copyright 2017 Aidan Holm -+ -+local system_paths, luakit_paths = {}, {} -+for path in string.gmatch(package.path, "[^;]+") do -+ if not path:match("^%./") and not path:find("luakit") then -+ table.insert(system_paths, path) -+ elseif not path:match("^%./") and path:find("luakit_test_") then -+ table.insert(luakit_paths, path) -+ end -+end -+local rel_paths = { "./lib/?.lua", "./lib/?/init.lua", "./config/?.lua", "./config/?/init.lua", } -+system_paths = table.concat(system_paths, ";") -+rel_paths = table.concat(rel_paths, ";") -+luakit_paths = table.concat(luakit_paths, ";") -+package.path = string.format("./?.lua;%s;%s;%s", system_paths, rel_paths, luakit_paths) -+ -+-- vim: et:sw=4:ts=8:sts=4:tw=80 diff --git a/www-client/luakit/luakit-2017.08.10.ebuild b/www-client/luakit/luakit-2.2.1.ebuild index 779e8b75552e..efeb361d7b9d 100644 --- a/www-client/luakit/luakit-2017.08.10.ebuild +++ b/www-client/luakit/luakit-2.2.1.ebuild @@ -1,16 +1,15 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 +inherit toolchain-funcs xdg -inherit toolchain-funcs - -DESCRIPTION="A fast, light, simple to use micro-browser using WebKit and Lua" +DESCRIPTION="A fast, extensible, and customizable web browser" HOMEPAGE="https://luakit.github.io/luakit" if [[ ${PV} == 9999 ]]; then inherit git-r3 - EGIT_REPO_URI="git://github.com/luakit/luakit.git" + 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" @@ -28,48 +27,54 @@ RDEPEND=" net-libs/webkit-gtk:4= x11-libs/gtk+:3 luajit? ( dev-lang/luajit:2 ) - !luajit? ( dev-lang/lua:0 )" -DEPEND="${RDEPEND} - virtual/pkgconfig - doc? ( app-doc/doxygen ) + !luajit? ( dev-lang/lua:0 ) +" +DEPEND=" + ${RDEPEND} test? ( dev-lua/luassert[luajit=] dev-lua/luacheck[luajit=] x11-base/xorg-server[xvfb] - )" - + ) +" +BDEPEND=" + virtual/pkgconfig + doc? ( app-doc/doxygen ) +" PATCHES=( - "${FILESDIR}"/${PN}-cflags.patch - "${FILESDIR}"/${PN}-fix_tests.patch + "${FILESDIR}"/${PN}-2.2.1-make.patch + "${FILESDIR}"/${PN}-2.2.1-pkg-config.patch ) +src_configure() { + export LUA_BIN_NAME=$(usex luajit luajit lua) + export LUA_PKG_NAME=$(usex luajit luajit lua) + tc-export CC PKG_CONFIG +} + src_compile() { emake \ - CC=$(tc-getCC) \ PREFIX="${EPREFIX}/usr" \ - XDGPREFIX="${EPREFIX}/etc/xdg" \ - LUA_PKG_NAME=$(usex luajit 'luajit' 'lua') \ - LUA_BIN_NAME=$(usex luajit 'luajit' 'lua') \ - all + ${PN} use doc && emake doc } src_test() { - emake \ - LUA_PKG_NAME=$(usex luajit 'luajit' 'lua') \ - LUA_BIN_NAME=$(usex luajit 'luajit' 'lua') \ - run-tests + local failing_test + for failing_test in test_clib_luakit test_image_css; do + mv tests/async/${failing_test}.lua{,.disabled} || die + done + + emake run-tests } src_install() { emake \ - LUA_PKG_NAME=$(usex luajit 'luajit' 'lua') \ - LUA_BIN_NAME=$(usex luajit 'luajit' 'lua') \ DESTDIR="${D}" \ + DOCDIR="${EPREFIX}/usr/share/doc/${PF}" \ PREFIX="${EPREFIX}/usr" \ - DOCDIR="${ED}/usr/share/doc/${PF}" \ - XDGPREFIX="${ED}/etc/xdg" \ + XDGPREFIX="${EPREFIX}/etc/xdg" \ install rm "${ED}/usr/share/doc/${PF}/COPYING.GPLv3" || die diff --git a/www-client/luakit/luakit-9999.ebuild b/www-client/luakit/luakit-9999.ebuild index 3f617a46a60c..e249169925ec 100644 --- a/www-client/luakit/luakit-9999.ebuild +++ b/www-client/luakit/luakit-9999.ebuild @@ -2,10 +2,9 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 +inherit toolchain-funcs xdg -inherit toolchain-funcs xdg-utils - -DESCRIPTION="A fast, light, simple to use micro-browser using WebKit and Lua" +DESCRIPTION="A fast, extensible, and customizable web browser" HOMEPAGE="https://luakit.github.io/luakit" if [[ ${PV} == 9999 ]]; then @@ -28,40 +27,52 @@ RDEPEND=" net-libs/webkit-gtk:4= x11-libs/gtk+:3 luajit? ( dev-lang/luajit:2 ) - !luajit? ( dev-lang/lua:0 )" -DEPEND="${RDEPEND} - virtual/pkgconfig - doc? ( app-doc/doxygen ) + !luajit? ( dev-lang/lua:0 ) +" +DEPEND=" + ${RDEPEND} test? ( dev-lua/luassert[luajit=] dev-lua/luacheck[luajit=] x11-base/xorg-server[xvfb] - )" + ) +" +BDEPEND=" + virtual/pkgconfig + doc? ( app-doc/doxygen ) +" +PATCHES=( + "${FILESDIR}"/${PN}-2.2.1-make.patch +) + +src_configure() { + export LUA_BIN_NAME=$(usex luajit luajit lua) + export LUA_PKG_NAME=$(usex luajit luajit lua) + tc-export CC PKG_CONFIG +} src_compile() { emake \ - CC=$(tc-getCC) \ - LUA_PKG_NAME=$(usex luajit 'luajit' 'lua') \ - LUA_BIN_NAME=$(usex luajit 'luajit' 'lua') \ PREFIX="${EPREFIX}/usr" \ - all + ${PN} use doc && emake doc } src_test() { - emake \ - LUA_BIN_NAME=$(usex luajit 'luajit' 'lua') \ - run-tests + local failing_test + for failing_test in test_clib_luakit test_image_css; do + mv tests/async/${failing_test}.lua{,.disabled} || die + done + + emake run-tests } src_install() { - sed -i 's/install -m644 luakit.1.gz/install -m644 luakit.1/g' Makefile || die - emake \ DESTDIR="${D}" \ - PREFIX="${EPREFIX}/usr" \ DOCDIR="${EPREFIX}/usr/share/doc/${PF}" \ + PREFIX="${EPREFIX}/usr" \ XDGPREFIX="${EPREFIX}/etc/xdg" \ install @@ -69,9 +80,3 @@ src_install() { use doc && dodoc -r doc/html } - -pkg_postrm() { - xdg_desktop_database_update - xdg_icon_cache_update - xdg_mimeinfo_database_update -} |