gnustep-apps/aclock: fix init issue

Also update EAPI 7 -> 8

Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
This commit is contained in:
Bernard Cafarelli 2024-07-21 23:30:30 +02:00
parent 452fd65e0d
commit 2a8638c20d
No known key found for this signature in database
GPG Key ID: 00F7AB331B0F097F
2 changed files with 47 additions and 0 deletions

View File

@ -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"
}

View File

@ -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];