Update highlighterkit to 0.1.1, minor improvements about how highlighting is done.
Added patch to build with gcc-2.95 OK landry@
This commit is contained in:
parent
7a3b2e7274
commit
1f530cb5e4
@ -1,14 +1,13 @@
|
||||
# $OpenBSD: Makefile,v 1.3 2011/05/15 13:03:26 sebastia Exp $
|
||||
# $OpenBSD: Makefile,v 1.4 2011/05/20 07:29:49 sebastia Exp $
|
||||
|
||||
COMMENT = framework for highlighting and coloring syntax
|
||||
|
||||
DISTNAME = HighlighterKit-0.1
|
||||
REVISION = 0
|
||||
DISTNAME = HighlighterKit-0.1.1
|
||||
|
||||
SHARED_LIBS = HighlighterKit 0.0
|
||||
|
||||
HOMEPAGE = http://wiki.gnustep.org/index.php/HighlighterKit
|
||||
MASTER_SITES = ${MASTER_SITE_GNUSTEP:=contrib/}
|
||||
MASTER_SITES = http://download.gna.org/gnustep-nonfsf/
|
||||
|
||||
MODULES = x11/gnustep
|
||||
MODGNUSTEP_NEEDS_BASE = NO
|
||||
|
@ -1,5 +1,5 @@
|
||||
MD5 (gnustep/HighlighterKit-0.1.tar.gz) = pKFYcdvrtxjcdxY4xWbwYw==
|
||||
RMD160 (gnustep/HighlighterKit-0.1.tar.gz) = WBCjDRohDHTk0kb28MtQ1fMCf6g=
|
||||
SHA1 (gnustep/HighlighterKit-0.1.tar.gz) = UFvMSPbZM3MOEb5OG6zzB9oLJ+U=
|
||||
SHA256 (gnustep/HighlighterKit-0.1.tar.gz) = Q1psz4fseG4v+UZZ5vuDs/ueSjdAmcBwz5BC/7ANln8=
|
||||
SIZE (gnustep/HighlighterKit-0.1.tar.gz) = 91479
|
||||
MD5 (gnustep/HighlighterKit-0.1.1.tar.gz) = lYuvTuvzfgUBtoCyJ2pENg==
|
||||
RMD160 (gnustep/HighlighterKit-0.1.1.tar.gz) = 8N6KDclelWc/OjYeFmvLBAPsiiM=
|
||||
SHA1 (gnustep/HighlighterKit-0.1.1.tar.gz) = ns3hLsism780Ao9vKtr+Z6XLjb0=
|
||||
SHA256 (gnustep/HighlighterKit-0.1.1.tar.gz) = Sg70fyGpxl20ROUNTZ8LD6Hj9LpLwX8yvUXK82O1Kd0=
|
||||
SIZE (gnustep/HighlighterKit-0.1.1.tar.gz) = 53277
|
||||
|
@ -0,0 +1,34 @@
|
||||
$OpenBSD: patch-HKSyntaxDefinition_m,v 1.1 2011/05/20 07:29:49 sebastia Exp $
|
||||
|
||||
fix build with gcc-2.95
|
||||
|
||||
--- HKSyntaxDefinition.m.orig Wed May 18 08:21:41 2011
|
||||
+++ HKSyntaxDefinition.m Wed May 18 08:22:52 2011
|
||||
@@ -219,13 +219,13 @@ SearchBundlesForSyntaxFile (NSArray *bundles, NSString
|
||||
+ (NSString *) findSyntaxFileForType: (NSString *) type
|
||||
{
|
||||
NSEnumerator * e;
|
||||
- NSString * directory;
|
||||
+ NSString *directory;
|
||||
+ NSString *file;
|
||||
NSFileManager * fm = [NSFileManager defaultManager];
|
||||
|
||||
// make the search case insensitive
|
||||
type = [type lowercaseString];
|
||||
|
||||
- NSString *file;
|
||||
|
||||
// first we look into all the app's bundles, as they might contain
|
||||
// the latest version of the syntax file
|
||||
@@ -249,9 +249,10 @@ SearchBundlesForSyntaxFile (NSArray *bundles, NSString
|
||||
|
||||
while ((origPath = [de nextObject]) != nil)
|
||||
{
|
||||
+ NSString *path;
|
||||
origPath = [subpath stringByAppendingPathComponent: origPath];
|
||||
|
||||
- NSString * path = [origPath lowercaseString];
|
||||
+ path = [origPath lowercaseString];
|
||||
|
||||
if ([[path pathExtension] isEqualToString: @"syntax"] &&
|
||||
[[[path lastPathComponent] stringByDeletingPathExtension]
|
Loading…
x
Reference in New Issue
Block a user