summaryrefslogtreecommitdiff
path: root/repo/graphene
diff options
context:
space:
mode:
Diffstat (limited to 'repo/graphene')
-rw-r--r--repo/graphene/0001-meson-don-t-install-introspection-file-with-installe.patch29
-rw-r--r--repo/graphene/graphene.xibuild34
2 files changed, 63 insertions, 0 deletions
diff --git a/repo/graphene/0001-meson-don-t-install-introspection-file-with-installe.patch b/repo/graphene/0001-meson-don-t-install-introspection-file-with-installe.patch
new file mode 100644
index 0000000..a760553
--- /dev/null
+++ b/repo/graphene/0001-meson-don-t-install-introspection-file-with-installe.patch
@@ -0,0 +1,29 @@
+Patch-Source: https://github.com/ebassi/graphene/pull/248
+From 85289fa63b1a5e4e5a03a79b947d1db5b9ec4778 Mon Sep 17 00:00:00 2001
+From: psykose <alice@ayaya.dev>
+Date: Thu, 7 Apr 2022 19:01:49 +0000
+Subject: [PATCH] meson: don't install introspection file with
+ installed_tests=false
+
+---
+ tests/meson.build | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/tests/meson.build b/tests/meson.build
+index 0a6a355..0120c29 100644
+--- a/tests/meson.build
++++ b/tests/meson.build
+@@ -67,7 +67,9 @@ src_build_path = meson.current_build_dir() / '../src'
+
+ if build_gir and host_system == 'linux' and not meson.is_cross_build()
+ foreach unit: ['introspection.py']
+- install_data(unit, install_dir: installed_test_bindir)
++ if get_option('installed_tests')
++ install_data(unit, install_dir: installed_test_bindir)
++ endif
+
+ wrapper = '@0@.test'.format(unit)
+ custom_target(wrapper,
+--
+2.35.1
+
diff --git a/repo/graphene/graphene.xibuild b/repo/graphene/graphene.xibuild
new file mode 100644
index 0000000..edc040e
--- /dev/null
+++ b/repo/graphene/graphene.xibuild
@@ -0,0 +1,34 @@
+#!/bin/sh
+
+NAME="graphene"
+DESC="A thin layer of graphic data types"
+
+MAKEDEPS="meson glib gobject-introspection"
+
+PKG_VER=1.10.8
+SOURCE="https://github.com/ebassi/graphene/archive/$PKG_VER/graphene-$PKG_VER.tar.gz"
+
+ADDITIONAL="
+0001-meson-don-t-install-introspection-file-with-installe.patch
+"
+
+prepare () {
+ apply_patches
+}
+
+build() {
+ meson --prefix=/usr \
+ -Darm_neon=true \
+ -Dinstalled_tests=false \
+ . output
+ meson compile ${JOBS:+-j ${JOBS}} -C output
+}
+
+check() {
+ meson test --no-rebuild -v -C output
+}
+
+package() {
+ DESTDIR="$PKG_DEST" meson install --no-rebuild -C output
+}
+