Skip to content

Commit

Permalink
math/pantheon-calculator: Update to 2.0.0
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
OlivierDuchateau authored and nunotexbsd committed May 18, 2022
1 parent 4b5d1ab commit 18e22b6
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 24 deletions.
1 change: 1 addition & 0 deletions MOVED
Expand Up @@ -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
2 changes: 1 addition & 1 deletion math/Makefile
Expand Up @@ -289,6 +289,7 @@
SUBDIR += eigen3
SUBDIR += eispack
SUBDIR += elemental
SUBDIR += elementary-calculator
SUBDIR += elpa
SUBDIR += emc2
SUBDIR += ensmallen
Expand Down Expand Up @@ -764,7 +765,6 @@
SUBDIR += p5-Text-AsciiTeX
SUBDIR += p5-bignum
SUBDIR += palp
SUBDIR += pantheon-calculator
SUBDIR += pari
SUBDIR += pari_elldata
SUBDIR += pari_galdata
Expand Down
@@ -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
Expand All @@ -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>
3 changes: 3 additions & 0 deletions math/elementary-calculator/distinfo
@@ -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
28 changes: 28 additions & 0 deletions math/elementary-calculator/files/patch-src_MainWindow.vala
@@ -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;
}
File renamed without changes.
File renamed without changes.
3 changes: 0 additions & 3 deletions math/pantheon-calculator/distinfo

This file was deleted.

15 changes: 0 additions & 15 deletions math/pantheon-calculator/files/patch-src_MainWindow.vala

This file was deleted.

0 comments on commit 18e22b6

Please sign in to comment.