[103815] trunk/dports/java

ryandesign at macports.org ryandesign at macports.org
Thu Mar 7 21:53:45 PST 2013


Revision: 103815
          https://trac.macports.org/changeset/103815
Author:   ryandesign at macports.org
Date:     2013-03-07 21:53:45 -0800 (Thu, 07 Mar 2013)
Log Message:
-----------
mars: new port, version 4.3 (#38320)

Added Paths:
-----------
    trunk/dports/java/mars/
    trunk/dports/java/mars/Portfile
    trunk/dports/java/mars/files/
    trunk/dports/java/mars/files/Info.plist.in
    trunk/dports/java/mars/files/PkgInfo
    trunk/dports/java/mars/files/mars.in

Added: trunk/dports/java/mars/Portfile
===================================================================
--- trunk/dports/java/mars/Portfile	                        (rev 0)
+++ trunk/dports/java/mars/Portfile	2013-03-08 05:53:45 UTC (rev 103815)
@@ -0,0 +1,85 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+
+name                mars
+version             4.3
+set releasedate     Jan2013
+set fileversion     [join [split ${version} .] _]
+revision            0
+categories          java devel
+platforms           darwin
+supported_archs     noarch
+license             MIT
+maintainers         gmx.de:Torsten.Maehne openmaintainer
+
+description         MARS (MIPS Assembler and Runtime Simulator)
+
+long_description    MARS is a lightweight interactive development environment \
+                    (IDE) for programming in MIPS assembly language, intended \
+                    for educational-level use with Patterson and Hennessy's \
+                    Computer Organization and Design.
+
+homepage            http://courses.missouristate.edu/kenvollmar/mars/
+master_sites        ${homepage}MARS_${fileversion}_${releasedate}/
+distname            Mars${fileversion}
+use_zip             yes
+extract.suffix      .jar
+
+checksums           sha1    5a8608ba0a8548d12c035d9817769d86edfa77f8 \
+                    rmd160  21e419cd2cd181e48e651e6beeae88cd4273466f
+
+depends_lib         bin:java:kaffe
+
+use_configure       no
+
+build               {}
+
+destroot {
+    # Install Mars JAR
+    xinstall -m 755 -d ${destroot}${prefix}/share/java
+    xinstall -m 644 -W ${distpath} ${distname}.jar ${destroot}${prefix}/share/java
+    
+    # Install and configure mars command line wrapper
+    xinstall -m 755 ${filespath}/mars.in ${destroot}${prefix}/bin/mars
+    reinplace "s|@MARSJARPATH@|${prefix}/share/java/${distname}.jar|g" ${destroot}${prefix}/bin/mars
+}
+
+# The only reason we extract the zip file is to get the image for the OS X app icon,
+# so we don't need to extract it on other platforms.
+if {${os.platform} != "darwin"} {
+    extract.only
+}
+
+platform darwin {
+    depends_build-append        port:makeicns
+    
+    extract.mkdir               yes
+    pre-extract {
+        extract.post_args-append    images/MarsThumbnail.gif
+    }
+    
+    # Build a nice .app
+    post-destroot {
+        set MarsAppPath ${destroot}${applications_dir}/MARS.app
+        # Build paths
+        xinstall -m 755 -d ${MarsAppPath}/Contents/Resources/Java \
+                           ${MarsAppPath}/Contents/MacOS
+        # Basic package information
+        xinstall -m 644 ${filespath}/PkgInfo ${MarsAppPath}/Contents/PkgInfo
+        xinstall -m 644 ${filespath}/Info.plist.in ${MarsAppPath}/Contents/Info.plist
+        # Set the version in the Info.plist
+        reinplace "s|@VERSION@|${version}|g" ${MarsAppPath}/Contents/Info.plist
+        # Set the JAR file name
+        reinplace "s|@MARSJARFILE@|${distname}.jar|g" ${MarsAppPath}/Contents/Info.plist
+        # Generate the icon
+        system "${prefix}/bin/makeicns -in ${worksrcpath}/images/MarsThumbnail.gif -out ${MarsAppPath}/Contents/Resources/Mars.icns"
+        # Link to the JAR file
+        ln -s ${prefix}/share/java/${distname}.jar \
+                        ${MarsAppPath}/Contents/Resources/Java/${distname}.jar
+        # Copy the stub app
+        xinstall -m 755 "/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/MacOS/JavaApplicationStub" \
+                        ${MarsAppPath}/Contents/MacOS
+    }
+}


Property changes on: trunk/dports/java/mars/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/java/mars/files/Info.plist.in
===================================================================
--- trunk/dports/java/mars/files/Info.plist.in	                        (rev 0)
+++ trunk/dports/java/mars/files/Info.plist.in	2013-03-08 05:53:45 UTC (rev 103815)
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
+<plist version="0.9">
+<dict>
+	<key>CFBundleName</key>
+	<string>MARS</string>
+	<key>CFBundleIdentifier</key>
+	<string>edu.missouristate.courses.kenvollmar.mars</string>
+	<key>CFBundleVersion</key>
+	<string>@VERSION@</string>
+	<key>CFBundleAllowMixedLocalizations</key>
+	<string>true</string>
+	<key>CFBundleExecutable</key>
+	<string>JavaApplicationStub</string>
+	<key>CFBundleDevelopmentRegion</key>
+	<string>English</string>
+	<key>CFBundlePackageType</key>
+	<string>APPL</string>
+	<key>CFBundleShortVersionString</key>
+	<string>@VERSION@</string>
+	<key>CFBundleSignature</key>
+	<string>MARS</string>
+	<key>CFBundleGetInfoString</key>
+	<string>MARS (MIPS Assembler and Runtime Simulator)</string>
+	<key>CFBundleInfoDictionaryVersion</key>
+	<string>6.0</string>
+	<key>CFBundleIconFile</key>
+	<string>Mars.icns</string>
+	<key>Java</key>
+	<dict>
+		<key>MainClass</key>
+		<string>Mars</string>
+		<key>JVMVersion</key>
+		<string>1.5+</string>
+		<key>ClassPath</key>
+			<string>$JAVAROOT/@MARSJARFILE@</string>
+		<key>Properties</key>
+		<dict>
+			<key>apple.laf.useScreenMenuBar</key>
+			<string>true</string>
+		</dict>
+	</dict>
+</dict>
+</plist>


Property changes on: trunk/dports/java/mars/files/Info.plist.in
___________________________________________________________________
Added: svn:eol-style
   + native

Added: trunk/dports/java/mars/files/PkgInfo
===================================================================
--- trunk/dports/java/mars/files/PkgInfo	                        (rev 0)
+++ trunk/dports/java/mars/files/PkgInfo	2013-03-08 05:53:45 UTC (rev 103815)
@@ -0,0 +1 @@
+APPLMARS
\ No newline at end of file

Added: trunk/dports/java/mars/files/mars.in
===================================================================
--- trunk/dports/java/mars/files/mars.in	                        (rev 0)
+++ trunk/dports/java/mars/files/mars.in	2013-03-08 05:53:45 UTC (rev 103815)
@@ -0,0 +1,2 @@
+#!/bin/sh
+java -jar @MARSJARPATH@


Property changes on: trunk/dports/java/mars/files/mars.in
___________________________________________________________________
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130307/fe74087e/attachment.html>


More information about the macports-changes mailing list