gnustep-apps/cenon: 4.0.6 bump
authorBernard Cafarelli <voyageur@gentoo.org>
Thu, 5 Dec 2019 21:52:59 +0000 (22:52 +0100)
committerBernard Cafarelli <voyageur@gentoo.org>
Thu, 5 Dec 2019 21:53:11 +0000 (22:53 +0100)
Package-Manager: Portage-2.3.80, Repoman-2.3.19
Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
gnustep-apps/cenon/Manifest
gnustep-apps/cenon/cenon-4.0.6.ebuild [new file with mode: 0644]
gnustep-apps/cenon/files/cenon-4.0.6-install.patch [new file with mode: 0644]
gnustep-apps/cenon/files/cenon-4.0.6-invalid_array_syntax.patch [new file with mode: 0644]

index 7564f31f492c08f6ebf50d77275395a0fa0e1983..4cf033d8882531968e94918afe53cd530c966973 100644 (file)
@@ -1 +1,2 @@
 DIST Cenon-4.0.2.tar.bz2 4150615 BLAKE2B 75252c6495c0cdba32f18e31674ff1c4f8e3d6c7f94b56ac763bcd7d8bcb401fe6817e0a06642dc927ff87c32956e9277a777a7744a8a33135a4e3a76aa511cc SHA512 94bf95dbdb8fbe9c21fbe80cbc33fbe376c598cf79be295cb1045a0ac888da5363f388f3f051d593ca47f6c1fcbade2825389aec5da328c59158a1e5da89db75
+DIST Cenon-4.0.6.tar.bz2 10931177 BLAKE2B 40b62313360833b7ee3677143014e7cbe90b79290e9bdd1afe01c411bd4382d792354c6529f84c89eeb2be1c0e7ac7ce5f9557148014af07f46fc223932b20d4 SHA512 7fe4847cf4b2bc2a8f46e42d9e24e35dc42d0d7688ed02ea844cac562355611c64d3a1f0a90ae379db28415b40bb2fb38c2faf8c67bcc5ef7d5512cbc7452a3a
diff --git a/gnustep-apps/cenon/cenon-4.0.6.ebuild b/gnustep-apps/cenon/cenon-4.0.6.ebuild
new file mode 100644 (file)
index 0000000..512edd1
--- /dev/null
@@ -0,0 +1,23 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit gnustep-2
+
+S=${WORKDIR}/${PN/c/C}
+
+DESCRIPTION="Cenon is a vector graphics tool for GNUstep, OpenStep and MacOSX"
+HOMEPAGE="http://www.cenon.info/"
+SRC_URI="http://www.cenon.zone/download/source/${P/c/C}.tar.bz2"
+KEYWORDS="~amd64 ~ppc ~x86"
+SLOT="0"
+LICENSE="Cenon"
+IUSE=""
+
+DEPEND=""
+RDEPEND=">=gnustep-libs/cenonlibrary-4.0.0"
+
+PATCHES=(
+       "${FILESDIR}"/${P}-install.patch
+       "${FILESDIR}"/${P}-invalid_array_syntax.patch
+       )
diff --git a/gnustep-apps/cenon/files/cenon-4.0.6-install.patch b/gnustep-apps/cenon/files/cenon-4.0.6-install.patch
new file mode 100644 (file)
index 0000000..b4b78d6
--- /dev/null
@@ -0,0 +1,20 @@
+diff -Naur Cenon.orig/GNUmakefile.postamble Cenon/GNUmakefile.postamble
+--- Cenon.orig/GNUmakefile.postamble   2019-12-05 22:46:35.156776358 +0100
++++ Cenon/GNUmakefile.postamble        2019-12-05 22:46:50.725769361 +0100
+@@ -18,13 +18,13 @@
+ # before-install::
+ # Things to do after installing
+-after-install::
++#after-install::
+       # copy library
+       #rm -R $(GNUSTEP_LIBRARY)/$(APP_NAME)
+       #mkdir $(GNUSTEP_LIBRARY)/
+-      cp -R Library/$(APP_NAME)/ $(GNUSTEP_LIBRARY)/
++      #cp -R Library/$(APP_NAME)/ $(GNUSTEP_LIBRARY)/
+       # set permissions (rrr)
+-      chmod -R ugo+rX $(GNUSTEP_APPS)/$(APP_NAME).*
++      #chmod -R ugo+rX $(GNUSTEP_APPS)/$(APP_NAME).*
+       #chmod -R ugo+rX $(GNUSTEP_LIBRARY)/$(APP_NAME)
+ # Things to do before uninstalling
diff --git a/gnustep-apps/cenon/files/cenon-4.0.6-invalid_array_syntax.patch b/gnustep-apps/cenon/files/cenon-4.0.6-invalid_array_syntax.patch
new file mode 100644 (file)
index 0000000..696a5c8
--- /dev/null
@@ -0,0 +1,20 @@
+Decsription: Fix FTBFS due to invalid syntax that only works with Clang.
+Author: Yavor Doganov <yavor@gnu.org>
+Forwarded: info@cenon.com
+Last-Update: 2018-03-12
+---
+
+--- cenon.app.orig/VHFImport/PSImport.m
++++ cenon.app/VHFImport/PSImport.m
+@@ -180,7 +180,10 @@
+         NSString        *output;
+         [task setLaunchPath: @"/bin/sh"];
+-        [task setArguments:@[@"-c", [NSString stringWithFormat:@"%@ -h | grep %@", gsPath, gsDev]] ];
++        [task setArguments:
++                [NSArray arrayWithObjects: @"-c",
++                         [NSString stringWithFormat:@"%@ -h | grep %@",
++                                   gsPath, gsDev], nil]];
+         [task setStandardOutput:pipe];
+         [task launch];
+         output = [[NSString alloc] initWithData:[file readDataToEndOfFile] encoding:NSUTF8StringEncoding];