Merge master into staging-next
This commit is contained in:
+29
-13
@@ -1,18 +1,18 @@
|
||||
From 2bf6614a6d7516e194e39eb691c05b486860153c Mon Sep 17 00:00:00 2001
|
||||
From 57bed86429db9d871f1442c94f14e94e38972ca3 Mon Sep 17 00:00:00 2001
|
||||
From: worldofpeace <worldofpeace@protonmail.ch>
|
||||
Date: Thu, 16 May 2019 21:15:15 -0400
|
||||
Subject: [PATCH] meson: add options for tests installation dirs
|
||||
|
||||
---
|
||||
meson_options.txt | 6 ++++++
|
||||
tests/meson.build | 19 ++++++++++++++-----
|
||||
2 files changed, 20 insertions(+), 5 deletions(-)
|
||||
tests/meson.build | 23 ++++++++++++++++-------
|
||||
2 files changed, 22 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/meson_options.txt b/meson_options.txt
|
||||
index 578bdae..6f5fa23 100644
|
||||
index b9a2fb5..4b8629f 100644
|
||||
--- a/meson_options.txt
|
||||
+++ b/meson_options.txt
|
||||
@@ -22,3 +22,9 @@ option('tests', type: 'boolean',
|
||||
@@ -23,3 +23,9 @@ option('tests', type: 'boolean',
|
||||
option('installed_tests', type: 'boolean',
|
||||
value: true,
|
||||
description: 'Install tests')
|
||||
@@ -23,12 +23,12 @@ index 578bdae..6f5fa23 100644
|
||||
+ value: '',
|
||||
+ description: 'Installation directory for binary files in tests')
|
||||
diff --git a/tests/meson.build b/tests/meson.build
|
||||
index 1f9bd0e..0253ac3 100644
|
||||
index 77281f5..c4c7fac 100644
|
||||
--- a/tests/meson.build
|
||||
+++ b/tests/meson.build
|
||||
@@ -22,8 +22,17 @@ unit_tests = [
|
||||
python = python3.find_python()
|
||||
gen_installed_test = join_paths(meson.current_source_dir(), 'gen-installed-test.py')
|
||||
@@ -21,8 +21,17 @@ unit_tests = [
|
||||
|
||||
gen_installed_test = find_program('gen-installed-test.py')
|
||||
|
||||
-installed_test_datadir = join_paths(get_option('prefix'), get_option('datadir'), 'installed-tests', graphene_api_path)
|
||||
-installed_test_bindir = join_paths(get_option('prefix'), get_option('libexecdir'), 'installed-tests', graphene_api_path)
|
||||
@@ -46,9 +46,9 @@ index 1f9bd0e..0253ac3 100644
|
||||
|
||||
# Make tests conditional on having mutest-1 installed system-wide, or
|
||||
# available as a subproject
|
||||
@@ -42,13 +51,13 @@ if mutest_dep.found()
|
||||
@@ -40,13 +49,13 @@ if mutest_dep.found()
|
||||
output: wrapper,
|
||||
command: [
|
||||
python,
|
||||
gen_installed_test,
|
||||
- '--testdir=@0@'.format(installed_test_bindir),
|
||||
+ '--testdir=@0@'.format(test_bindir),
|
||||
@@ -62,7 +62,7 @@ index 1f9bd0e..0253ac3 100644
|
||||
)
|
||||
|
||||
test(unit,
|
||||
@@ -57,7 +66,7 @@ if mutest_dep.found()
|
||||
@@ -55,7 +64,7 @@ if mutest_dep.found()
|
||||
include_directories: graphene_inc,
|
||||
c_args: common_cflags,
|
||||
install: get_option('installed_tests'),
|
||||
@@ -71,6 +71,22 @@ index 1f9bd0e..0253ac3 100644
|
||||
),
|
||||
env: ['MUTEST_OUTPUT=tap'],
|
||||
protocol: 'tap',
|
||||
@@ -70,13 +79,13 @@ if build_gir and host_system == 'linux' and not meson.is_cross_build()
|
||||
output: wrapper,
|
||||
command: [
|
||||
gen_installed_test,
|
||||
- '--testdir=@0@'.format(installed_test_bindir),
|
||||
+ '--testdir=@0@'.format(test_bindir),
|
||||
'--testname=@0@'.format(unit),
|
||||
'--outdir=@OUTDIR@',
|
||||
'--outfile=@0@'.format(wrapper),
|
||||
],
|
||||
install: get_option('installed_tests'),
|
||||
- install_dir: installed_test_datadir,
|
||||
+ install_dir: test_datadir,
|
||||
)
|
||||
|
||||
test(unit,
|
||||
--
|
||||
2.22.0
|
||||
2.31.1
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "graphene";
|
||||
version = "1.10.2";
|
||||
version = "1.10.6";
|
||||
|
||||
outputs = [ "out" "devdoc" "installedTests" ];
|
||||
|
||||
@@ -24,19 +24,14 @@ stdenv.mkDerivation rec {
|
||||
owner = "ebassi";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1ljhhjafi1nlndjswx7mg0d01zci90wz77yvz5w8bd9mm8ssw38s";
|
||||
sha256 = "v6YH3fRMTzhp7wmU8in9ukcavzHmOAW54EK9ZwQyFxc=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Add option for changing installation path of installed tests.
|
||||
./0001-meson-add-options-for-tests-installation-dirs.patch
|
||||
];
|
||||
|
||||
mesonFlags = [
|
||||
"-Dgtk_doc=true"
|
||||
"-Dinstalled_test_datadir=${placeholder "installedTests"}/share"
|
||||
"-Dinstalled_test_bindir=${placeholder "installedTests"}/libexec"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
docbook_xml_dtd_43
|
||||
docbook_xsl
|
||||
@@ -57,8 +52,18 @@ stdenv.mkDerivation rec {
|
||||
mutest
|
||||
];
|
||||
|
||||
mesonFlags = [
|
||||
"-Dgtk_doc=true"
|
||||
"-Dinstalled_test_datadir=${placeholder "installedTests"}/share"
|
||||
"-Dinstalled_test_bindir=${placeholder "installedTests"}/libexec"
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs tests/gen-installed-test.py
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
tests = {
|
||||
installedTests = nixosTests.installed-tests.graphene;
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitLab
|
||||
, meson
|
||||
, ninja
|
||||
, pkg-config
|
||||
, vala
|
||||
, gobject-introspection
|
||||
, glib
|
||||
, gtk3
|
||||
, freerdp
|
||||
, nix-update-script
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gtk-frdp";
|
||||
version = "3.37.1-unstable-2020-10-26";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
domain = "gitlab.gnome.org";
|
||||
owner = "GNOME";
|
||||
repo = pname;
|
||||
rev = "805721e82ca1df6a50da3b5bd3b75d6747016482";
|
||||
sha256 = "q/UFKYj3LUkAzll3KeKd6oec0GJnDtTuFMTTatKFlcs=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
vala
|
||||
gobject-introspection
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
glib
|
||||
gtk3
|
||||
freerdp
|
||||
];
|
||||
|
||||
passthru = {
|
||||
updateScript = nix-update-script {
|
||||
attrPath = pname;
|
||||
};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://gitlab.gnome.org/GNOME/gtk-frdp";
|
||||
description = "RDP viewer widget for GTK";
|
||||
maintainers = teams.gnome.members;
|
||||
license = licenses.lgpl3Plus;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{ lib, stdenv
|
||||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, meson
|
||||
, ninja
|
||||
, pkg-config
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libportal";
|
||||
version = "0.3";
|
||||
version = "0.4";
|
||||
|
||||
outputs = [ "out" "dev" "devdoc" ];
|
||||
|
||||
@@ -20,22 +20,9 @@ stdenv.mkDerivation rec {
|
||||
owner = "flatpak";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1s3g17zbbmq3m5jfs62fl94p4irln9hfhpybj7jb05z0p1939rk3";
|
||||
sha256 = "fuYZWGkdazq6H0rThqpF6KIcvwgc17o+CiISb1LjBso=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fix build and .pc file
|
||||
# https://github.com/flatpak/libportal/pull/20
|
||||
(fetchpatch {
|
||||
url = "https://github.com/flatpak/libportal/commit/7828be4ec8f05f8de7b129a1e35b5039d8baaee3.patch";
|
||||
sha256 = "04nadcxx69mbnzljwjrzm88cgapn14x3mghpkhr8b9yrjn7yj86h";
|
||||
})
|
||||
(fetchpatch {
|
||||
url = "https://github.com/flatpak/libportal/commit/bf5de2f6fefec65f701b4ec8712b48b29a33fb71.patch";
|
||||
sha256 = "1v0b09diq49c01j5gg2bpvn5f5gfw1a5nm1l8grc4qg4z9jck1z8";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
|
||||
Reference in New Issue
Block a user