DIST Cenon-4.0.2.tar.bz2 4150615 BLAKE2B 75252c6495c0cdba32f18e31674ff1c4f8e3d6c7f94b56ac763bcd7d8bcb401fe6817e0a06642dc927ff87c32956e9277a777a7744a8a33135a4e3a76aa511cc SHA512 94bf95dbdb8fbe9c21fbe80cbc33fbe376c598cf79be295cb1045a0ac888da5363f388f3f051d593ca47f6c1fcbade2825389aec5da328c59158a1e5da89db75
+DIST Cenon-4.0.6.tar.bz2 10931177 BLAKE2B 40b62313360833b7ee3677143014e7cbe90b79290e9bdd1afe01c411bd4382d792354c6529f84c89eeb2be1c0e7ac7ce5f9557148014af07f46fc223932b20d4 SHA512 7fe4847cf4b2bc2a8f46e42d9e24e35dc42d0d7688ed02ea844cac562355611c64d3a1f0a90ae379db28415b40bb2fb38c2faf8c67bcc5ef7d5512cbc7452a3a
--- /dev/null
+# 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
+ )
--- /dev/null
+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
--- /dev/null
+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];