[packages/gtk+3] - added meson support to papi patch, reenabled

qboosh qboosh at pld-linux.org
Sun Dec 25 13:32:22 CET 2022


commit 6466b28a1c6ad24559b698dfd206f4cfde3710a8
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Dec 25 13:32:54 2022 +0100

    - added meson support to papi patch, reenabled

 gtk+3-papi.patch | 31 +++++++++++++++++++++++++++++++
 gtk+3.spec       |  2 +-
 2 files changed, 32 insertions(+), 1 deletion(-)
---
diff --git a/gtk+3.spec b/gtk+3.spec
index c7db42f..dd72ab7 100644
--- a/gtk+3.spec
+++ b/gtk+3.spec
@@ -2,7 +2,7 @@
 # Conditional build:
 %bcond_without	apidocs		# gtk-doc build
 %bcond_without	cups		# CUPS print backend
-%bcond_with	papi		# PAPI print backend
+%bcond_without	papi		# PAPI print backend
 %bcond_without	broadway	# Broadway target
 %bcond_with	sysprof		# sysprof profiler support
 %bcond_with	typeahead	# Typeahead in open dialog
diff --git a/gtk+3-papi.patch b/gtk+3-papi.patch
index 52d7903..c7197c5 100644
--- a/gtk+3-papi.patch
+++ b/gtk+3-papi.patch
@@ -67,3 +67,34 @@
  
  }
  
+--- gtk+-3.24.36/modules/printbackends/meson.build.orig	2022-12-22 15:01:18.000000000 +0100
++++ gtk+-3.24.36/modules/printbackends/meson.build	2022-12-25 12:15:51.137673110 +0100
+@@ -51,9 +51,9 @@ if enabled_print_backends.contains('test
+ endif
+ 
+ if enabled_print_backends.contains('papi')
+-  # TODO
+-  if print_strict_deps
+-    error('\'papi\' backend not supported with meson yet')
++  papi_dep = cc.find_library('papi', required: print_strict_deps)
++  if papi_dep.found()
++    print_backends += ['papi']
+   endif
+ endif
+ 
+@@ -138,4 +138,15 @@ if print_backends.contains('cups')
+                 install_dir: printbackends_install_dir,
+                 name_suffix: module_suffix,
+                 install : true)
++endif
++
++if print_backends.contains('papi')
++  shared_module('printbackend-papi',
++                'papi/gtkprintbackendpapi.c',
++                'papi/gtkprinterpapi.c',
++                c_args: printbackends_args,
++                dependencies: [libgtk_dep, papi_dep],
++                install_dir: printbackends_install_dir,
++                name_suffix: module_suffix,
++                install : true)
+ endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gtk+3.git/commitdiff/6466b28a1c6ad24559b698dfd206f4cfde3710a8



More information about the pld-cvs-commit mailing list