commit:     b70508c5b914f684a62fbecc42935f0252ee914c
Author:     Guillermo Joandet <gjoandet <AT> gmail <DOT> com>
AuthorDate: Thu Jun 29 22:50:54 2023 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Tue Jul 18 22:04:41 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b70508c5

gnome-extra/gnome-calculator: Version bump to 45_alpha

Signed-off-by: Guillermo Joandet <gjoandet <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/31673
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 gnome-extra/gnome-calculator/Manifest              |  1 +
 .../gnome-calculator-45_alpha.ebuild               | 74 ++++++++++++++++++++++
 profiles/package.mask                              |  1 +
 3 files changed, 76 insertions(+)

diff --git a/gnome-extra/gnome-calculator/Manifest 
b/gnome-extra/gnome-calculator/Manifest
index 9a37ca02ab29..f7b79dd7fcff 100644
--- a/gnome-extra/gnome-calculator/Manifest
+++ b/gnome-extra/gnome-calculator/Manifest
@@ -1 +1,2 @@
 DIST gnome-calculator-44.0.tar.xz 1075480 BLAKE2B 
a4e7af52e06a59a1a07baf3e34dbfc90dc8852cab3f44fe2018e3279cf7dab7c9cffe23bff2d7cc8b9b3708b652b9b8ae2fa65ff403c559fc1bfd060e4645575
 SHA512 
7c1428873c00a2052b966a0687f2a944dce67e889c8e113a794a7d5f0bafe9ff52562e2b1985bcf48d05a5a0a2f4ff97e490a43810b5243367fce9c6ada79fa6
+DIST gnome-calculator-45.alpha.tar.xz 1090752 BLAKE2B 
7db9b24e74b193333b1c12ad404a11565685d4f7eddd2659cd0705b328ac8f3de477baab094be4d1b592899beb9d1f5069e18c702df22d630b464db47f4b47fe
 SHA512 
51b6e09921b80121493a5597742965555243452e780a794d2a8b50f391879fcf13cea458ce34e8a2f6e90c0edfd8e8a553b73b5e17a9b4ab735b4d12ce059e7d

diff --git a/gnome-extra/gnome-calculator/gnome-calculator-45_alpha.ebuild 
b/gnome-extra/gnome-calculator/gnome-calculator-45_alpha.ebuild
new file mode 100644
index 000000000000..d2baf4a89433
--- /dev/null
+++ b/gnome-extra/gnome-calculator/gnome-calculator-45_alpha.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit gnome.org gnome2-utils meson vala virtualx xdg
+
+DESCRIPTION="A calculator application for GNOME"
+HOMEPAGE="https://wiki.gnome.org/Apps/Calculator";
+
+LICENSE="GPL-3+"
+SLOT="0"
+IUSE="+introspection test"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+# gtksourceview vapi definitions in dev-lang/vala itself are too old, and 
newer vala removes them
+# altogether, thus we need them installed by gtksourceview[vala]
+RDEPEND="
+       >=dev-libs/glib-2.40.0:2
+       dev-libs/libxml2:2
+       net-libs/libsoup:3.0
+       >=dev-libs/libgee-0.20.0:0.8
+       dev-libs/mpc:=
+       dev-libs/mpfr:0=
+       >=gui-libs/gtk-4.4.1:4
+       >=gui-libs/libadwaita-1.2.0:1
+       >=gui-libs/gtksourceview-5.3.0:5
+       introspection? ( >=dev-libs/gobject-introspection-1.58:= )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+       dev-libs/appstream-glib
+       dev-util/itstool
+       >=sys-devel/gettext-0.19.8
+       virtual/pkgconfig
+       $(vala_depend)
+       net-libs/libsoup:3.0[vala]
+       gui-libs/gtksourceview:5[vala]
+       gui-libs/libhandy:1[vala]
+"
+
+src_prepare() {
+       default
+       vala_setup
+       xdg_environment_reset
+}
+
+src_configure() {
+       local emesonargs=(
+               -Ddisable-ui=false
+               #-Dvala-version # doesn't do anything in 3.34
+               $(meson_use !introspection disable-introspection)
+               $(meson_use test ui-tests)
+               -Dgcalc=true
+               -Dgci=true
+               -Dapp=true
+               -Ddoc=false
+       )
+       meson_src_configure
+}
+
+src_test() {
+       XDG_SESSION_TYPE=x11 virtx dbus-run-session meson test -C 
"${BUILD_DIR}" || die 'tests failed'
+}
+
+pkg_postinst() {
+       xdg_pkg_postinst
+       gnome2_schemas_update
+}
+
+pkg_postrm() {
+       xdg_pkg_postrm
+       gnome2_schemas_update
+}

diff --git a/profiles/package.mask b/profiles/package.mask
index 695b54a62c31..326049890e59 100644
--- a/profiles/package.mask
+++ b/profiles/package.mask
@@ -215,6 +215,7 @@ dev-perl/Gtk2-Notify
 >=gnome-base/gnome-settings-daemon-45_alpha
 >=gnome-base/gnome-shell-45_alpha
 >=gnome-base/gsettings-desktop-schemas-45_alpha
+>=gnome-extra/gnome-calculator-45_alpha
 >=gnome-extra/gnome-characters-45_alpha
 >=gnome-extra/gnome-shell-extensions-45_alpha
 >=gnome-extra/gnome-system-monitor-45_alpha

Reply via email to