1 |
commit: a4941a41f29c6e912417905a113e72418f2a8621 |
2 |
Author: David Heidelberg <david <AT> ixit <DOT> cz> |
3 |
AuthorDate: Sun Oct 27 15:44:27 2019 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 2 02:40:51 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4941a41 |
7 |
|
8 |
dev-libs/libwacom: Version bump to 1.1 |
9 |
|
10 |
- port to meson |
11 |
- include two meson fixes patches from master |
12 |
- add patch for optional doc/doxygen compilation option (merged upstream) |
13 |
|
14 |
Closes: https://bugs.gentoo.org/698660 |
15 |
Signed-off-by: David Heidelberg <david <AT> ixit.cz> |
16 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
17 |
|
18 |
dev-libs/libwacom/Manifest | 1 + |
19 |
.../files/libwacom-1.1-configurable_docs.patch | 39 ++++++++++++++++++ |
20 |
.../files/libwacom-1.1-match-with-autotools.patch | 24 +++++++++++ |
21 |
.../files/libwacom-1.1-meson-add-private.patch | 21 ++++++++++ |
22 |
dev-libs/libwacom/libwacom-1.1.ebuild | 46 ++++++++++++++++++++++ |
23 |
5 files changed, 131 insertions(+) |
24 |
|
25 |
diff --git a/dev-libs/libwacom/Manifest b/dev-libs/libwacom/Manifest |
26 |
index 853e050675f..1c34c96423c 100644 |
27 |
--- a/dev-libs/libwacom/Manifest |
28 |
+++ b/dev-libs/libwacom/Manifest |
29 |
@@ -1,2 +1,3 @@ |
30 |
DIST libwacom-0.33.tar.bz2 503217 BLAKE2B 034b06495209cc88e9a3131a8a23b35fdadf8bc038ff9db62d4dc05b31657d1cfbe4856cf7b1a6112c97d47bb532b664e4e59c3b00a2aebf14dfacbcac141063 SHA512 de4d9cf3b5f4d87a159ba8ee617bafce9d13b67dc23d9dc67efd57317b0df2079dd0de328bc800de47f14ee49ea82bb842e34297cef23ba336c1ddca3afa826d |
31 |
DIST libwacom-1.0.tar.bz2 502457 BLAKE2B c7de15e8e403a4778662c711a4318ffd46c65fcb895e50181b14f6f9c4169493fcd14a78bae62cfad8af0e4d762b5babb06df21ff257994b1890d5ec9078e6ef SHA512 43a8098ed06c86edc647d6a6b0ee0b465bcb6089df77fd361909271aaf5f18ae2fecfa34062fd4a9fdee6983ff1303b99636485ebde6a75a669307bd19c2b313 |
32 |
+DIST libwacom-1.1.tar.bz2 502696 BLAKE2B 1c2e03b00eb3b17dea2d5cd3e61afa4b7f36dcb727f07bb1cc42631febc9d1939bdd2652d6fd1f0d020815cac1f937c1daddae3019ac9aa01659442cdc8b9054 SHA512 8b63d9bad18c27f8078711408a7b79c70086cd0c64fe692ee693d53d834dff8ab45631eabd206f0dfac80d8cc86c14b5833831b1b99b06e34aacd235176d266b |
33 |
|
34 |
diff --git a/dev-libs/libwacom/files/libwacom-1.1-configurable_docs.patch b/dev-libs/libwacom/files/libwacom-1.1-configurable_docs.patch |
35 |
new file mode 100644 |
36 |
index 00000000000..47eb27d54bf |
37 |
--- /dev/null |
38 |
+++ b/dev-libs/libwacom/files/libwacom-1.1-configurable_docs.patch |
39 |
@@ -0,0 +1,39 @@ |
40 |
+From 18722d30b9eb38d0cd22609e076ad45c810f137d Mon Sep 17 00:00:00 2001 |
41 |
+From: David Heidelberg <david@××××.cz> |
42 |
+Date: Sun, 27 Oct 2019 20:34:55 +0100 |
43 |
+Subject: [PATCH] meson: make documentation a feature |
44 |
+ |
45 |
+Nice to have for distributions, which needs to have predicable build. |
46 |
+ |
47 |
+Signed-off-by: David Heidelberg <david@××××.cz> |
48 |
+--- |
49 |
+ meson.build | 3 ++- |
50 |
+ meson_options.txt | 4 ++++ |
51 |
+ 2 files changed, 6 insertions(+), 1 deletion(-) |
52 |
+ |
53 |
+diff --git a/meson.build b/meson.build |
54 |
+index 8283613..be2fcb3 100644 |
55 |
+--- a/meson.build |
56 |
++++ b/meson.build |
57 |
+@@ -460,7 +460,8 @@ install_man(configure_file(input: 'tools/libwacom-list-local-devices.man', |
58 |
+ copy: true)) |
59 |
+ |
60 |
+ ############### docs ########################### |
61 |
+-doxygen = find_program('doxygen', required: false) |
62 |
++docs_feature = get_option('documentation') |
63 |
++doxygen = find_program('doxygen', required: docs_feature) |
64 |
+ if doxygen.found() |
65 |
+ src_doxygen = [ |
66 |
+ join_paths(dir_src, 'libwacom.h'), |
67 |
+diff --git a/meson_options.txt b/meson_options.txt |
68 |
+index 1d75434..84c92bf 100644 |
69 |
+--- a/meson_options.txt |
70 |
++++ b/meson_options.txt |
71 |
+@@ -1,3 +1,7 @@ |
72 |
++option('documentation', |
73 |
++ type: 'feature', |
74 |
++ value: 'auto', |
75 |
++ description: 'Build doxygen documentation [default=auto]') |
76 |
+ option('udev-dir', |
77 |
+ type: 'string', |
78 |
+ value: '', |
79 |
|
80 |
diff --git a/dev-libs/libwacom/files/libwacom-1.1-match-with-autotools.patch b/dev-libs/libwacom/files/libwacom-1.1-match-with-autotools.patch |
81 |
new file mode 100644 |
82 |
index 00000000000..06858cd36ad |
83 |
--- /dev/null |
84 |
+++ b/dev-libs/libwacom/files/libwacom-1.1-match-with-autotools.patch |
85 |
@@ -0,0 +1,24 @@ |
86 |
+From 07753990d7476d52cfd34fb7558c077bd8b44eeb Mon Sep 17 00:00:00 2001 |
87 |
+From: Peter Hutterer <peter.hutterer@×××××.net> |
88 |
+Date: Mon, 23 Sep 2019 09:29:45 +1000 |
89 |
+Subject: [PATCH] meson.build: match the libwacom.pc file Name with the |
90 |
+ autotools one (#164) |
91 |
+ |
92 |
+Signed-off-by: Peter Hutterer <peter.hutterer@×××××.net> |
93 |
+--- |
94 |
+ meson.build | 2 +- |
95 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
96 |
+ |
97 |
+diff --git a/meson.build b/meson.build |
98 |
+index 13459f7..3e0cc07 100644 |
99 |
+--- a/meson.build |
100 |
++++ b/meson.build |
101 |
+@@ -81,7 +81,7 @@ dep_libwacom = declare_dependency(link_with: lib_libwacom) |
102 |
+ install_headers('libwacom/libwacom.h', subdir: 'libwacom-1.0/libwacom') |
103 |
+ |
104 |
+ pkgconfig.generate(filebase: 'libwacom', |
105 |
+- name: 'Libwacom', |
106 |
++ name: 'libwacom', |
107 |
+ description: 'Wacom model feature query library', |
108 |
+ version: meson.project_version(), |
109 |
+ subdirs: 'libwacom-1.0', |
110 |
|
111 |
diff --git a/dev-libs/libwacom/files/libwacom-1.1-meson-add-private.patch b/dev-libs/libwacom/files/libwacom-1.1-meson-add-private.patch |
112 |
new file mode 100644 |
113 |
index 00000000000..e31df3a683d |
114 |
--- /dev/null |
115 |
+++ b/dev-libs/libwacom/files/libwacom-1.1-meson-add-private.patch |
116 |
@@ -0,0 +1,21 @@ |
117 |
+From 6953c5a9fc51e286134cb977b3fdfe0999f3503a Mon Sep 17 00:00:00 2001 |
118 |
+From: worldofpeace <worldofpeace@××××××××××.ch> |
119 |
+Date: Sun, 22 Sep 2019 19:04:58 -0400 |
120 |
+Subject: [PATCH] meson: add private requires to .pc (#163) |
121 |
+ |
122 |
+--- |
123 |
+ meson.build | 1 + |
124 |
+ 1 file changed, 1 insertion(+) |
125 |
+ |
126 |
+diff --git a/meson.build b/meson.build |
127 |
+index 0ae03e1..13459f7 100644 |
128 |
+--- a/meson.build |
129 |
++++ b/meson.build |
130 |
+@@ -85,6 +85,7 @@ pkgconfig.generate(filebase: 'libwacom', |
131 |
+ description: 'Wacom model feature query library', |
132 |
+ version: meson.project_version(), |
133 |
+ subdirs: 'libwacom-1.0', |
134 |
++ requires_private: deps_libwacom, |
135 |
+ libraries: lib_libwacom) |
136 |
+ |
137 |
+ #################### data files ######################## |
138 |
|
139 |
diff --git a/dev-libs/libwacom/libwacom-1.1.ebuild b/dev-libs/libwacom/libwacom-1.1.ebuild |
140 |
new file mode 100644 |
141 |
index 00000000000..0496e24b9b6 |
142 |
--- /dev/null |
143 |
+++ b/dev-libs/libwacom/libwacom-1.1.ebuild |
144 |
@@ -0,0 +1,46 @@ |
145 |
+# Copyright 1999-2019 Gentoo Authors |
146 |
+# Distributed under the terms of the GNU General Public License v2 |
147 |
+ |
148 |
+EAPI=7 |
149 |
+ |
150 |
+inherit meson udev toolchain-funcs |
151 |
+ |
152 |
+DESCRIPTION="Library for identifying Wacom tablets and their model-specific features" |
153 |
+HOMEPAGE="https://github.com/linuxwacom/libwacom" |
154 |
+SRC_URI="https://github.com/linuxwacom/${PN}/releases/download/${P}/${P}.tar.bz2" |
155 |
+ |
156 |
+LICENSE="MIT" |
157 |
+SLOT="0" |
158 |
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
159 |
+IUSE="doc test" |
160 |
+RESTRICT="!test? ( test )" |
161 |
+ |
162 |
+BDEPEND=" |
163 |
+ virtual/pkgconfig |
164 |
+ doc? ( app-doc/doxygen ) |
165 |
+" |
166 |
+RDEPEND=" |
167 |
+ dev-libs/glib:2 |
168 |
+ dev-libs/libgudev:= |
169 |
+" |
170 |
+DEPEND="${RDEPEND}" |
171 |
+ |
172 |
+PATCHES=( |
173 |
+ "${FILESDIR}/${P}-meson-add-private.patch" |
174 |
+ "${FILESDIR}/${P}-match-with-autotools.patch" |
175 |
+ "${FILESDIR}/${P}-configurable_docs.patch" |
176 |
+) |
177 |
+ |
178 |
+pkg_setup() { |
179 |
+ tc-ld-disable-gold # bug https://github.com/linuxwacom/libwacom/issues/170 |
180 |
+} |
181 |
+ |
182 |
+src_configure() { |
183 |
+ local emesonargs=( |
184 |
+ $(meson_feature doc documentation) |
185 |
+ $(meson_use test tests) |
186 |
+ -Dudev-dir=$(get_udevdir) |
187 |
+ |
188 |
+ ) |
189 |
+ meson_src_configure |
190 |
+} |