1 |
commit: 6fa54e8cb856a425daa398868d99cb6a2ff3ff92 |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 5 20:48:46 2022 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 5 20:49:14 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6fa54e8c |
7 |
|
8 |
app-arch/gcab: Version bump to 1.5 |
9 |
|
10 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
11 |
|
12 |
app-arch/gcab/Manifest | 1 + |
13 |
.../files/1.5-meson-git-version-is-optional.patch | 35 ++++++++++++++ |
14 |
app-arch/gcab/gcab-1.5.ebuild | 56 ++++++++++++++++++++++ |
15 |
3 files changed, 92 insertions(+) |
16 |
|
17 |
diff --git a/app-arch/gcab/Manifest b/app-arch/gcab/Manifest |
18 |
index 8922b04345a1..4aca7506d8f4 100644 |
19 |
--- a/app-arch/gcab/Manifest |
20 |
+++ b/app-arch/gcab/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST gcab-1.4.tar.xz 78240 BLAKE2B 8b857c116fab636db93463cee7d6b809c3c7b2bdf3896b7b5b5b66ebf270b284b356710933ec17584143bcef5c1f5c555811dd05ea98399f327047476a33fc16 SHA512 66a2e0d0a5888c555153356ce808f602053e71b76af19794db7e3bbf9516fe791805068838b4e208698cd645ada7a08610ac95f846fa81e00a9b955016306299 |
23 |
+DIST gcab-1.5.tar.xz 81728 BLAKE2B ba1793a8374e2dac412ca2807343781013f5be8d79e444ef0a136fbf903dd9a47809b3dec4703ebd19d196a7046a0c8405ae8463c2f7338fdc5eaf979436e8e1 SHA512 2a9b7d2720abbb5527d478ac760898ae254d08b7aa929fbb21753296e5a07c51d62e134a3f8b1b21d9b557d4093505194e09823ddbaf58465d37b372f37534b7 |
24 |
|
25 |
diff --git a/app-arch/gcab/files/1.5-meson-git-version-is-optional.patch b/app-arch/gcab/files/1.5-meson-git-version-is-optional.patch |
26 |
new file mode 100644 |
27 |
index 000000000000..6bfbaecf78a6 |
28 |
--- /dev/null |
29 |
+++ b/app-arch/gcab/files/1.5-meson-git-version-is-optional.patch |
30 |
@@ -0,0 +1,35 @@ |
31 |
+From ad0baea50359c1978a9224ee60bf98d97bfb991f Mon Sep 17 00:00:00 2001 |
32 |
+From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= <marcandre.lureau@××××××.com> |
33 |
+Date: Fri, 5 Aug 2022 11:13:41 +0400 |
34 |
+Subject: [PATCH] meson: git version is optional |
35 |
+MIME-Version: 1.0 |
36 |
+Content-Type: text/plain; charset=UTF-8 |
37 |
+Content-Transfer-Encoding: 8bit |
38 |
+ |
39 |
+My bad, git may be present, but running "git abbrev" from the tarball |
40 |
+extracted project can fail. |
41 |
+ |
42 |
+Fix commit a755e2ae77035aad9644adadaec5ecf15e9656ba ("meson: fix new |
43 |
+warning about run_command()") |
44 |
+ |
45 |
+Signed-off-by: Marc-André Lureau <marcandre.lureau@××××××.com> |
46 |
+--- |
47 |
+ meson.build | 2 +- |
48 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
49 |
+ |
50 |
+diff --git a/meson.build b/meson.build |
51 |
+index 15fd5cd..5eba715 100644 |
52 |
+--- a/meson.build |
53 |
++++ b/meson.build |
54 |
+@@ -8,7 +8,7 @@ project('gcab', 'c', |
55 |
+ git_version = [] |
56 |
+ git = find_program('git', required: false) |
57 |
+ if git.found() |
58 |
+- git_version = run_command(git, 'describe', '--abbrev=4', '--dirty', check: true).stdout().strip().split('-') |
59 |
++ git_version = run_command(git, 'describe', '--abbrev=4', '--dirty', check: false).stdout().strip().split('-') |
60 |
+ endif |
61 |
+ |
62 |
+ # libtool versioning |
63 |
+-- |
64 |
+2.35.1 |
65 |
+ |
66 |
|
67 |
diff --git a/app-arch/gcab/gcab-1.5.ebuild b/app-arch/gcab/gcab-1.5.ebuild |
68 |
new file mode 100644 |
69 |
index 000000000000..acf17df81e42 |
70 |
--- /dev/null |
71 |
+++ b/app-arch/gcab/gcab-1.5.ebuild |
72 |
@@ -0,0 +1,56 @@ |
73 |
+# Copyright 1999-2022 Gentoo Authors |
74 |
+# Distributed under the terms of the GNU General Public License v2 |
75 |
+ |
76 |
+EAPI=8 |
77 |
+ |
78 |
+inherit gnome.org meson vala xdg |
79 |
+ |
80 |
+DESCRIPTION="Library and tool for working with Microsoft Cabinet (CAB) files" |
81 |
+HOMEPAGE="https://wiki.gnome.org/msitools https://gitlab.gnome.org/GNOME/gcab" |
82 |
+ |
83 |
+LICENSE="LGPL-2.1+" |
84 |
+SLOT="0" |
85 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
86 |
+ |
87 |
+IUSE="gtk-doc +introspection test vala" |
88 |
+RESTRICT="!test? ( test )" |
89 |
+REQUIRED_USE="vala? ( introspection )" |
90 |
+ |
91 |
+RDEPEND=" |
92 |
+ >=dev-libs/glib-2.62.0:2 |
93 |
+ sys-libs/zlib |
94 |
+ introspection? ( >=dev-libs/gobject-introspection-1.54:= ) |
95 |
+" |
96 |
+DEPEND="${RDEPEND}" |
97 |
+BDEPEND=" |
98 |
+ dev-util/glib-utils |
99 |
+ gtk-doc? ( |
100 |
+ >=dev-util/gtk-doc-1.14 |
101 |
+ app-text/docbook-xml-dtd:4.3 |
102 |
+ ) |
103 |
+ >=sys-devel/gettext-0.19.8 |
104 |
+ virtual/pkgconfig |
105 |
+ vala? ( $(vala_depend) ) |
106 |
+" |
107 |
+ |
108 |
+PATCHES=( |
109 |
+ "${FILESDIR}"/${PV}-meson-git-version-is-optional.patch |
110 |
+) |
111 |
+ |
112 |
+src_prepare() { |
113 |
+ default |
114 |
+ xdg_environment_reset |
115 |
+ use vala && vala_setup |
116 |
+} |
117 |
+ |
118 |
+src_configure() { |
119 |
+ local emesonargs=( |
120 |
+ $(meson_use gtk-doc docs) |
121 |
+ $(meson_use introspection) |
122 |
+ -Dnls=true |
123 |
+ $(meson_use vala vapi) |
124 |
+ $(meson_use test tests) |
125 |
+ -Dinstalled_tests=false |
126 |
+ ) |
127 |
+ meson_src_configure |
128 |
+} |