File: patch-meson-build.diff

package info (click to toggle)
loupe 49.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,876 kB
  • sloc: python: 110; makefile: 36
file content (55 lines) | stat: -rw-r--r-- 1,202 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
From: Matthias Geiger <werdahias@riseup.net>
Date: Sat, 30 Sep 2023 14:44:44 -0400
Subject: Patch meson.build

This patch allows building of Loupe, patching the relevant
meson paths with the Debian ones. Additionally, we skip the doctests.

Forwarded: not-needed
Last-Update: 2025-09-02
---
 meson_options.txt | 4 ++++
 src/meson.build   | 5 ++---
 2 files changed, 7 insertions(+), 5 deletions(-)

--- a/meson_options.txt
+++ b/meson_options.txt
@@ -17,3 +17,7 @@
   type: 'feature',
   description: 'Enable X11 specific features.',
 )
+option(
+  'host_arch',
+  type: 'string',
+)
--- a/src/meson.build
+++ b/src/meson.build
@@ -16,7 +16,6 @@
 endif
 
 cargo_env = {
-  'CARGO_HOME': build_root / 'cargo-home',
   'APP_ID': app_id,
   'VERSION': version,
   'LOCALEDIR': localedir,
@@ -48,7 +47,7 @@
   output: meson.project_name(),
   command: [
     'cp',
-    'src' / rust_target / meson.project_name(),
+    build_root / 'src' / get_option('host_arch') / 'release'/ meson.project_name(),
     '@OUTPUT@',
   ],
 )
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -5,6 +5,9 @@
 rust-version = "1.85"
 license = "GPL-3.0-or-later"
 
+[lib]
+doctest = false
+
 [profile.release]
 lto = true
 codegen-units = 1