graphene: 1.8.6 → 1.9.6

we need unstable version for glthree
This commit is contained in:
Jan Tojnar 2019-08-21 23:12:07 +02:00
parent 9ad99a811d
commit 0e51dcda37
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4
2 changed files with 46 additions and 44 deletions

View File

@ -1,34 +1,31 @@
From c550bf4a41e9f86351b0a65ea3d6c9ab616e27c0 Mon Sep 17 00:00:00 2001 From 2bf6614a6d7516e194e39eb691c05b486860153c Mon Sep 17 00:00:00 2001
From: worldofpeace <worldofpeace@protonmail.ch> From: worldofpeace <worldofpeace@protonmail.ch>
Date: Thu, 16 May 2019 21:15:15 -0400 Date: Thu, 16 May 2019 21:15:15 -0400
Subject: [PATCH] meson: add options for tests installation dirs Subject: [PATCH] meson: add options for tests installation dirs
--- ---
meson_options.txt | 6 ++++++ meson_options.txt | 6 ++++++
src/tests/meson.build | 19 ++++++++++++++----- tests/meson.build | 19 ++++++++++++++-----
2 files changed, 20 insertions(+), 5 deletions(-) 2 files changed, 20 insertions(+), 5 deletions(-)
diff --git a/meson_options.txt b/meson_options.txt diff --git a/meson_options.txt b/meson_options.txt
index c938805..c1e9e95 100644 index 578bdae..6f5fa23 100644
--- a/meson_options.txt --- a/meson_options.txt
+++ b/meson_options.txt +++ b/meson_options.txt
@@ -19,6 +19,12 @@ option('arm_neon', type: 'boolean', @@ -22,3 +22,9 @@ option('tests', type: 'boolean',
option('tests', type: 'boolean', option('installed_tests', type: 'boolean',
value: true, value: true,
description: 'Build the test suite (requires GObject)') description: 'Install tests')
+option('installed_test_datadir', type: 'string', +option('installed_test_datadir', type: 'string',
+ value: '', + value: '',
+ description: 'Installation directory for data files in tests') + description: 'Installation directory for data files in tests')
+option('installed_test_bindir', type: 'string', +option('installed_test_bindir', type: 'string',
+ value: '', + value: '',
+ description: 'Installation directory for binary files in tests') + description: 'Installation directory for binary files in tests')
option('benchmarks', type: 'boolean', diff --git a/tests/meson.build b/tests/meson.build
value: true, index 1f9bd0e..0253ac3 100644
description: 'Build the benchmarks suite (requires GObject)') --- a/tests/meson.build
diff --git a/src/tests/meson.build b/src/tests/meson.build +++ b/tests/meson.build
index 62129c6..0186400 100644
--- a/src/tests/meson.build
+++ b/src/tests/meson.build
@@ -22,8 +22,17 @@ unit_tests = [ @@ -22,8 +22,17 @@ unit_tests = [
python = python3.find_python() python = python3.find_python()
gen_installed_test = join_paths(meson.current_source_dir(), 'gen-installed-test.py') gen_installed_test = join_paths(meson.current_source_dir(), 'gen-installed-test.py')
@ -47,9 +44,9 @@ index 62129c6..0186400 100644
+ test_bindir = join_paths(get_option('prefix'), get_option('libexecdir'), test_suffix) + test_bindir = join_paths(get_option('prefix'), get_option('libexecdir'), test_suffix)
+endif +endif
foreach unit: unit_tests # Make tests conditional on having mutest-1 installed system-wide, or
wrapper = '@0@.test'.format(unit) # available as a subproject
@@ -32,13 +41,13 @@ foreach unit: unit_tests @@ -42,13 +51,13 @@ if mutest_dep.found()
command: [ command: [
python, python,
gen_installed_test, gen_installed_test,
@ -59,21 +56,21 @@ index 62129c6..0186400 100644
'--outdir=@OUTDIR@', '--outdir=@OUTDIR@',
'--outfile=@0@'.format(wrapper), '--outfile=@0@'.format(wrapper),
], ],
install: true, install: get_option('installed_tests'),
- install_dir: installed_test_datadir) - install_dir: installed_test_datadir,
+ install_dir: test_datadir) + install_dir: test_datadir,
)
exe = executable(unit, unit + '.c', test(unit,
dependencies: graphene_dep, @@ -57,7 +66,7 @@ if mutest_dep.found()
@@ -50,7 +59,7 @@ foreach unit: unit_tests include_directories: graphene_inc,
'-DGLIB_DISABLE_DEPRECATION_WARNINGS', c_args: common_cflags,
], install: get_option('installed_tests'),
install: true, - install_dir: installed_test_bindir,
- install_dir: installed_test_bindir) + install_dir: test_bindir,
+ install_dir: test_bindir) ),
env: ['MUTEST_OUTPUT=tap'],
test(unit, exe, args: [ '--tap', '-k' ]) protocol: 'tap',
endforeach
-- --
2.21.0 2.22.0

View File

@ -4,6 +4,7 @@
, meson , meson
, ninja , ninja
, python3 , python3
, mutest
, glib , glib
, gtk-doc , gtk-doc
, docbook_xsl , docbook_xsl
@ -13,7 +14,7 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "graphene"; pname = "graphene";
version = "1.8.6"; version = "1.9.6";
outputs = [ "out" "devdoc" "installedTests" ]; outputs = [ "out" "devdoc" "installedTests" ];
@ -21,7 +22,7 @@ stdenv.mkDerivation rec {
owner = "ebassi"; owner = "ebassi";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "1hdbdzcz86jrvsq5h954ph9q62m8jr2a5s5acklxhdkfqn5bkbv8"; sha256 = "0hb7s6g00l7zlf4hlfda55krn0pls9ajz0hcqrh8m656zr18ddwa";
}; };
patches = [ patches = [
@ -41,17 +42,21 @@ stdenv.mkDerivation rec {
meson meson
ninja ninja
pkgconfig pkgconfig
gobject-introspection
python3 python3
]; ];
buildInputs = [ buildInputs = [
glib
gobject-introspection gobject-introspection
]; ];
checkInputs = [ checkInputs = [
glib mutest
]; ];
doCheck = true;
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "A thin layer of graphic data types"; description = "A thin layer of graphic data types";
homepage = "https://ebassi.github.com/graphene"; homepage = "https://ebassi.github.com/graphene";