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 0000000000000..96b7f4ecaec9d --- /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 0000000000000..45961369c09d1 --- /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 ++#import + #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];