Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: gnome-extra/gnome-calculator/
Date: Fri, 08 Jan 2021 04:15:40
Message-Id: 1610079322.4174c48af8fdf0d92923c8c732b20d8c50da4fba.mattst88@gentoo
1 commit: 4174c48af8fdf0d92923c8c732b20d8c50da4fba
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 8 04:06:36 2021 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 8 04:15:22 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4174c48a
7
8 gnome-extra/gnome-calculator: Version bump to 3.38.2
9
10 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
11
12 gnome-extra/gnome-calculator/Manifest | 1 +
13 .../gnome-calculator-3.38.2.ebuild | 70 ++++++++++++++++++++++
14 2 files changed, 71 insertions(+)
15
16 diff --git a/gnome-extra/gnome-calculator/Manifest b/gnome-extra/gnome-calculator/Manifest
17 index ea4016b0730..31b6192ef34 100644
18 --- a/gnome-extra/gnome-calculator/Manifest
19 +++ b/gnome-extra/gnome-calculator/Manifest
20 @@ -1 +1,2 @@
21 DIST gnome-calculator-3.36.0.tar.xz 983532 BLAKE2B 5e28a82cb93cb944e69d4d7c7cf1a14cd91375ef864cbd5624d87a66ee79f0aff17f871ba734d35ae372b761ce67c809acb6fdfe66597980f33e06fe86d6157d SHA512 5e8d3b17703260928e9d0594a6e0b06b6a25d71590b4ab6c371e0c21be5e53698011407886f09f6bd67660ecbfa182d725d5e3a1c51fe4ea9125b175bd4d279c
22 +DIST gnome-calculator-3.38.2.tar.xz 1004684 BLAKE2B c2b6a0ff2e6a91c43a1670945af989b715f0f7369050dac13bec02898ef6780ec4484c6ee9f6e6bb19b8ecc9d7d8c2df0c824ac9c3309783cbc89b96fe1f16b9 SHA512 41e58b34640e795108a552aa0d95b03f0c84c4d5af6eef7fe8350c5f4e031a0fad7cad73034b38b2121f09687815b6b10a6a86fb00c7cbf720ccb06a8eea0403
23
24 diff --git a/gnome-extra/gnome-calculator/gnome-calculator-3.38.2.ebuild b/gnome-extra/gnome-calculator/gnome-calculator-3.38.2.ebuild
25 new file mode 100644
26 index 00000000000..2d27114d921
27 --- /dev/null
28 +++ b/gnome-extra/gnome-calculator/gnome-calculator-3.38.2.ebuild
29 @@ -0,0 +1,70 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +VALA_MIN_API_VERSION="0.40"
35 +
36 +inherit gnome.org gnome2-utils meson vala virtualx xdg
37 +
38 +DESCRIPTION="A calculator application for GNOME"
39 +HOMEPAGE="https://wiki.gnome.org/Apps/Calculator"
40 +
41 +LICENSE="GPL-3+"
42 +SLOT="0"
43 +IUSE="+introspection test"
44 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
45 +
46 +# gtksourceview vapi definitions in dev-lang/vala itself are too old, and newer vala removes them
47 +# altogether, thus we need them installed by gtksourceview[vala]
48 +RDEPEND="
49 + >=dev-libs/glib-2.40.0:2
50 + dev-libs/libxml2:2
51 + >=net-libs/libsoup-2.42:2.4
52 + >=dev-libs/libgee-0.20.0:0.8
53 + dev-libs/mpc:=
54 + dev-libs/mpfr:0=
55 + >=x11-libs/gtk+-3.19.3:3
56 + >=x11-libs/gtksourceview-4.0.2:4
57 + introspection? ( >=dev-libs/gobject-introspection-1.58:= )
58 +"
59 +DEPEND="${RDEPEND}"
60 +BDEPEND="
61 + dev-libs/appstream-glib
62 + dev-util/itstool
63 + >=sys-devel/gettext-0.19.8
64 + virtual/pkgconfig
65 + $(vala_depend)
66 + net-libs/libsoup:2.4[vala]
67 + x11-libs/gtksourceview:4[vala]
68 +"
69 +
70 +src_prepare() {
71 + xdg_src_prepare
72 + vala_src_prepare
73 + # Automagic dep on valadoc - don't bother for now
74 + sed -e '/subdir.*doc/d' -i meson.build || die
75 +}
76 +
77 +src_configure() {
78 + local emesonargs=(
79 + -Ddisable-ui=false
80 + #-Dvala-version # doesn't do anything in 3.34
81 + $(meson_use !introspection disable-introspection)
82 + $(meson_use test ui-tests)
83 + )
84 + meson_src_configure
85 +}
86 +
87 +src_test() {
88 + virtx meson_src_test
89 +}
90 +
91 +pkg_postinst() {
92 + xdg_pkg_postinst
93 + gnome2_schemas_update
94 +}
95 +
96 +pkg_postrm() {
97 + xdg_pkg_postrm
98 + gnome2_schemas_update
99 +}