mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
gnustep-apps/aclock: fix init issue
Also update EAPI 7 -> 8 Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
This commit is contained in:
parent
452fd65e0d
commit
2a8638c20d
24
gnustep-apps/aclock/aclock-0.4.0-r2.ebuild
Normal file
24
gnustep-apps/aclock/aclock-0.4.0-r2.ebuild
Normal 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"
|
||||
}
|
||||
23
gnustep-apps/aclock/files/aclock-0.4.0-init.patch
Normal file
23
gnustep-apps/aclock/files/aclock-0.4.0-init.patch
Normal 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];
|
||||
Loading…
x
Reference in New Issue
Block a user