Revision: 75698 http://trac.macports.org/changeset/75698 Author: jmr@macports.org Date: 2011-02-04 12:30:38 -0800 (Fri, 04 Feb 2011) Log Message: ----------- bean: update to 2.4.2 Modified Paths: -------------- trunk/dports/editors/bean/Portfile Added Paths: ----------- trunk/dports/editors/bean/files/ trunk/dports/editors/bean/files/ApplicationDelegate.m.diff Modified: trunk/dports/editors/bean/Portfile =================================================================== --- trunk/dports/editors/bean/Portfile 2011-02-04 20:27:16 UTC (rev 75697) +++ trunk/dports/editors/bean/Portfile 2011-02-04 20:30:38 UTC (rev 75698) @@ -5,7 +5,7 @@ PortGroup xcode 1.0 name bean -version 1.3.3 +version 2.4.2 categories editors aqua maintainers nomaintainer description A small, simple rich text editor. @@ -16,15 +16,19 @@ homepage http://www.bean-osx.com/ master_sites http://www.bean-osx.com/source/ -distname Bean-Source +distname Bean-Source-[string map {. -} $version] use_zip yes checksums \ - md5 8a4abf064d3e91d0dd8d79d420c6f582 \ - sha1 8f931f9dbba6fe75b68ba6dee34faf3a17ec3876 \ - rmd160 8b6ea07bcf7b36d608dee0af15216e90768fe42f + md5 60905c342bee6cb5f17c76675ca25033 \ + sha1 68b53c7fa14004a7adaf47fe6dfb2bfba470b9a3 \ + rmd160 e7aad1b02fe0066a0ea136994ebd1d4e804e474d -worksrcdir Bean +supported_archs i386 ppc +worksrcdir Bean-[string map {. -} $version] + +patchfiles ApplicationDelegate.m.diff + xcode.target Bean xcode.configuration Release Added: trunk/dports/editors/bean/files/ApplicationDelegate.m.diff =================================================================== --- trunk/dports/editors/bean/files/ApplicationDelegate.m.diff (rev 0) +++ trunk/dports/editors/bean/files/ApplicationDelegate.m.diff 2011-02-04 20:30:38 UTC (rev 75698) @@ -0,0 +1,29 @@ +--- ApplicationDelegate.m.orig 2009-11-22 14:34:21.000000000 +1100 ++++ ApplicationDelegate.m 2011-02-05 07:22:17.000000000 +1100 +@@ -59,6 +59,7 @@ + { + //NSLog(@"TIGER SWIZZLE"); + //Tiger only code -- method_types and method_imp are deprecated on Leopard ++#if defined(MAC_OS_X_VERSION_MIN_REQUIRED) && MAC_OS_X_VERSION_MIN_REQUIRED < 1050 + char *temp1; + IMP temp2; + temp1 = orig_method->method_types; +@@ -68,15 +69,18 @@ + temp2 = orig_method->method_imp; + orig_method->method_imp = alt_method->method_imp; + alt_method->method_imp = temp2; ++#endif + } + else + { ++#if defined(MAC_OS_X_VERSION_MIN_REQUIRED) && MAC_OS_X_VERSION_MIN_REQUIRED >= 1050 + //NSLog(@"LEOPARD SWIZZLE"); + //these obj-c 2.0 runtime msg's work on Leopard only -- see CocoaDev: Swizzle + if(class_addMethod(c, orig_sel, method_getImplementation(alt_method), method_getTypeEncoding(alt_method))) + class_replaceMethod(c, alt_sel, method_getImplementation(orig_method), method_getTypeEncoding(orig_method)); + else + method_exchangeImplementations(orig_method, alt_method); ++#endif + } + } else NSLog(@"Attempt to swizzle nonexistent methods!"); + }