diff options
author | Aaron Ball <nullspoon@oper.io> | 2023-04-03 19:12:54 -0600 |
---|---|---|
committer | Aaron Ball <nullspoon@oper.io> | 2023-04-03 19:12:54 -0600 |
commit | 6842c73edbf9c488fdc0e746202c4fdd9f485539 (patch) | |
tree | d9fa6ba341fc1eeb61b5de804b40464fd04a48bd /webkitgtk-6.0 | |
download | crux-ports-web-6842c73edbf9c488fdc0e746202c4fdd9f485539.tar.gz crux-ports-web-6842c73edbf9c488fdc0e746202c4fdd9f485539.tar.xz |
Initial commit of all dependencies for latest epiphany
This includes gi-docgen, python3 markdown, smartypants, and typogrify,
and webkitgtk API 6.0 from unstable release 2.41.1.
This repo will exist to more easily release the absolute latest of
Epiphany, WebKit, and relevant dependencies not already present in the
stock repos for Crux.
Diffstat (limited to 'webkitgtk-6.0')
-rw-r--r-- | webkitgtk-6.0/.footprint | 125 | ||||
-rw-r--r-- | webkitgtk-6.0/.md5sum | 2 | ||||
-rw-r--r-- | webkitgtk-6.0/.signature | 6 | ||||
-rw-r--r-- | webkitgtk-6.0/Pkgfile | 43 | ||||
-rw-r--r-- | webkitgtk-6.0/pipewire.patch | 43 |
5 files changed, 219 insertions, 0 deletions
diff --git a/webkitgtk-6.0/.footprint b/webkitgtk-6.0/.footprint new file mode 100644 index 0000000..1d4354f --- /dev/null +++ b/webkitgtk-6.0/.footprint @@ -0,0 +1,125 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/WebKitWebDriver +drwxr-xr-x root/root usr/include/ +drwxr-xr-x root/root usr/include/webkitgtk-6.0/ +drwxr-xr-x root/root usr/include/webkitgtk-6.0/jsc/ +-rw-r--r-- root/root usr/include/webkitgtk-6.0/jsc/JSCClass.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/jsc/JSCContext.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/jsc/JSCDefines.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/jsc/JSCException.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/jsc/JSCOptions.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/jsc/JSCValue.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/jsc/JSCVersion.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/jsc/JSCVirtualMachine.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/jsc/JSCWeakValue.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/jsc/jsc.h +drwxr-xr-x root/root usr/include/webkitgtk-6.0/webkit/ +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitApplicationInfo.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitAuthenticationRequest.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitAutocleanups.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitAutomationSession.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitBackForwardList.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitBackForwardListItem.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitClipboardPermissionRequest.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitColorChooserRequest.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitContextMenu.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitContextMenuActions.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitContextMenuItem.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitCookieManager.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitCredential.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitDefines.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitDeviceInfoPermissionRequest.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitDownload.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitEditingCommands.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitEditorState.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitEnumTypes.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitError.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitFaviconDatabase.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitFileChooserRequest.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitFindController.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitFormSubmissionRequest.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitFrame.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitGeolocationManager.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitGeolocationPermissionRequest.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitHitTestResult.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitInputMethodContext.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitInstallMissingMediaPluginsPermissionRequest.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitMediaKeySystemPermissionRequest.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitMemoryPressureSettings.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitNavigationAction.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitNavigationPolicyDecision.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitNetworkProxySettings.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitNetworkSession.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitNotification.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitNotificationPermissionRequest.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitOptionMenu.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitOptionMenuItem.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitPermissionRequest.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitPermissionStateQuery.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitPointerLockPermissionRequest.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitPolicyDecision.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitPrintOperation.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitResponsePolicyDecision.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitScriptDialog.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitScriptWorld.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitSecurityManager.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitSecurityOrigin.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitSettings.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitURIRequest.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitURIResponse.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitURISchemeRequest.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitURISchemeResponse.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitURIUtilities.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitUserContent.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitUserContentFilterStore.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitUserContentManager.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitUserMediaPermissionRequest.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitUserMessage.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitVersion.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitWebContext.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitWebEditor.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitWebFormManager.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitWebHitTestResult.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitWebInspector.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitWebPage.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitWebProcessEnumTypes.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitWebProcessExtension.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitWebResource.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitWebView.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitWebViewBase.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitWebViewSessionState.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitWebsiteData.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitWebsiteDataAccessPermissionRequest.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitWebsiteDataManager.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitWebsitePolicies.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/WebKitWindowProperties.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/webkit-web-process-extension.h +-rw-r--r-- root/root usr/include/webkitgtk-6.0/webkit/webkit.h +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/girepository-1.0/ +-rw-r--r-- root/root usr/lib/girepository-1.0/JavaScriptCore-6.0.typelib +-rw-r--r-- root/root usr/lib/girepository-1.0/WebKit-6.0.typelib +-rw-r--r-- root/root usr/lib/girepository-1.0/WebKitWebProcessExtension-6.0.typelib +lrwxrwxrwx root/root usr/lib/libjavascriptcoregtk-6.0.so -> libjavascriptcoregtk-6.0.so.1 +lrwxrwxrwx root/root usr/lib/libjavascriptcoregtk-6.0.so.1 -> libjavascriptcoregtk-6.0.so.1.1.0 +-rwxr-xr-x root/root usr/lib/libjavascriptcoregtk-6.0.so.1.1.0 +lrwxrwxrwx root/root usr/lib/libwebkitgtk-6.0.so -> libwebkitgtk-6.0.so.4 +lrwxrwxrwx root/root usr/lib/libwebkitgtk-6.0.so.4 -> libwebkitgtk-6.0.so.4.1.0 +-rwxr-xr-x root/root usr/lib/libwebkitgtk-6.0.so.4.1.0 +drwxr-xr-x root/root usr/lib/pkgconfig/ +-rw-r--r-- root/root usr/lib/pkgconfig/javascriptcoregtk-6.0.pc +-rw-r--r-- root/root usr/lib/pkgconfig/webkitgtk-6.0.pc +-rw-r--r-- root/root usr/lib/pkgconfig/webkitgtk-web-process-extension-6.0.pc +drwxr-xr-x root/root usr/lib/webkitgtk-6.0/ +-rwxr-xr-x root/root usr/lib/webkitgtk-6.0/MiniBrowser +-rwxr-xr-x root/root usr/lib/webkitgtk-6.0/WebKitNetworkProcess +-rwxr-xr-x root/root usr/lib/webkitgtk-6.0/WebKitWebProcess +drwxr-xr-x root/root usr/lib/webkitgtk-6.0/injected-bundle/ +-rwxr-xr-x root/root usr/lib/webkitgtk-6.0/injected-bundle/libwebkitgtkinjectedbundle.so +-rwxr-xr-x root/root usr/lib/webkitgtk-6.0/jsc +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/gir-1.0/ +-rw-r--r-- root/root usr/share/gir-1.0/JavaScriptCore-6.0.gir +-rw-r--r-- root/root usr/share/gir-1.0/WebKit-6.0.gir +-rw-r--r-- root/root usr/share/gir-1.0/WebKitWebProcessExtension-6.0.gir diff --git a/webkitgtk-6.0/.md5sum b/webkitgtk-6.0/.md5sum new file mode 100644 index 0000000..7a9fca2 --- /dev/null +++ b/webkitgtk-6.0/.md5sum @@ -0,0 +1,2 @@ +0b8c32b92dddd063c5fbaff3cec96e44 pipewire.patch +47d97fd66ac8f1fedab274d2e9ceecbc webkitgtk-2.41.1.tar.xz diff --git a/webkitgtk-6.0/.signature b/webkitgtk-6.0/.signature new file mode 100644 index 0000000..984bc81 --- /dev/null +++ b/webkitgtk-6.0/.signature @@ -0,0 +1,6 @@ +untrusted comment: verify with /etc/ports/nullspoon-webkit.pub +RWQWGh6g2RuV7nMGXDdzA2tsvmR/0Yh9rKoefbjKfZUjujzUwGTQVb8JSD2yeI07k9/o4qfTI8uJjONeuVcw02HyjM5J89B7kgo= +SHA256 (Pkgfile) = 980c046425f44cfbeaccce6eab686c423730aff0985ac3db81bfd1d97b4c07ef +SHA256 (.footprint) = 140f0bb776b61360a9d536aaf5e4ac9be0de8cb7870bf75e1438835d0657746f +SHA256 (webkitgtk-2.41.1.tar.xz) = 0bf8ddfd2c86f30605d3a05e74fc37cec36de29992139fff9ac0483a094ebfea +SHA256 (pipewire.patch) = ca4a27c4edd3099d0c8b99ef91796feb00038d1daba0055328597c54e952e56b diff --git a/webkitgtk-6.0/Pkgfile b/webkitgtk-6.0/Pkgfile new file mode 100644 index 0000000..ec15823 --- /dev/null +++ b/webkitgtk-6.0/Pkgfile @@ -0,0 +1,43 @@ +# Description: Small, efficient and fast rendering engine for Web Browsers. +# URL: https://www.webkitgtk.org/ +# Maintainer: Aaron Ball, nullspoon at oper dot io +# Depends on: gst-plugins-base gtk4 hyphen icu lcms2 libseccomp libsecret libsoup3 xorg-libxcomposite libwebp libxslt ruby woff2 xorg-libxt gi-docgen openjpeg2 libnotify enchant wpebackend-fdo unifdef libavif bubblewrap xdg-dbus-proxy +# Optional: + +name=webkitgtk-6.0 +#version=2.40.0 # Stable +version=2.41.1 # Unstable +release=1 +source=(https://webkitgtk.org/releases/webkitgtk-${version}.tar.xz + pipewire.patch) + +build() { + # fail the build if dependencies are not met + ls /usr/include/harfbuzz/hb-icu.h || (printf '\e[1;31m%-6s\e[m\n' "You need to install icu, then rebuild harfbuzz for webkitgtk to work, quitting..." ; exit 1) + + # From https://github.com/WebKit/WebKit/pull/5671 + # Without this, pipewire cannot be accessed because of bubblewrap + patch \ + webkitgtk-${version}/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp \ + pipewire.patch + + export CFLAGS='-g1' + export CXXFLAGS='-g1' + + cmake -S webkitgtk-$version -B build -G Ninja ${PKGMK_WEBKITGTK} \ + -D CMAKE_INSTALL_PREFIX:PATH=/usr \ + -D CMAKE_INSTALL_LIBDIR:PATH=/usr/lib \ + -D CMAKE_INSTALL_LIBEXECDIR:PATH=/usr/lib \ + -D CMAKE_BUILD_TYPE=Release \ + -D USE_AVIF=ON \ + -D PORT=GTK \ + -D USE_GTK4=ON \ + -D ENABLE_MINIBROWSER=ON \ + -D ENABLE_JOURNALD_LOG=OFF \ + + cmake --build build + DESTDIR=$PKG cmake --install build + + rm -r $PKG/usr/share/locale + rm -r $PKG/usr/share/gtk-doc +} diff --git a/webkitgtk-6.0/pipewire.patch b/webkitgtk-6.0/pipewire.patch new file mode 100644 index 0000000..fc5cb05 --- /dev/null +++ b/webkitgtk-6.0/pipewire.patch @@ -0,0 +1,43 @@ +--- BubblewrapLauncher.cpp 2023-01-03 04:46:43.369643000 -0700 ++++ BubblewrapLauncher.cpp.new 2023-04-03 18:17:29.815248828 -0600 +@@ -302,6 +302,28 @@ + bindIfExists(args, sndioHomeDir.get(), BindFlags::ReadWrite); + } + ++static void bindPipewire(Vector<CString>& args) ++{ ++ const char* xdgRuntimeDir = g_get_user_runtime_dir(); ++ const char* pwRuntimeDir = g_getenv("PIPEWIRE_RUNTIME_DIR"); ++ const char* pwRemote = g_getenv("PIPEWIRE_REMOTE"); ++ ++ if (!pwRemote) ++ pwRemote = "pipewire-0"; ++ ++ if (pwRuntimeDir) { ++ GUniquePtr<char> pwRuntimeFile(g_build_filename(pwRuntimeDir, pwRemote, nullptr)); ++ bindIfExists(args, pwRuntimeFile.get(), BindFlags::ReadWrite); ++ } else { ++ GUniquePtr<char> xdgRuntimeFile(g_build_filename(xdgRuntimeDir, pwRemote, nullptr)); ++ bindIfExists(args, xdgRuntimeFile.get(), BindFlags::ReadWrite); ++ } ++ ++ // System-wide pipewire ++ GUniquePtr<char> sysRuntimeFile(g_build_filename("/run/pipewire", pwRemote, nullptr)); ++ bindIfExists(args, sysRuntimeFile.get(), BindFlags::ReadWrite); ++} ++ + static void bindFonts(Vector<CString>& args) + { + const char* configDir = g_get_user_config_dir(); +@@ -797,9 +819,10 @@ + static std::unique_ptr<XDGDBusProxy> dbusProxy = makeUnique<XDGDBusProxy>(); + if (dbusProxy) + bindDBusSession(sandboxArgs, *dbusProxy, flatpakInfoFd != -1); +- // FIXME: We should move to Pipewire as soon as viable, Pulse doesn't restrict clients atm. ++ // FIXME: Disable PulseAudio access when Pipewire is available. + bindPulse(sandboxArgs); + bindSndio(sandboxArgs); ++ bindPipewire(sandboxArgs); + bindFonts(sandboxArgs); + bindGStreamerData(sandboxArgs); + bindOpenGL(sandboxArgs); |