summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2024-07-21 23:30:30 +0200
committerBernard Cafarelli <voyageur@gentoo.org>2024-07-21 23:31:33 +0200
commit2a8638c20d8a6d324862f1e8d552987663c50ce0 (patch)
tree1b92e4cdb0f47621f9d803a71b47c6481ba6e9e6 /gnustep-apps
parentgnustep-apps/fisicalab: add 0.4.0 (diff)
downloadgentoo-2a8638c20d8a6d324862f1e8d552987663c50ce0.tar.gz
gentoo-2a8638c20d8a6d324862f1e8d552987663c50ce0.tar.bz2
gentoo-2a8638c20d8a6d324862f1e8d552987663c50ce0.zip
gnustep-apps/aclock: fix init issue
Also update EAPI 7 -> 8 Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
Diffstat (limited to 'gnustep-apps')
-rw-r--r--gnustep-apps/aclock/aclock-0.4.0-r2.ebuild24
-rw-r--r--gnustep-apps/aclock/files/aclock-0.4.0-init.patch23
2 files changed, 47 insertions, 0 deletions
diff --git a/gnustep-apps/aclock/aclock-0.4.0-r2.ebuild b/gnustep-apps/aclock/aclock-0.4.0-r2.ebuild
new file mode 100644
index 000000000000..96b7f4ecaec9
--- /dev/null
+++ b/gnustep-apps/aclock/aclock-0.4.0-r2.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit gnustep-2
+
+MY_P="${P/ac/AC}"
+DESCRIPTION="Analog dockapp clock for GNUstep"
+HOMEPAGE="http://gap.nongnu.org/aclock/"
+SRC_URI="https://savannah.nongnu.org/download/gap/${MY_P}.tar.gz"
+
+S="${WORKDIR}/${MY_P}"
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+PATCHES=( "${FILESDIR}"/${P}-init.patch )
+
+gnustep_config_script() {
+ echo "echo ' * using smooth seconds'"
+ echo "defaults write AClock SmoothSeconds YES"
+ echo "echo ' * setting refresh rate to 0.1 seconds'"
+ echo "defaults write AClock RefreshRate 0.1"
+}
diff --git a/gnustep-apps/aclock/files/aclock-0.4.0-init.patch b/gnustep-apps/aclock/files/aclock-0.4.0-init.patch
new file mode 100644
index 000000000000..45961369c09d
--- /dev/null
+++ b/gnustep-apps/aclock/files/aclock-0.4.0-init.patch
@@ -0,0 +1,23 @@
+diff -Naur AClock-0.4.0.orig/AppController.m AClock-0.4.0/AppController.m
+--- AClock-0.4.0.orig/AppController.m 2011-07-01 13:00:12.000000000 +0200
++++ AClock-0.4.0/AppController.m 2024-07-21 23:27:31.977296966 +0200
+@@ -25,6 +25,7 @@
+ */
+
+ #import <AppKit/AppKit.h>
++#import <GNUstepGUI/GSInfoPanel.h>
+ #import "AppController.h"
+
+ @implementation AppController
+diff -Naur AClock-0.4.0.orig/Clock.m AClock-0.4.0/Clock.m
+--- AClock-0.4.0.orig/Clock.m 2011-07-01 13:00:23.000000000 +0200
++++ AClock-0.4.0/Clock.m 2024-07-21 23:27:31.977296966 +0200
+@@ -50,7 +50,7 @@
+ RETAIN(numArray[0]);
+ RETAIN(numArray[1]);
+
+- dayWeek = [NSArray arrayWithObjects:@"su",@"mo",@"tu",@"we",@"th",@"fr",@"sa"];
++ dayWeek = [NSArray arrayWithObjects:@"su",@"mo",@"tu",@"we",@"th",@"fr",@"sa",nil];
+ RETAIN(dayWeek);
+
+ defaults = [NSUserDefaults standardUserDefaults];