[135551] trunk/dports/emulators/minivmac-devel

ryandesign at macports.org ryandesign at macports.org
Sun Apr 26 00:50:46 PDT 2015


Revision: 135551
          https://trac.macports.org/changeset/135551
Author:   ryandesign at macports.org
Date:     2015-04-26 00:50:46 -0700 (Sun, 26 Apr 2015)
Log Message:
-----------
minivmac-devel: update to 3.4.0alpha-20150306

Modified Paths:
--------------
    trunk/dports/emulators/minivmac-devel/Portfile

Added Paths:
-----------
    trunk/dports/emulators/minivmac-devel/files/patch-src-MYOSGLUE.m.diff

Modified: trunk/dports/emulators/minivmac-devel/Portfile
===================================================================
--- trunk/dports/emulators/minivmac-devel/Portfile	2015-04-26 02:54:46 UTC (rev 135550)
+++ trunk/dports/emulators/minivmac-devel/Portfile	2015-04-26 07:50:46 UTC (rev 135551)
@@ -9,7 +9,7 @@
 conflicts               minivmac
 set my_name             minivmac
 epoch                   4
-version                 3.4.0alpha-20141109
+version                 3.4.0alpha-20150306
 set branch              [join [lrange [split ${version} .] 0 1] .]
 set my_version          [strsed ${version} {g/^.*-20//}]
 categories              emulators aqua
@@ -20,13 +20,7 @@
 platforms               macosx
 use_parallel_build      yes
 dist_subdir             ${my_name}
-if {${version} != ${my_version}} {
-    # Development versions:
-    distname            ${my_name}${my_version}
-} else {
-    # Alpha and beta versions:
-    distname            ${my_name}-${version}
-}
+distname                ${my_name}${my_version}-${branch}
 
 description             an emulator of the Macintosh Plus and other early Macintosh models
 
@@ -65,8 +59,8 @@
                         ${my_autoquit_distfile}
 
 checksums               ${my_src_distfile} \
-                        rmd160  0ab4495ab56a86716ac42a44fce6bf79904a2de1 \
-                        sha256  966017a9dc022f21420c3647c525f6d60dbfcce6ecc48c746c0b3b7bfb43c70d \
+                        rmd160  9e7fdbb5337eced4b010f2b93dcef236fdfd2040 \
+                        sha256  8e7ae499ab4c2844e8a1e18a958c24542fa7db3fec35a1ba04b98fa11e7a51ef \
                         ${my_bootstrap_distfile} \
                         rmd160  32e803a75d4f9ab6b7dfa5a7b1ec2ef9d3a057c2 \
                         sha256  e6fe692683ab54e08b0350fe9901e872f7bf3c3a62f69b45773254fce45a4fae \
@@ -392,16 +386,7 @@
 }
 
 livecheck.type          regex
-livecheck.version       ${my_version}
-livecheck.regex         ${my_name}-?(\[0-9.\]+)\\.src
-
-if {${version} != ${my_version}} {
-    # Development versions:
-    livecheck.url       ${homepage}alpha.html
-} else {
-    # Alpha versions:
-    livecheck.url       ${homepage}doc-${branch}/download.html
-    
-    # Beta versions:
-    #livecheck.url       ${homepage}beta/index.html
-}
+livecheck.url           ${homepage}alpha.html
+#livecheck.url           ${homepage}beta.html
+livecheck.version       ${my_version}-${branch}
+livecheck.regex         ${my_name}-?(\[0-9.-\]+)\\.src

Copied: trunk/dports/emulators/minivmac-devel/files/patch-src-MYOSGLUE.m.diff (from rev 133380, trunk/dports/emulators/minivmac-devel/files/patch-src-MYOSGLUE.c.diff)
===================================================================
--- trunk/dports/emulators/minivmac-devel/files/patch-src-MYOSGLUE.m.diff	                        (rev 0)
+++ trunk/dports/emulators/minivmac-devel/files/patch-src-MYOSGLUE.m.diff	2015-04-26 07:50:46 UTC (rev 135551)
@@ -0,0 +1,74 @@
+--- src/MYOSGLUE.m.orig	2014-03-03 04:22:46.000000000 -0600
++++ src/MYOSGLUE.m	2014-05-22 06:54:51.000000000 -0500
+@@ -3506,70 +3506,7 @@
+ #if IncludeSonyNew
+ LOCALPROC MakeNewDisk(ui5b L, NSString *drivename)
+ {
+-	NSInteger result = NSCancelButton;
+-	NSSavePanel *panel = [NSSavePanel savePanel];
+-
+-	DisconnectKeyCodes3();
+-	ForceShowCursor();
+-
+-	if ([panel respondsToSelector:@selector(setNameFieldStringValue:)])
+-	{
+-#if 0
+-		[panel setNameFieldStringValue: drivename];
+-			/* available as of OS X 10.6 */
+-#endif
+-#if 0
+-		[panel performSelector:@selector(setNameFieldStringValue:)
+-			withObject: drivename];
+-#endif
+-		[((MyNSSavePanel *)panel)
+-			setNameFieldStringValue: drivename];
+-
+-		result = [panel runModal];
+-	} else
+-	if ([panel
+-		respondsToSelector: @selector(runModalForDirectory:file:)])
+-	{
+-#if 0
+-		result = [panel runModalForDirectory: nil file: drivename];
+-			/*
+-				compiler warns deprecated. To avoid warning, and
+-				to still work if removed from SDK, use NSInvocation.
+-			*/
+-#endif
+-#if 0
+-		NSString *sDirName = nil;
+-		SEL sel = @selector(runModalForDirectory:file:);
+-		NSInvocation* invoc =
+-			[NSInvocation invocationWithMethodSignature:
+-				[panel methodSignatureForSelector: sel]];
+-		[invoc setTarget:panel];
+-		[invoc setSelector:sel];
+-		[invoc setArgument:&sDirName atIndex:2];
+-		[invoc setArgument:&drivename atIndex:3];
+-		[invoc invoke];
+-		[invoc getReturnValue: &result];
+-#endif
+-		/* an easier way ? seems to work */
+-		result = [((MyNSSavePanel *)panel)
+-			runModalForDirectory: nil file: drivename];
+-	} else
+-	{
+-		/* fail */
+-	}
+-
+-	[MyWindow makeKeyWindow];
+-
+-	if (NSOKButton == result) {
+-		NSString* filePath = [[panel URL] path];
+-		MakeNewDisk0(L, filePath);
+-	}
+-
+-#if 0
+-	NSString *sPath =
+-		[myAppDir stringByAppendingPathComponent: drivename];
+-	MakeNewDisk0(L, sPath);
+-#endif
++	MakeNewDisk0(L, [[[[NSBundle mainBundle] bundlePath] stringByDeletingLastPathComponent] stringByAppendingPathComponent:drivename]);
+ }
+ #endif
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150426/1982c33d/attachment-0001.html>


More information about the macports-changes mailing list