Date: Monday, November 22, 2021 @ 19:11:43 Author: heftig Revision: 428962
archrelease: copy trunk to extra-x86_64 Added: devhelp/repos/extra-x86_64/0001-gir-Fix-build-with-WebkitGTK-4.1.patch (from rev 428961, devhelp/trunk/0001-gir-Fix-build-with-WebkitGTK-4.1.patch) devhelp/repos/extra-x86_64/0002-docs-Fix-build-with-WebkitGTK-4.1.patch (from rev 428961, devhelp/trunk/0002-docs-Fix-build-with-WebkitGTK-4.1.patch) devhelp/repos/extra-x86_64/PKGBUILD (from rev 428961, devhelp/trunk/PKGBUILD) Deleted: devhelp/repos/extra-x86_64/PKGBUILD ----------------------------------------------+ 0001-gir-Fix-build-with-WebkitGTK-4.1.patch | 22 ++++ 0002-docs-Fix-build-with-WebkitGTK-4.1.patch | 50 ++++++++++ PKGBUILD | 122 +++++++++++++------------ 3 files changed, 136 insertions(+), 58 deletions(-) Copied: devhelp/repos/extra-x86_64/0001-gir-Fix-build-with-WebkitGTK-4.1.patch (from rev 428961, devhelp/trunk/0001-gir-Fix-build-with-WebkitGTK-4.1.patch) =================================================================== --- 0001-gir-Fix-build-with-WebkitGTK-4.1.patch (rev 0) +++ 0001-gir-Fix-build-with-WebkitGTK-4.1.patch 2021-11-22 19:11:43 UTC (rev 428962) @@ -0,0 +1,22 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Jan Tojnar <jtoj...@gmail.com> +Date: Fri, 1 Oct 2021 23:11:26 +0200 +Subject: [PATCH] gir: Fix build with WebkitGTK 4.1 + +--- + devhelp/meson.build | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/devhelp/meson.build b/devhelp/meson.build +index 010e563f8996..0afdbe760b1d 100644 +--- a/devhelp/meson.build ++++ b/devhelp/meson.build +@@ -126,7 +126,7 @@ libdevhelp_gir = GNOME.generate_gir( + header: 'devhelp/devhelp.h', + identifier_prefix: 'Dh', + include_directories: ROOT_INCLUDE_DIR, +- includes: ['Gtk-3.0', 'WebKit2-4.0'], ++ includes: ['Gtk-3.0', 'WebKit2-' + webkit_abi], + install: true, + namespace: 'Devhelp', + nsversion: LIBDEVHELP_API_VERSION_FULL, Copied: devhelp/repos/extra-x86_64/0002-docs-Fix-build-with-WebkitGTK-4.1.patch (from rev 428961, devhelp/trunk/0002-docs-Fix-build-with-WebkitGTK-4.1.patch) =================================================================== --- 0002-docs-Fix-build-with-WebkitGTK-4.1.patch (rev 0) +++ 0002-docs-Fix-build-with-WebkitGTK-4.1.patch 2021-11-22 19:11:43 UTC (rev 428962) @@ -0,0 +1,50 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Jan Tojnar <jtoj...@gmail.com> +Date: Fri, 1 Oct 2021 23:11:26 +0200 +Subject: [PATCH] docs: Fix build with WebkitGTK 4.1 + +--- + docs/reference/devhelp.toml.in | 2 +- + docs/reference/meson.build | 1 + + meson.build | 2 ++ + 3 files changed, 4 insertions(+), 1 deletion(-) + +diff --git a/docs/reference/devhelp.toml.in b/docs/reference/devhelp.toml.in +index 14d375036a1a..088bf1f54900 100644 +--- a/docs/reference/devhelp.toml.in ++++ b/docs/reference/devhelp.toml.in +@@ -16,7 +16,7 @@ dependencies = ["Gtk-3.0",] + description = "The GTK toolkit" + docs_url = "https://developer.gnome.org/gtk3/stable/" + +- [dependencies."WebKit2-4.0"] ++ [dependencies."WebKit2-@webkit_abi@"] + name = "WebKitGTK 2" + description = "WebKit rendering widget for GTK" + docs_url = "https://webkitgtk.org/reference/webkit2gtk/stable/" +diff --git a/docs/reference/meson.build b/docs/reference/meson.build +index d689e234ba25..5566218a3c13 100644 +--- a/docs/reference/meson.build ++++ b/docs/reference/meson.build +@@ -14,6 +14,7 @@ gidocgen = find_program('gi-docgen', required: get_option('gtk_doc')) + if get_option('gtk_doc') + toml_data = configuration_data() + toml_data.set('version', meson.project_version()) ++ toml_data.set('webkit_abi', webkit_abi) + + devhelp_toml = configure_file( + input: 'devhelp.toml.in', +diff --git a/meson.build b/meson.build +index e57e466e963f..1570d68d3756 100644 +--- a/meson.build ++++ b/meson.build +@@ -47,7 +47,9 @@ lt_age = 0 + LIBDEVHELP_LT_VERSION = '@0@.@1@.@2@'.format(lt_current, lt_revision, lt_age) + + webkit_dep = dependency('webkit2gtk-4.1', required : false) ++webkit_abi = '4.1' + if not webkit_dep.found() ++ webkit_abi = '4.0' + webkit_dep = dependency('webkit2gtk-4.0') + endif + Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-11-22 19:11:34 UTC (rev 428961) +++ PKGBUILD 2021-11-22 19:11:43 UTC (rev 428962) @@ -1,58 +0,0 @@ -# Maintainer: Jan Alexander Steffens (heftig) <hef...@archlinux.org> -# Contributor: Jan de Groot <j...@archlinux.org> -# Contributor: Link Dupont <l...@subpop.net> - -pkgbase=devhelp -pkgname=(devhelp devhelp-docs) -pkgver=41.2 -pkgrel=1 -pkgdesc="API documentation browser for GNOME" -url="https://wiki.gnome.org/Apps/Devhelp" -arch=(x86_64) -license=(GPL) -depends=(webkit2gtk) -makedepends=(git appstream-glib gobject-introspection meson yelp-tools - gi-docgen) -_commit=f05e288031ba171e8a0a589d65cba693487726d9 # tags/41.2^0 -source=("git+https://gitlab.gnome.org/GNOME/devhelp.git#commit=$_commit") -sha256sums=('SKIP') - -pkgver() { - cd devhelp - git describe --tags | sed 's/\.alpha/alpha/;s/-/+/g' -} - -prepare() { - cd devhelp -} - -build() { - arch-meson devhelp build \ - -D gtk_doc=true \ - -D plugin_emacs=true \ - -D plugin_gedit=true \ - -D plugin_vim=true - meson compile -C build -} - -check() { - meson test -C build --print-errorlogs -} - -package_devhelp() { - groups=(gnome-extra) - - meson install -C build --destdir "$pkgdir" - - # Split -docs - mkdir -p docs/usr/share - mv -t docs/usr/share "$pkgdir"/usr/share/doc -} - -package_devhelp-docs() { - pkgdesc+=" (documentation)" - depends=() - options=(!strip) - - mv -t "$pkgdir" docs/* -} Copied: devhelp/repos/extra-x86_64/PKGBUILD (from rev 428961, devhelp/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-11-22 19:11:43 UTC (rev 428962) @@ -0,0 +1,64 @@ +# Maintainer: Jan Alexander Steffens (heftig) <hef...@archlinux.org> +# Contributor: Jan de Groot <j...@archlinux.org> +# Contributor: Link Dupont <l...@subpop.net> + +pkgbase=devhelp +pkgname=(devhelp devhelp-docs) +pkgver=41.2 +pkgrel=2 +pkgdesc="API documentation browser for GNOME" +url="https://wiki.gnome.org/Apps/Devhelp" +arch=(x86_64) +license=(GPL) +depends=(webkit2gtk-4.1) +makedepends=(git appstream-glib gobject-introspection meson yelp-tools + gi-docgen) +_commit=f05e288031ba171e8a0a589d65cba693487726d9 # tags/41.2^0 +source=("git+https://gitlab.gnome.org/GNOME/devhelp.git#commit=$_commit" + 0001-gir-Fix-build-with-WebkitGTK-4.1.patch + 0002-docs-Fix-build-with-WebkitGTK-4.1.patch) +sha256sums=('SKIP' + 'b9ee743c67d0e2f290c336a5925e485996c280da66306fb8106a9f4b91c85ba7' + '0bad708906ccb27c32c1f37c4fb39769929c0482dcf538d6065f12614cc5ce8f') + +pkgver() { + cd devhelp + git describe --tags | sed 's/\.alpha/alpha/;s/-/+/g' +} + +prepare() { + cd devhelp + git apply -3 ../0001-gir-Fix-build-with-WebkitGTK-4.1.patch + git apply -3 ../0002-docs-Fix-build-with-WebkitGTK-4.1.patch +} + +build() { + arch-meson devhelp build \ + -D gtk_doc=true \ + -D plugin_emacs=true \ + -D plugin_gedit=true \ + -D plugin_vim=true + meson compile -C build +} + +check() { + meson test -C build --print-errorlogs +} + +package_devhelp() { + groups=(gnome-extra) + + meson install -C build --destdir "$pkgdir" + + # Split -docs + mkdir -p docs/usr/share + mv -t docs/usr/share "$pkgdir"/usr/share/doc +} + +package_devhelp-docs() { + pkgdesc+=" (documentation)" + depends=() + options=(!strip) + + mv -t "$pkgdir" docs/* +}