[48503] trunk/dports/aqua/ManOpen

blb at macports.org blb at macports.org
Mon Mar 23 18:58:48 PDT 2009


Revision: 48503
          http://trac.macports.org/changeset/48503
Author:   blb at macports.org
Date:     2009-03-23 18:58:47 -0700 (Mon, 23 Mar 2009)
Log Message:
-----------
aqua/ManOpen - fix to build on 10.5, correct categories, use ${applications_dir}
Ticket #13787 (maintainer timeout)

Modified Paths:
--------------
    trunk/dports/aqua/ManOpen/Portfile

Added Paths:
-----------
    trunk/dports/aqua/ManOpen/files/
    trunk/dports/aqua/ManOpen/files/patch-ManOpen_ManDocument.m.diff

Modified: trunk/dports/aqua/ManOpen/Portfile
===================================================================
--- trunk/dports/aqua/ManOpen/Portfile	2009-03-24 01:54:46 UTC (rev 48502)
+++ trunk/dports/aqua/ManOpen/Portfile	2009-03-24 01:58:47 UTC (rev 48503)
@@ -3,8 +3,9 @@
 PortSystem    	1.0
 name      	ManOpen
 version       	2.5.1
-categories    	textproc aqua
-maintainers   	waqar at macports.org
+revision	1
+categories    	aqua textproc
+maintainers   	waqar
 description   	GUI application for viewing Unix manual pages, 
 long_description   \
 	It can open files directly or be given titles, in which case 	\
@@ -20,11 +21,12 @@
 worksrcdir	${name}-${version}
 checksums	md5 0f704085d6cece271860a521922292f5			\
 		sha1 387a482f3bb0e6c7573a2bea9327be4aede31a48
+patchfiles	patch-ManOpen_ManDocument.m.diff
 use_configure   no
 destroot 	{ 
-	xinstall -d -m 755 ${destroot}/Applications/MacPorts
+	xinstall -d -m 755 ${destroot}${applications_dir}
 	file copy ${build.dir}/${name}.app 				\
-		${destroot}/Applications/MacPorts/${name}.app
+		${destroot}/${applications_dir}/${name}.app
 	file copy ${build.dir}/openman ${destroot}${prefix}/bin
 	file copy ${build.dir}/openman.tproj/openman.1			\
 		${destroot}${prefix}/share/man/man1

Added: trunk/dports/aqua/ManOpen/files/patch-ManOpen_ManDocument.m.diff
===================================================================
--- trunk/dports/aqua/ManOpen/files/patch-ManOpen_ManDocument.m.diff	                        (rev 0)
+++ trunk/dports/aqua/ManOpen/files/patch-ManOpen_ManDocument.m.diff	2009-03-24 01:58:47 UTC (rev 48503)
@@ -0,0 +1,33 @@
+--- ManOpen/ManDocument.m.orig	2005-11-28 00:32:39.000000000 -0700
++++ ManOpen/ManDocument.m	2009-03-09 01:04:29.000000000 -0600
+@@ -325,7 +325,7 @@
+ #ifdef MACOS_X
+     /* The new ATS typesetter in Jaguar causes some weirdnesses... but is fixed in later versions. */
+     if (IsPantherOrEarlier())
+-        [[textView layoutManager] setTypesetter:[NSSimpleHorizontalTypesetter sharedInstance]];
++        [[textView layoutManager] setTypesetter:[NSTypesetter sharedSystemTypesetter]];
+ #endif
+ 
+     if (sizeString != nil)
+@@ -631,7 +631,9 @@
+     NSFont *font = ManFont();
+     int currPage = [[NSPrintOperation currentOperation] currentPage];
+     NSString *str = [NSString stringWithFormat:@"%d", currPage];
+-    float strWidth = [font widthOfString:str];
++//    float strWidth = [font widthOfString:str];
++       NSSize strSize = [str sizeWithAttributes:[NSDictionary dictionaryWithObject:font forKey: NSFontAttributeName]];
++       float strWidth = strSize.width;
+     NSPoint point = NSMakePoint(size.width/2 - strWidth/2, 20.0);
+ 
+ #ifdef MACOS_X
+@@ -641,8 +643,8 @@
+     CGContextSetTextMatrix(context, CGAffineTransformIdentity);
+     CGContextSetTextDrawingMode(context, kCGTextFill);  //needed?
+     CGContextSetGrayFillColor(context, 0.0, 1.0);
+-    CGContextSelectFont(context, [[font fontName] cString], [font pointSize], kCGEncodingMacRoman);
+-    CGContextShowTextAtPoint(context, point.x, point.y, [str cString], [str cStringLength]);
++    CGContextSelectFont(context, [[font fontName] UTF8String], [font pointSize], kCGEncodingMacRoman);
++    CGContextShowTextAtPoint(context, point.x, point.y, [str UTF8String], [str lengthOfBytesUsingEncoding:NSASCIIStringEncoding]);
+     CGContextRestoreGState(context);
+ #else
+     PSgsave();
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090323/2ac388d5/attachment.html>


More information about the macports-changes mailing list