1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00

math/pantheon-calculator: Update to 2.0.0

- Update to 2.0.0
- Adjust dependencies and patch
- Rename to math/elementary-calculator (follow domain name notation,
  as other ElementaryOS applications)

ChangeLog: https://github.com/elementary/calculator/releases/tag/2.0.0

PR:		263941
This commit is contained in:
Olivier Duchateau 2022-05-18 11:51:24 +01:00 committed by Nuno Teixeira
parent 4b5d1ab262
commit 18e22b62ed
9 changed files with 38 additions and 24 deletions

1
MOVED
View File

@ -17153,3 +17153,4 @@ graphics/magnum-examples||2022-05-17|Has expired: Depends on broken graphics/mag
graphics/magnum||2022-05-17|Has expired: Broken for more than a year
graphics/magnum-plugins||2022-05-17|Has expired: Depends on broken graphics/magnum
graphics/magnum-extras||2022-05-17|Has expired: Depends on broken graphics/magnum
math/pantheon-calculator|math/elementary-calculator|2022-05-18|Switch to reverse domain name notation

View File

@ -289,6 +289,7 @@
SUBDIR += eigen3
SUBDIR += eispack
SUBDIR += elemental
SUBDIR += elementary-calculator
SUBDIR += elpa
SUBDIR += emc2
SUBDIR += ensmallen
@ -764,7 +765,6 @@
SUBDIR += p5-Text-AsciiTeX
SUBDIR += p5-bignum
SUBDIR += palp
SUBDIR += pantheon-calculator
SUBDIR += pari
SUBDIR += pari_elldata
SUBDIR += pari_galdata

View File

@ -1,8 +1,7 @@
PORTNAME= calculator
PORTVERSION= 1.7.2
DISTVERSION= 2.0.0
CATEGORIES= math
PKGNAMEPREFIX= pantheon-
DIST_SUBDIR= pantheon
PKGNAMEPREFIX= elementary-
MAINTAINER= duchateau.olivier@gmail.com
COMMENT= Simple calculator written in Vala
@ -12,15 +11,16 @@ LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= valac:lang/vala
LIB_DEPENDS= libgee-0.8.so:devel/libgee \
libgranite.so:x11-toolkits/granite \
libgranite-7.so:x11-toolkits/granite7 \
libhandy-1.so:x11-toolkits/libhandy
USES= gettext gnome meson pkgconfig python:3.6+,build
USE_GNOME= cairo gdkpixbuf2 glib20 gtk30
USE_GITHUB= yes
GH_ACCOUNT= elementary
USE_GNOME= cairo gdkpixbuf2 glib20 gtk40
GLIB_SCHEMAS= io.elementary.calculator.gschema.xml
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1652373931
SHA256 (elementary-calculator-2.0.0_GH0.tar.gz) = bf4fefc9a526ad9e7c546374e764473e75aed77822bd0d3f7b706017181a4f1d
SIZE (elementary-calculator-2.0.0_GH0.tar.gz) = 232133

View File

@ -0,0 +1,28 @@
Replace missing icons (Adwaita)
--- src/MainWindow.vala.orig 2022-05-10 20:12:35 UTC
+++ src/MainWindow.vala
@@ -78,7 +78,7 @@ public class PantheonCalculator.MainWindow : Gtk.Appli
history = new List<History?> ();
position = 0;
button_extended = new Gtk.ToggleButton () {
- icon_name = "pane-hide-symbolic",
+ icon_name = "pan-end-symbolic",
tooltip_text = _("Show extended functionality")
};
button_extended.toggled.connect (toggle_grid);
@@ -731,12 +731,12 @@ public class PantheonCalculator.MainWindow : Gtk.Appli
position = entry.get_position ();
if (button.get_active ()) {
/* Show extended functionality */
- button.icon_name = "pane-show-symbolic";
+ button.icon_name = "pan-start-symbolic";
button.tooltip_text = _("Hide extended functionality");
extended_revealer.reveal_child = true;
} else {
/* Hide extended functionality */
- button.icon_name = "pane-hide-symbolic";
+ button.icon_name = "pan-end-symbolic";
button.tooltip_text = _("Show extended functionality");
extended_revealer.reveal_child = false;
}

View File

@ -1,3 +0,0 @@
TIMESTAMP = 1639672237
SHA256 (pantheon/elementary-calculator-1.7.2_GH0.tar.gz) = d296d06b36a0c7dd84e7e91e9801989e83312612d6ee6f0479030c1b340d397b
SIZE (pantheon/elementary-calculator-1.7.2_GH0.tar.gz) = 229144

View File

@ -1,15 +0,0 @@
Replace missing icons (Adwaita)
--- src/MainWindow.vala.orig 2016-08-10 05:29:30 UTC
+++ src/MainWindow.vala
@@ -73,8 +73,8 @@ namespace PantheonCalculator {
headerbar.set_title (_("Calculator"));
set_titlebar (headerbar);
- extended_img_1 = new Gtk.Image.from_icon_name ("pane-hide-symbolic", Gtk.IconSize.MENU);
- extended_img_2 = new Gtk.Image.from_icon_name ("pane-show-symbolic", Gtk.IconSize.MENU);
+ extended_img_1 = new Gtk.Image.from_icon_name ("pan-end-symbolic", Gtk.IconSize.MENU);
+ extended_img_2 = new Gtk.Image.from_icon_name ("pan-start-symbolic", Gtk.IconSize.MENU);
button_extended = new Gtk.ToggleButton ();
button_extended.image = extended_img_1;