[MacPorts] #13787: ManOpen fails to install on Mac OS X 10.5.1

MacPorts noreply at macports.org
Fri Mar 6 18:04:05 PST 2009


#13787: ManOpen fails to install on Mac OS X 10.5.1
-----------------------------------------+----------------------------------
 Reporter:  mayer.julian@…               |       Owner:  waqar@…           
     Type:  defect                       |      Status:  new               
 Priority:  Normal                       |   Milestone:  Port Bugs         
Component:  ports                        |     Version:  1.6.0             
 Keywords:  ManOpen                      |  
-----------------------------------------+----------------------------------

Comment(by tweiand@…):

 I have recently gotten ManOpen to compile on Leopard using this patch.
 Hope this helps.

 {{{
 diff -Naur -x '*.xcode' -x '*.nib' -x '*.pbxproj'
 ManOpen-2.5.1/ManOpen/ManDocument.m ManOpen/ManOpen/ManDocument.m
 --- ManOpen-2.5.1/ManOpen/ManDocument.m 2005-11-27 23:32:39.000000000
 -0800
 +++ ManOpen/ManOpen/ManDocument.m       2009-03-06 14:12:48.000000000
 -0800
 @@ -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();
 }}}

-- 
Ticket URL: <http://trac.macports.org/ticket/13787#comment:3>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list