From 2c371ae33a0e3e877e8ad362cfe63ca9aca062db Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Tue, 25 May 2021 00:28:46 +0200 Subject: [PATCH 1/5] New package: python3-smartypants-2.0.1 --- srcpkgs/python3-smartypants/template | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 srcpkgs/python3-smartypants/template diff --git a/srcpkgs/python3-smartypants/template b/srcpkgs/python3-smartypants/template new file mode 100644 index 000000000000..728196e7100c --- /dev/null +++ b/srcpkgs/python3-smartypants/template @@ -0,0 +1,19 @@ +# Template file for 'python3-smartypants' +pkgname=python3-smartypants +version=2.0.1 +revision=1 +wrksrc="smartypants.py-$version" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3" +checkdepends="python3-docutils" +short_desc="Python with the SmartyPants" +maintainer="Michal Vasilek " +license="BSD-3-Clause" +homepage="https://github.com/leohemsted/smartypants.py/" +distfiles="https://github.com/leohemsted/smartypants.py/archive/refs/tags/v$version.tar.gz" +checksum=b98191911ff3b4144ef8ad53e776a2d0ad24bd508a905c6ce523597c40022773 + +post_install() { + vlicense COPYING +} From f86e8143af171276909ef8024d954c1026b5f3d5 Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Tue, 25 May 2021 00:28:53 +0200 Subject: [PATCH 2/5] New package: python3-typogrify-2.0.7 --- srcpkgs/python3-typogrify/template | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 srcpkgs/python3-typogrify/template diff --git a/srcpkgs/python3-typogrify/template b/srcpkgs/python3-typogrify/template new file mode 100644 index 000000000000..f168a9cad689 --- /dev/null +++ b/srcpkgs/python3-typogrify/template @@ -0,0 +1,19 @@ +# Template file for 'python3-typogrify' +pkgname=python3-typogrify +version=2.0.7 +revision=1 +wrksrc="typogrify-$version" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-smartypants" +short_desc="Filters to enhance web typography" +maintainer="Michal Vasilek " +license="BSD-3-Clause" +homepage="https://github.com/mintchaos/typogrify" +distfiles="https://github.com/mintchaos/typogrify/archive/refs/tags/$version.tar.gz" +checksum=d5081966c1c1423157e240d5cfe7435b56ca30be57ff8c7fe6f90f6cc42295ee +make_check=no # conflicting dependencies + +post_install() { + vlicense LICENSE.txt +} From 22597ffd707c22533e4af63025476b60e41e20e0 Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Tue, 25 May 2021 00:29:00 +0200 Subject: [PATCH 3/5] New package: gi-docgen-2021.6 --- srcpkgs/gi-docgen/template | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 srcpkgs/gi-docgen/template diff --git a/srcpkgs/gi-docgen/template b/srcpkgs/gi-docgen/template new file mode 100644 index 000000000000..ff1c217d297e --- /dev/null +++ b/srcpkgs/gi-docgen/template @@ -0,0 +1,14 @@ +# Template file for 'gi-docgen' +pkgname=gi-docgen +version=2021.6 +revision=1 +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-Pygments python3-typogrify python3-Jinja2 python3-toml" +short_desc="Documentation generator for GObject-based libraries" +maintainer="Michal Vasilek " +license="Apache-2.0, GPL-3.0-or-later" +homepage="https://gnome.pages.gitlab.gnome.org/gi-docgen/" +distfiles="https://gitlab.gnome.org/GNOME/gi-docgen/-/archive/$version/gi-docgen-$version.tar.gz" +checksum=d43cc51cb0c614f8906469bf313dbd23337f355a3281ecd4324980be773cdff1 +make_check=no # no tests, but check fails From bdc851fffea4ddf376d11513f165b45bbd141648 Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Wed, 7 Jul 2021 17:08:00 +0200 Subject: [PATCH 4/5] sysprof: update to 3.40.1. --- srcpkgs/sysprof/patches/build.patch | 10 -- srcpkgs/sysprof/patches/musl.patch | 157 ---------------------------- srcpkgs/sysprof/template | 12 +-- 3 files changed, 4 insertions(+), 175 deletions(-) delete mode 100644 srcpkgs/sysprof/patches/build.patch delete mode 100644 srcpkgs/sysprof/patches/musl.patch diff --git a/srcpkgs/sysprof/patches/build.patch b/srcpkgs/sysprof/patches/build.patch deleted file mode 100644 index 4d99d6bc3f32..000000000000 --- a/srcpkgs/sysprof/patches/build.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- a/src/libsysprof-capture/sysprof-capture-condition.c -+++ b/src/libsysprof-capture/sysprof-capture-condition.c -@@ -269,6 +269,7 @@ sysprof_capture_condition_copy (const SysprofCaptureCondition *self) - } - - sysprof_assert_not_reached (); -+ return NULL; - } - - static void diff --git a/srcpkgs/sysprof/patches/musl.patch b/srcpkgs/sysprof/patches/musl.patch deleted file mode 100644 index abaac692fb37..000000000000 --- a/srcpkgs/sysprof/patches/musl.patch +++ /dev/null @@ -1,157 +0,0 @@ -From 1d2de32e97bf5569cc33ee9a90c873e1bbd2b1e6 Mon Sep 17 00:00:00 2001 -From: q66 -Date: Sun, 6 Sep 2020 18:21:37 +0200 -Subject: [PATCH] fix build on musl - ---- - .../sysprof-capture-cursor.c | 1 + - .../sysprof-capture-reader.c | 1 + - src/libsysprof-capture/sysprof-capture-util.c | 1 + - .../sysprof-capture-writer-cat.c | 1 + - src/libsysprof-capture/sysprof-collector.c | 1 + - src/libsysprof-capture/sysprof-compat.h | 28 +++++++++++++++++++ - src/libsysprof-capture/sysprof-platform.c | 1 + - 7 files changed, 34 insertions(+) - create mode 100644 src/libsysprof-capture/sysprof-compat.h - -diff --git src/libsysprof-capture/sysprof-capture-cursor.c src/libsysprof-capture/sysprof-capture-cursor.c -index 24563f0..bb77a60 100644 ---- a/src/libsysprof-capture/sysprof-capture-cursor.c -+++ b/src/libsysprof-capture/sysprof-capture-cursor.c -@@ -59,6 +59,7 @@ - #include - #include - -+#include "sysprof-compat.h" - #include "sysprof-capture-condition.h" - #include "sysprof-capture-cursor.h" - #include "sysprof-capture-reader.h" -diff --git src/libsysprof-capture/sysprof-capture-reader.c src/libsysprof-capture/sysprof-capture-reader.c -index 67c6b28..252d006 100644 ---- a/src/libsysprof-capture/sysprof-capture-reader.c -+++ b/src/libsysprof-capture/sysprof-capture-reader.c -@@ -68,6 +68,7 @@ - #include - #include - -+#include "sysprof-compat.h" - #include "sysprof-capture-reader.h" - #include "sysprof-capture-util-private.h" - #include "sysprof-capture-writer.h" -diff --git src/libsysprof-capture/sysprof-capture-util.c src/libsysprof-capture/sysprof-capture-util.c -index 0bbea06..0e5f7e7 100644 ---- a/src/libsysprof-capture/sysprof-capture-util.c -+++ b/src/libsysprof-capture/sysprof-capture-util.c -@@ -56,6 +56,7 @@ - - #include "config.h" - -+#include - #include - #include - #include -diff --git src/libsysprof-capture/sysprof-capture-writer-cat.c src/libsysprof-capture/sysprof-capture-writer-cat.c -index 66171b9..9febbbb 100644 ---- a/src/libsysprof-capture/sysprof-capture-writer-cat.c -+++ b/src/libsysprof-capture/sysprof-capture-writer-cat.c -@@ -63,6 +63,7 @@ - #include - #include - -+#include "sysprof-compat.h" - #include "sysprof-capture.h" - #include "sysprof-macros-internal.h" - -diff --git src/libsysprof-capture/sysprof-collector.c src/libsysprof-capture/sysprof-collector.c -index 1d7a0d6..7af6c96 100644 ---- a/src/libsysprof-capture/sysprof-collector.c -+++ b/src/libsysprof-capture/sysprof-collector.c -@@ -73,6 +73,7 @@ - - #include "mapped-ring-buffer.h" - -+#include "sysprof-compat.h" - #include "sysprof-capture-util-private.h" - #include "sysprof-collector.h" - #include "sysprof-macros-internal.h" -diff --git src/libsysprof-capture/sysprof-compat.h src/libsysprof-capture/sysprof-compat.h -new file mode 100644 -index 0000000..ae9bf10 ---- /dev/null -+++ b/src/libsysprof-capture/sysprof-compat.h -@@ -0,0 +1,28 @@ -+/* added by q66 @ void to fix build on musl */ -+ -+#pragma once -+ -+#ifndef __GLIBC__ -+ -+#include -+#include -+ -+/* from glibc */ -+#ifndef TEMP_FAILURE_RETRY -+# define TEMP_FAILURE_RETRY(expression) \ -+ (__extension__ \ -+ ({ long int __result; \ -+ do __result = (long int) (expression); \ -+ while (__result == -1L && errno == EINTR); \ -+ __result; })) -+#endif -+ -+static inline void *reallocarray(void *p, size_t nmemb, size_t sz) { -+ if (sz && (nmemb > ((size_t)-1 / sz))) { -+ errno = ENOMEM; -+ return NULL; -+ } -+ return realloc(p, nmemb * sz); -+} -+ -+#endif -diff --git src/libsysprof-capture/sysprof-platform.c src/libsysprof-capture/sysprof-platform.c -index a80ab89..05bd590 100644 ---- a/src/libsysprof-capture/sysprof-platform.c -+++ b/src/libsysprof-capture/sysprof-platform.c -@@ -60,6 +60,7 @@ - #include - #include - -+#include "sysprof-compat.h" - #include "sysprof-capture-util-private.h" - #include "sysprof-platform.h" - --- -2.28.0 - -From here onward, blame sgn -Index: meson.build -=================================================================== ---- a/meson.build -+++ b/meson.build -@@ -69,6 +69,7 @@ config_h.set('LOCALEDIR', 'PACKAGE_LOCAL - config_h.set('HAVE_EXECINFO_H', cc.has_header('execinfo.h')) - - config_h.set('HAVE_STRLCPY', cc.has_function('strlcpy')) -+config_h.set('HAVE_REALLOCARRAY', cc.has_function('reallocarray')) - - if get_option('libunwind') - libunwind_dep = dependency('libunwind-generic', required: false) -Index: src/libsysprof-capture/sysprof-compat.h -=================================================================== ---- a/src/libsysprof-capture/sysprof-compat.h 2021-02-05 23:39:58.352258624 +0100 -+++ b/src/libsysprof-capture/sysprof-compat.h 2021-02-05 23:47:07.662841454 +0100 -@@ -17,6 +17,7 @@ - __result; })) - #endif - -+#ifndef HAVE_REALLOCARRAY - static inline void *reallocarray(void *p, size_t nmemb, size_t sz) { - if (sz && (nmemb > ((size_t)-1 / sz))) { - errno = ENOMEM; -@@ -24,5 +25,5 @@ - } - return realloc(p, nmemb * sz); - } -- -+#endif - #endif diff --git a/srcpkgs/sysprof/template b/srcpkgs/sysprof/template index eae51ea7356b..2e24cd7de548 100644 --- a/srcpkgs/sysprof/template +++ b/srcpkgs/sysprof/template @@ -1,27 +1,23 @@ # Template file for 'sysprof' pkgname=sysprof -version=3.38.0 +version=3.40.1 revision=1 build_style=meson configure_args="-Denable_gtk=true -Dsystemdunitdir=deleteme" hostmakedepends="gettext pkg-config itstool glib-devel" -makedepends="gtk+3-devel libdazzle-devel polkit-devel glib-devel elogind-devel" +makedepends="gtk+3-devel libdazzle-devel polkit-devel glib-devel elogind-devel json-glib-devel" short_desc="System-wide profiler for Linux" maintainer="Enno Boland " license="GPL-2.0-or-later, GPL-3.0-or-later" -homepage="http://sysprof.com/" +homepage="https://gitlab.gnome.org/GNOME/sysprof" distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz" -checksum=8bcd728dc2f74e6f589410370dfb1b8801468bb3cc1803aa240735a7cff241ce +checksum=c25000d6a20e8c4d314f5c861a1f70d7c3e2027117437fd9198fa811b9fc7437 # for ITS rules if [ "$CROSS_BUILD" ]; then hostmakedepends+=" polkit-devel" fi -pre_build() { - export SHELL=/bin/bash -} - post_install() { rm -rf ${DESTDIR}/usr/deleteme } From c8fb555fc7376ecc8237bea821b379f3257c6168 Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Tue, 1 Jun 2021 23:48:13 +0200 Subject: [PATCH 5/5] gtk4: update to 4.2.1, split docs, enable sysprof --- srcpkgs/gtk4-doc | 1 + srcpkgs/gtk4/patches/fix-sysprof.patch | 23 ++++++++++++++++ srcpkgs/gtk4/template | 36 +++++++++++++++++++------- 3 files changed, 50 insertions(+), 10 deletions(-) create mode 120000 srcpkgs/gtk4-doc create mode 100644 srcpkgs/gtk4/patches/fix-sysprof.patch diff --git a/srcpkgs/gtk4-doc b/srcpkgs/gtk4-doc new file mode 120000 index 000000000000..870d493d73bf --- /dev/null +++ b/srcpkgs/gtk4-doc @@ -0,0 +1 @@ +gtk4 \ No newline at end of file diff --git a/srcpkgs/gtk4/patches/fix-sysprof.patch b/srcpkgs/gtk4/patches/fix-sysprof.patch new file mode 100644 index 000000000000..76a86d16cc80 --- /dev/null +++ b/srcpkgs/gtk4/patches/fix-sysprof.patch @@ -0,0 +1,23 @@ +--- a/gtk/meson.build ++++ b/gtk/meson.build +@@ -1001,6 +1001,7 @@ gtk_deps = [ + epoxy_dep, + libm, + graphene_dep, ++ libsysprof_dep, + ] + + if harfbuzz_dep.found() and pangoft_dep.found() +diff --git a/tools/meson.build b/tools/meson.build +index 1811b69..804e37f 100644 +--- a/tools/meson.build ++++ b/tools/meson.build +@@ -30,7 +30,7 @@ gtk_tools = [ + 'gtk-builder-tool-enumerate.c', + 'gtk-builder-tool-preview.c'], [libgtk_dep] ], + ['gtk4-update-icon-cache', ['updateiconcache.c'] + extra_update_icon_cache_objs, [ libgtk_static_dep ] ], +- ['gtk4-encode-symbolic-svg', ['encodesymbolic.c'], [ libgtk_static_dep ] ], ++ ['gtk4-encode-symbolic-svg', ['encodesymbolic.c'], [ libgtk_static_dep, libsysprof_dep ] ], + ] + + if os_unix diff --git a/srcpkgs/gtk4/template b/srcpkgs/gtk4/template index 450d393b09c0..6441fdf8e85c 100644 --- a/srcpkgs/gtk4/template +++ b/srcpkgs/gtk4/template @@ -1,42 +1,58 @@ # Template file for 'gtk4' pkgname=gtk4 -version=4.2.0 +version=4.2.1 revision=1 wrksrc="gtk-${version}" build_style=meson build_helper="gir" -configure_args="-Dman-pages=true -Dbuild-tests=false -Dmedia=all +configure_args="-Dman-pages=true -Dbuild-tests=false -Dgtk_doc=true -Dbroadway-backend=$(vopt_if broadway true false) -Dx11-backend=$(vopt_if x11 true false) -Dwayland-backend=$(vopt_if wayland true false) -Dintrospection=$(vopt_if gir enabled disabled) - -Dprint-backends=$(vopt_if cups 'cups,file' file) -Dcolord=$(vopt_if colord enabled disabled) -Dcloudproviders=$(vopt_if cloudproviders enabled disabled) - -Dvulkan=$(vopt_if vulkan enabled disabled)" -hostmakedepends="gettext-devel glib-devel gtk-doc gtk-update-icon-cache perl - pkg-config sassc gettext + -Dvulkan=$(vopt_if vulkan enabled disabled) + -Dsysprof=$(vopt_if sysprof enabled disabled)" +hostmakedepends="gettext-devel glib-devel gi-docgen gtk-update-icon-cache perl + pkg-config sassc gettext libxslt docbook-xsl $(vopt_if wayland 'wayland-devel wayland-protocols')" makedepends="at-spi2-atk-devel gdk-pixbuf-devel libepoxy-devel pango-devel iso-codes graphene-devel gst-plugins-bad1-devel ffmpeg-devel $(vopt_if colord 'colord-devel') $(vopt_if cups 'cups-devel') $(vopt_if wayland 'libxkbcommon-devel wayland-devel wayland-protocols MesaLib-devel') $(vopt_if x11 'libXcursor-devel libXdamage-devel libXext-devel libXinerama-devel libXi-devel libXrandr-devel libXcomposite-devel') - $(vopt_if cloudproviders 'libcloudproviders-devel') $(vopt_if vulkan 'vulkan-loader Vulkan-Headers')" + $(vopt_if cloudproviders 'libcloudproviders-devel') $(vopt_if vulkan 'vulkan-loader Vulkan-Headers') + $(vopt_if sysprof 'sysprof-devel json-glib-devel polkit-devel')" depends="gtk-update-icon-cache shared-mime-info $(vopt_if x11 'dbus-x11')" short_desc="GIMP ToolKit (v4)" maintainer="Enno Boland " license="LGPL-2.1-or-later" homepage="https://www.gtk.org/" distfiles="${GNOME_SITE}/gtk/${version%.*}/gtk-${version}.tar.xz" -checksum=e975f286e911666a79b6bcf486e6f99b0bd9d2b4cc348d19bce487a0b1c97072 +checksum=023169775de43f0a1fde066fbc19d78545ea6a7562c1915abde9b8ae4a7309e6 # Package build options -build_options="broadway cloudproviders colord cups gir vulkan wayland x11" +build_options="broadway cloudproviders colord cups gir vulkan wayland x11 sysprof" desc_option_broadway="Enable support for the HTML5 Broadway backend" desc_option_cloudproviders="Enable integration with cloudproviders, such as Nextcloud" +desc_option_sysprof="Enable support for sysprof profiling" -build_options_default="colord cups broadway wayland x11 cloudproviders vulkan gir" +build_options_default="broadway cloudproviders colord cups gir vulkan wayland x11 sysprof" + +pre_build() { + # help gi-docgen find gi files on cross + if [ -n "$CROSS_BUILD" ]; then + export XDG_DATA_DIRS=/usr/$XBPS_CROSS_TRIPLET/usr/share/ + fi +} + +gtk4-doc_package() { + short_desc+=" - documentation" + pkg_install() { + vmove usr/share/doc + } +} gtk4-devel_package() { depends="${makedepends} ${sourcepkg}>=${version}_${revision}"