diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /gnustep-apps/cenon |
reinit the tree, so we can have metadata
Diffstat (limited to 'gnustep-apps/cenon')
-rw-r--r-- | gnustep-apps/cenon/Manifest | 8 | ||||
-rw-r--r-- | gnustep-apps/cenon/cenon-4.0.2-r1.ebuild | 26 | ||||
-rw-r--r-- | gnustep-apps/cenon/files/cenon-4.0.2-check-return-value.patch | 40 | ||||
-rw-r--r-- | gnustep-apps/cenon/files/cenon-4.0.2-gnustep-gui-0.24-support.patch | 231 | ||||
-rw-r--r-- | gnustep-apps/cenon/files/cenon-4.0.2-install.patch | 19 | ||||
-rw-r--r-- | gnustep-apps/cenon/metadata.xml | 13 |
6 files changed, 337 insertions, 0 deletions
diff --git a/gnustep-apps/cenon/Manifest b/gnustep-apps/cenon/Manifest new file mode 100644 index 000000000000..ad730ccb4ac8 --- /dev/null +++ b/gnustep-apps/cenon/Manifest @@ -0,0 +1,8 @@ +AUX cenon-4.0.2-check-return-value.patch 1416 SHA256 01efd9ad796ee09028cd379d3cbf495c1c516a011049446684fb036ceddf0b49 SHA512 07cd48ed24fc791a5b3921cae99b4bcd9a36167b1d4c376881b82f420c7870ea2ae02aaf1cade56bc88b3f306154e60d3e64a9c2b6fe880ead317250e0ada921 WHIRLPOOL 64dd1575787363e141b81097f440a9822c77bf7f2a1abd68bd7d52256ca4adb694c06735d673da1083a2b19f9a2b8be9a07dfb1d843c2e7dfde4b73d2af0ab0d +AUX cenon-4.0.2-gnustep-gui-0.24-support.patch 7456 SHA256 1df6664f364cdbeccdc879be6f75794db919409410ac5e9086acfa74e131285f SHA512 a740fda5548284d4d6ad46d972c19b23382b6d0e4b92573c9edebe1eb362f13863bc9e8b50fcfd0c9f450fea979ba781ce3723fe692f862ed23fc0e7f02b23b7 WHIRLPOOL bf3324a64197f5f08aabd9375218d22f16ce6fab6ab67c4ef66061a5c531c03470edf04ca447a1bd0ddb98f015c8a1b0b5904f2cace4e10dde84e11f6d8c46a8 +AUX cenon-4.0.2-install.patch 690 SHA256 8b10e896b482c37cf49a5a17e36f79a4f4866c59e4daf545f31c2487bd180350 SHA512 fece9ed365b6fa5ca2b897b64c073eb780c6270f6e7f8c7e92748c54626cda3a47872245869f4e3ba8b8fbd9ee8bf8665b0feb1574daca006f828d363e95ad21 WHIRLPOOL 2d994a61bbe0dd67d4fc458bfd3a582faf090f7f1c7e09e0afcd0a8d8d90d289605f22d98b9e1a900a4b9ab43a76ad763503b925d4225e090d1e4d72e24d106d +DIST Cenon-4.0.2.tar.bz2 4143462 SHA256 8c8906225e188747bf80499886c289786ffc27c6e051dafe12567542f9ef0693 SHA512 202532242eedaf936a35e5df176cf613afe22880f1341e6e9b054fdae9d9aa158acf67bc6927cbbe70cc6215be378e08e318c66ff6a28122676c3ca5b9950d72 WHIRLPOOL 379aab9dba8cc1f9c91d6721168b1f0bc88a8cc646af5ed8437cf2ec589c2b7cf6150782063ced6457ca0b06296721b5a412332b33f3e47254760ac195e65189 +EBUILD cenon-4.0.2-r1.ebuild 697 SHA256 34f7d62adc8c20b7acd6c9f172f513e4091235cb055f952f57cdc7452e1094e7 SHA512 749ddd176de16f6a09065e4c5a74732d298b7201a45188ce0cb7183dcf1423beaf16faba36d63cc79f150e946974ec93759d2242cf0c5e715cacb3e6a9cdcac5 WHIRLPOOL 7831c8722b1aafa700a112777b7eda3c7c0a2dbde2470d39a2a1d63ee142f2ff5a7190e5f974ab0684b3b4e184a0b2e63368a821324727b3d8c6eb55238b1bd5 +MISC ChangeLog 2779 SHA256 b0e29ff7c3014cd3603f0d19dc41f58daf077858994c33d97ea5b6f2443cd0b3 SHA512 82ce9481044d68695f559a4dea30e8980aa2abcb26de262f1c53a59edbf4107afa81fff49f3c3da8e374f0aa9b3929f4ffd3a827f5f19ffcb3a97de77bb93ed9 WHIRLPOOL c4490fd8f0815abc781fdb071f3a6366fcdd197754726502a5e6f751dfedc9ac041d260a47325711eebc19b3260c1121a43a1fe98e1a0ac9b2f097841a441ebe +MISC ChangeLog-2015 3728 SHA256 0ee8b8fc214996072e5e168105fcbfaef0decfe8324a2f2f0036efbb54ea019b SHA512 18f320c893b8e401b8e02c0661ad51e4459de9aa4769132dfbe605851503cfe909f3ff700e2e5e30a0ef470e03be3a53306eb994ba9309d5a3188b2b75562f79 WHIRLPOOL 167b7f06255eb58a3d8d9efe3be9257441f327b146b4f12e2b0cc820823401a6cac2952a4a25496be8cd26baccc7f75236929546b80ac979a87b5c9de96fa679 +MISC metadata.xml 447 SHA256 cb0a89bc0f1b2fb66e88032cb448d559935cf31730f81e1073dadd44d92f7edc SHA512 8b1bf24888d06c487d4601bd31d5184070554ecd59923a3de482b4fcce6f5130c706f68d4b35d1545be4a1fbbd76ac36f3072df1c6f5e92c03d8ee3d566b72a3 WHIRLPOOL 60f64c7d242be34df1b659401b7a770c9782911bc91f5bd55b3d3bcdf621c679a5bc57289eb0e950d07381b194a7d60275968f613ec95ce4608da52fba7921f4 diff --git a/gnustep-apps/cenon/cenon-4.0.2-r1.ebuild b/gnustep-apps/cenon/cenon-4.0.2-r1.ebuild new file mode 100644 index 000000000000..b8df58c5f64f --- /dev/null +++ b/gnustep-apps/cenon/cenon-4.0.2-r1.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +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.vhf-group.com/vhf-interservice/download/source/${P/c/C}.tar.bz2" +KEYWORDS="amd64 ppc x86" +SLOT="0" +LICENSE="Cenon" +IUSE="" + +DEPEND="" +RDEPEND=">=gnustep-libs/cenonlibrary-4.0.0" + +src_prepare() { + # Do not install files already provided by cenonlibrary + epatch "${FILESDIR}"/${P}-install.patch + + epatch "${FILESDIR}"/${P}-check-return-value.patch + epatch "${FILESDIR}"/${P}-gnustep-gui-0.24-support.patch +} diff --git a/gnustep-apps/cenon/files/cenon-4.0.2-check-return-value.patch b/gnustep-apps/cenon/files/cenon-4.0.2-check-return-value.patch new file mode 100644 index 000000000000..a23135b3230d --- /dev/null +++ b/gnustep-apps/cenon/files/cenon-4.0.2-check-return-value.patch @@ -0,0 +1,40 @@ +Description: Check the return value of `system'. +Author: Yavor Doganov <yavor@gnu.org> +Forwarded: yes +Last-Update: 2014-06-25 +--- + +--- cenon.app.orig/VHFImport/PSImport.m ++++ cenon.app/VHFImport/PSImport.m +@@ -143,7 +143,14 @@ + + /* convert pdf to eps */ + commandLine = [NSString stringWithFormat:@"%@ -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=epswrite -sOutputFile=%@ -c save pop -f '%@'", [self gsPath], psFile, pdfFile]; +- system([commandLine UTF8String]); ++ if (system([commandLine UTF8String]) != 0) ++ { ++ NSRunAlertPanel(@"Unable to import file", ++ @"An error occured while importing the file.\n" ++ @"Make sure you have ghostscript installed in PATH.", ++ @"OK", nil, nil); ++ return nil; ++ } + + /* import ps */ + psData = [NSData dataWithContentsOfFile:psFile]; +@@ -330,7 +337,14 @@ + //[data writeToFile:inFile atomically:NO]; // <= 10.4 + + commandLine = [NSString stringWithFormat:@"%@ -dNODISPLAY -dBATCH -dNOSAFER -g1000x1000 '%@'", [self gsPath], inFile]; +- system([commandLine UTF8String]); ++ if (system([commandLine UTF8String]) != 0) ++ { ++ NSRunAlertPanel(@"Unable to import file", ++ @"An error occured while importing the file.\n" ++ @"Make sure you have ghostscript installed in PATH.", ++ @"OK", nil, nil); ++ return nil; ++ } + + /* load generated file */ + //data = [[[NSString alloc] initWithContentsOfFile:outFile] autorelease]; diff --git a/gnustep-apps/cenon/files/cenon-4.0.2-gnustep-gui-0.24-support.patch b/gnustep-apps/cenon/files/cenon-4.0.2-gnustep-gui-0.24-support.patch new file mode 100644 index 000000000000..b0799d835175 --- /dev/null +++ b/gnustep-apps/cenon/files/cenon-4.0.2-gnustep-gui-0.24-support.patch @@ -0,0 +1,231 @@ +Description: Various fixes for gnustep-base/1.24 and gnustep-gui/0.24. + - Proper intialization. + - Use correct return types for methods and compare functions. + - Likewise for method arguments. + - Avoid conflicting methods by declaring the ivars of a specific type. + - Add mising argument to private method declaration. +Author: Yavor Doganov <yavor@gnu.org> +Bug-Debian: http://bugs.debian.org/749553 +Forwarded: yes +Last-Update: 2014-06-25 +--- + +--- cenon.app.orig/GraphicObjects.subproj/VCurveFit.m ++++ cenon.app/GraphicObjects.subproj/VCurveFit.m +@@ -87,7 +87,7 @@ + /* turn lines into optimized curves + */ + - (VPath*)fitGraphic:(VGraphic*)g maxError:(double)maxError +-{ Point2 *pts = nil; ++{ Point2 *pts = NULL; + int i, nPts = 0; + VPath *path = nil; + +--- cenon.app.orig/GraphicObjects.subproj/VGroup.h ++++ cenon.app/GraphicObjects.subproj/VGroup.h +@@ -67,7 +67,7 @@ + - (float)stepWidth; + - (void)setRadialCenter:(NSPoint)rc; + - (NSPoint)radialCenter; +-- (void)setList:(NSArray*)aList; ++- (void)setList:(NSMutableArray*)aList; + - (void)addObject:(VGraphic*)g; + - (void)add:(NSArray*)addList; + - (NSMutableArray*)list; +--- cenon.app.orig/InspectorPanel.subproj/IPAllAcc.h ++++ cenon.app/InspectorPanel.subproj/IPAllAcc.h +@@ -40,7 +40,7 @@ + + @interface IPAllAcc:IPBasicLevel + { +- id accPopup; // the popup to allow the user to select the different accessories ++ NSPopUpButton *accPopup; // the popup to allow the user to select the different accessories + id accView; // the view containing the accessory view + + int levelCnt; // number of accessories +--- cenon.app.orig/InspectorPanel.subproj/IPAllFilling.h ++++ cenon.app/InspectorPanel.subproj/IPAllFilling.h +@@ -39,7 +39,7 @@ + id stepForm; + id colorWell; + id colorWellGraduated; +- id fillPopup; ++ NSPopUpButton *fillPopup; + id sliderBox; + id radialCenterText; + id angleButtonLeft; +--- cenon.app.orig/InspectorPanel.subproj/IPAllStrokeWidth.h ++++ cenon.app/InspectorPanel.subproj/IPAllStrokeWidth.h +@@ -35,7 +35,7 @@ + @interface IPAllStrokeWidth:IPBasicLevel + { + int stroked; +- id strokePopup; ++ NSPopUpButton *strokePopup; + id colorWell; + id widthField; + id widthSlider; +--- cenon.app.orig/LayerObject.h ++++ cenon.app/LayerObject.h +@@ -144,8 +144,8 @@ + - (void)setString:(NSString *)aString; + - (NSString*)string; + +-- (void)setTag:(int)newTag; +-- (int)tag; ++- (void)setTag:(NSInteger)newTag; ++- (NSInteger)tag; + + - (void)setColor:(NSColor *)aColor; + - (NSColor *)color; +--- cenon.app.orig/LayerObject.m ++++ cenon.app/LayerObject.m +@@ -227,8 +227,8 @@ + - (void)setString:(NSString *)aString { [string release]; string = [aString retain]; } + - (NSString *)string { return string; } + +-- (void)setTag:(int)newTag { tag = newTag; } +-- (int)tag { return tag; } ++- (void)setTag:(NSInteger)newTag { tag = newTag; } ++- (NSInteger)tag { return tag; } + + - (void)setColor:(NSColor *)aColor { color=aColor; } + - (NSColor *)color { return color; } +--- cenon.app.orig/GraphicObjects.subproj/VPath.h ++++ cenon.app/GraphicObjects.subproj/VPath.h +@@ -58,7 +58,7 @@ + - (NSMutableArray*)list; + - (void)setList:aList; + - (void)setList:aList optimize:(BOOL)optimize; +-- (unsigned)count; ++- (NSUInteger)count; + - (unsigned)countRecursive; + - (void)getEndPoints:(NSPoint*)p1 :(NSPoint*)p2; + - (int)selectedKnobIndex; +--- cenon.app.orig/GraphicObjects.subproj/VPath.m ++++ cenon.app/GraphicObjects.subproj/VPath.m +@@ -399,7 +399,7 @@ + *p2 = [[list objectAtIndex:[list count]-1] pointWithNum:MAXINT]; + } + +-- (unsigned)count ++- (NSUInteger)count + { + return [list count]; + } +--- cenon.app.orig/InspectorPanel.subproj/IPImage.h ++++ cenon.app/InspectorPanel.subproj/IPImage.h +@@ -43,7 +43,7 @@ + id thumbSwitch; + id nameField; + id factorField; +- id compPopUp; ++ NSPopUpButton *compPopUp; + + VGraphic *graphic; // the loaded graphic or the first of them if multiple + } +--- cenon.app.orig/DINImportSub.m ++++ cenon.app/DINImportSub.m +@@ -46,7 +46,7 @@ + /* created: 2001-06-06 + * performcance map is not used, because we set this later when the layers are added to the view! + */ +-static NSInteger sortLayer(id l1, id l2, void *context) ++static NSComparisonResult sortLayer(id l1, id l2, void *context) + { float d1 = 0.0, d2 = 0.0; + VGraphic *g0 = [[l1 list] objectAtIndex:0], *g1 = [[l2 list] objectAtIndex:0]; + +--- cenon.app.orig/DocView.m ++++ cenon.app/DocView.m +@@ -994,7 +994,7 @@ + #define SORT_COL_LRUL 5 + #define SORT_ROW_URLL 6 + #define SORT_ROW_LRUL 7 +-NSInteger sortPosition(id g1, id g2, void *context) ++NSComparisonResult sortPosition(id g1, id g2, void *context) + { NSPoint p1 = [g1 bounds].origin, p2 = [g2 bounds].origin; + int sort = *(int*)context; + +--- cenon.app.orig/SVGImportSub.m ++++ cenon.app/SVGImportSub.m +@@ -112,7 +112,7 @@ + /* allocate a group object + * copy the objects in aList to the group, add the group to bList + */ +-- (void)addGroupList:(NSArray*)aList toList:bList ++- (void)addGroupList:(NSMutableArray*)aList toList:bList + { VGroup *g = [VGroup group]; + int i; + NSMutableArray *mutArray = [NSMutableArray array]; +@@ -136,7 +136,7 @@ + [bList addObject:g]; + } + +-- (void)addGroupList:(NSArray*)aList toList:bList withTransform:(NSAffineTransform*)matrix ++- (void)addGroupList:(NSMutableArray*)aList toList:bList withTransform:(NSAffineTransform*)matrix + { VGroup *g = [VGroup group]; + int i; + NSMutableArray *mutArray = [NSMutableArray array]; +--- cenon.app.orig/MoveCell.h ++++ cenon.app/MoveCell.h +@@ -32,7 +32,7 @@ + + @interface MoveCell:NSCell + { +- int tag; ++ NSInteger tag; + MoveMatrix *moveMatrix; + + float ascender, descender, lineHeight; +@@ -41,8 +41,8 @@ + - (void)setMatrix:(MoveMatrix *)anMatrix; + - (void)setFont:(NSFont *)fontObj; + +-- (void)setTag:(int)anInt; +-- (int)tag; ++- (void)setTag:(NSInteger)anInt; ++- (NSInteger)tag; + + - (BOOL)dependant; + +--- cenon.app.orig/MoveCell.m ++++ cenon.app/MoveCell.m +@@ -39,14 +39,14 @@ + + /* modified: 13.01.93 + */ +-- (void)setTag:(int)anInt ++- (void)setTag:(NSInteger)anInt + { + tag=anInt; + } + + /* modified: 13.01.93 + */ +-- (int)tag ++- (NSInteger)tag + { + return tag; + } +--- cenon.app.orig/VHFImport/DXFImport.m ++++ cenon.app/VHFImport/DXFImport.m +@@ -86,7 +86,7 @@ + - (BOOL)getSolid:(NSScanner*)scanner :(NSPoint*)ps :(int*)pCnt; + - (BOOL)getCircle:(NSScanner*)scanner :(NSPoint*)ctr :(NSPoint*)start :(float*)angle; + - (BOOL)getArc:(NSScanner*)scanner :(NSPoint*)ctr :(NSPoint*)start :(float*)angle; +-- (BOOL)getText :(NSScanner*)scanner mtext:(BOOL)mext :(NSString**)string :(float*)angle :(NSPoint*)origin :(float*)size :(float*)ar :(int*)alignment; ++- (BOOL)getText :(NSScanner*)scanner mtext:(BOOL)mext :(NSString**)string :(float*)angle :(NSPoint*)origin :(float*)size :(float*)ar :(int*)alignment :(NSString**)fontName; + - (BOOL)get3DFace:(NSScanner*)scanner points:(V3Point*)pts color:(NSColor**)color; + - (BOOL)getInsert:(NSScanner*)scanner :cList; + - (void)updateBounds:(NSPoint)p; +--- cenon.app.orig/TileScrollView.h ++++ cenon.app/TileScrollView.h +@@ -36,7 +36,7 @@ + @interface TileScrollView:NSScrollView + { + id box; +- id resPopupListButton; ++ NSPopUpButton *resPopupListButton; + id document; + VFloat oldScaleFactor; + } diff --git a/gnustep-apps/cenon/files/cenon-4.0.2-install.patch b/gnustep-apps/cenon/files/cenon-4.0.2-install.patch new file mode 100644 index 000000000000..8a75db6ee13a --- /dev/null +++ b/gnustep-apps/cenon/files/cenon-4.0.2-install.patch @@ -0,0 +1,19 @@ +diff -Naur Cenon.orig/GNUmakefile.postamble Cenon/GNUmakefile.postamble +--- Cenon.orig/GNUmakefile.postamble 2013-04-23 18:18:19.231871028 +0200 ++++ Cenon/GNUmakefile.postamble 2013-04-23 18:19:31.482864370 +0200 +@@ -18,12 +18,12 @@ + # before-install:: + + # Things to do after installing +-after-install:: ++#after-install:: + # copy library + #rm -R $(GNUSTEP_LIBRARY)/$(APP_NAME) +- 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/metadata.xml b/gnustep-apps/cenon/metadata.xml new file mode 100644 index 000000000000..82760064a1ed --- /dev/null +++ b/gnustep-apps/cenon/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>gnustep@gentoo.org</email> + <name>Gentoo GNUstep Project</name> + </maintainer> + <longdescription> + Cenon is a graphical tool of a special kind. Build upon a + modular graphical core, Cenon offers a wide variety of + possibilities and applications. + </longdescription> +</pkgmetadata> |