1 |
commit: dab0c933c1c8cb795ccc0b406c49bbf6f2f45f1a |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 18 23:11:59 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 18 23:13:29 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dab0c933 |
7 |
|
8 |
dev-libs/tinyxml2: add 8.1.0 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
dev-libs/tinyxml2/Manifest | 1 + |
13 |
.../tinyxml2/files/tinyxml2-8.1.0-meson-typo.patch | 17 +++++++++ |
14 |
dev-libs/tinyxml2/tinyxml2-8.1.0.ebuild | 44 ++++++++++++++++++++++ |
15 |
3 files changed, 62 insertions(+) |
16 |
|
17 |
diff --git a/dev-libs/tinyxml2/Manifest b/dev-libs/tinyxml2/Manifest |
18 |
index 98d44932bd8..0b8ab041f85 100644 |
19 |
--- a/dev-libs/tinyxml2/Manifest |
20 |
+++ b/dev-libs/tinyxml2/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST tinyxml2-7.1.0.tar.gz 592717 BLAKE2B 5936356d472b8642bebb9f02579e6beda14446d57749f1e7a869ff941a03a5ad30624c4db4b2eaaaca48d7f339e3100fddfd58f96bbcfc22737a23d9c9198c9a SHA512 09d5f37018f79a593ff35e33d4296c9ec643a22e83c0cee4c37949300f86201eee07e9b7e6ba55044d8abb438d5d21b70d5843a96ae4652389bb164047ec31e1 |
23 |
DIST tinyxml2-8.0.0.tar.gz 593833 BLAKE2B afc21220e28a1c139b1abd89e67f8e64980d2ba9bc6f60a33d435a4a02cb40ecacc27ac28bd9702ac3a435f66764ebb752b597a1b1e178d0b549e366d5b669dd SHA512 bcbb065c2af34ea681ec556377fd22e720b6f5d4caa73f432b1e34e08603a96f2233763f0ec5ae86b9ee71ddbe3062f58d3794cd3a162ce6903435530de0bba6 |
24 |
+DIST tinyxml2-8.1.0.tar.gz 619733 BLAKE2B 7a7e1a250bc8944614ecf578183b41340e7519ad2181e8023244d82e83d9a85fc600e5f00051b7f6f8ebda760a1ac11cb8bfe381fc9f6432f315aa6fdb310a83 SHA512 1ef50ee2648d423f38b6ebb3e45ec3798b87cf73a75aa0e49ae697a2006517d05c8298b325de70ee2aa706546235860f01541ff753c8a1bd97fa862a4ebb5c09 |
25 |
|
26 |
diff --git a/dev-libs/tinyxml2/files/tinyxml2-8.1.0-meson-typo.patch b/dev-libs/tinyxml2/files/tinyxml2-8.1.0-meson-typo.patch |
27 |
new file mode 100644 |
28 |
index 00000000000..b13b27af792 |
29 |
--- /dev/null |
30 |
+++ b/dev-libs/tinyxml2/files/tinyxml2-8.1.0-meson-typo.patch |
31 |
@@ -0,0 +1,17 @@ |
32 |
+https://github.com/leethomason/tinyxml2/commit/0838dd11a3d7a122799298d6556cff501b88421a.patch |
33 |
+ |
34 |
+From 0838dd11a3d7a122799298d6556cff501b88421a Mon Sep 17 00:00:00 2001 |
35 |
+From: heitbaum <rudi@××××××××.com> |
36 |
+Date: Mon, 17 May 2021 15:14:01 +1000 |
37 |
+Subject: [PATCH] meson.build: fix typo |
38 |
+--- a/meson.build |
39 |
++++ b/meson.build |
40 |
+@@ -58,7 +58,7 @@ dep_tinyxml2 = declare_dependency( |
41 |
+ # This is the new way to set dependencies, but let's not break users of older |
42 |
+ # versions of meson |
43 |
+ if meson.version().version_compare('>= 0.54.0') |
44 |
+- meson.override_dependency('tinyxml2', dep_tinxyml2) |
45 |
++ meson.override_dependency('tinyxml2', dep_tinyxml2) |
46 |
+ endif |
47 |
+ |
48 |
+ if get_option('tests') |
49 |
|
50 |
diff --git a/dev-libs/tinyxml2/tinyxml2-8.1.0.ebuild b/dev-libs/tinyxml2/tinyxml2-8.1.0.ebuild |
51 |
new file mode 100644 |
52 |
index 00000000000..1ceb8e57aec |
53 |
--- /dev/null |
54 |
+++ b/dev-libs/tinyxml2/tinyxml2-8.1.0.ebuild |
55 |
@@ -0,0 +1,44 @@ |
56 |
+# Copyright 1999-2021 Gentoo Authors |
57 |
+# Distributed under the terms of the GNU General Public License v2 |
58 |
+ |
59 |
+EAPI=7 |
60 |
+ |
61 |
+inherit meson multilib-minimal |
62 |
+ |
63 |
+DESCRIPTION="A simple, small, efficient, C++ XML parser" |
64 |
+HOMEPAGE="http://www.grinninglizard.com/tinyxml2/ https://github.com/leethomason/tinyxml2/" |
65 |
+SRC_URI="https://github.com/leethomason/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
66 |
+ |
67 |
+LICENSE="ZLIB" |
68 |
+SLOT="0/8" |
69 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc64 ~sparc ~x86" |
70 |
+IUSE="test" |
71 |
+RESTRICT="!test? ( test )" |
72 |
+ |
73 |
+PATCHES=( |
74 |
+ "${FILESDIR}"/${P}-meson-typo.patch |
75 |
+) |
76 |
+ |
77 |
+multilib_src_configure() { |
78 |
+ local mymesonargs=() |
79 |
+ |
80 |
+ if multilib_is_native_abi ; then |
81 |
+ mymesonargs+=( |
82 |
+ $(meson_use test tests) |
83 |
+ ) |
84 |
+ fi |
85 |
+ |
86 |
+ meson_src_configure "${mymesonargs[@]}" |
87 |
+} |
88 |
+ |
89 |
+multilib_src_compile() { |
90 |
+ meson_src_compile |
91 |
+} |
92 |
+ |
93 |
+multilib_src_test() { |
94 |
+ meson_src_test |
95 |
+} |
96 |
+ |
97 |
+multilib_src_install() { |
98 |
+ meson_src_install |
99 |
+} |