Changeset 111147 for trunk/dports/java


Ignore:
Timestamp:
Sep 16, 2013, 1:26:49 AM (6 years ago)
Author:
ryandesign@…
Message:

mars: update to 4.4 (#40444)

Location:
trunk/dports/java/mars
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/java/mars/Portfile

    r103815 r111147  
    55
    66name                mars
    7 version             4.3
    8 set releasedate     Jan2013
     7version             4.4
     8set releasedate     Aug2013
    99set fileversion     [join [split ${version} .] _]
    1010revision            0
     
    2828extract.suffix      .jar
    2929
    30 checksums           sha1    5a8608ba0a8548d12c035d9817769d86edfa77f8 \
    31                     rmd160  21e419cd2cd181e48e651e6beeae88cd4273466f
     30checksums           sha1    54544a2f212cc5cc96868efe7ea8973be3f778fb \
     31                    rmd160  15480082329e9b9cc8d7ea81dc84cd3922dfbefc
    3232
    3333depends_lib         bin:java:kaffe
     
    3737build               {}
    3838
    39 destroot {
    40     # Install Mars JAR
    41     xinstall -m 755 -d ${destroot}${prefix}/share/java
    42     xinstall -m 644 -W ${distpath} ${distname}.jar ${destroot}${prefix}/share/java
    43    
    44     # Install and configure mars command line wrapper
    45     xinstall -m 755 ${filespath}/mars.in ${destroot}${prefix}/bin/mars
    46     reinplace "s|@MARSJARPATH@|${prefix}/share/java/${distname}.jar|g" ${destroot}${prefix}/bin/mars
    47 }
     39# The only reason we extract the zip file is to get the image for the
     40# OS X app icon (and patch the sources for the OS-X-specific jedit bug),
     41# so we don't need to extract it on other platforms.
     42if {${os.platform} ne "darwin"} {
     43    extract.only
     44    destroot {
     45        # Install Mars JAR
     46        xinstall -m 755 -d ${destroot}${prefix}/share/java
     47        xinstall -m 644 -W ${distpath} ${distname}.jar ${destroot}${prefix}/share/java
    4848
    49 # The only reason we extract the zip file is to get the image for the OS X app icon,
    50 # so we don't need to extract it on other platforms.
    51 if {${os.platform} != "darwin"} {
    52     extract.only
     49        # Install and configure mars command line wrapper
     50        xinstall -m 755 ${filespath}/mars.in ${destroot}${prefix}/bin/mars
     51        reinplace "s|@MARSJARPATH@|${prefix}/share/java/${distname}.jar|g" ${destroot}${prefix}/bin/mars
     52    }
    5353}
    5454
    5555platform darwin {
    5656    depends_build-append        port:makeicns
    57    
     57
    5858    extract.mkdir               yes
    59     pre-extract {
    60         extract.post_args-append    images/MarsThumbnail.gif
     59# As long as the OS-X-specific jedit bug is present in the editor of Mars,
     60# we have to unpack the whole JAR.
     61#    pre-extract {
     62#        extract.post_args-append    images/MarsThumbnail.gif
     63#    }
     64
     65    # The jedit-based editor of MARS requires a patch on OS X to enable
     66    # entering characters requiring the ALT key.
     67    patchfiles          patch-mars-venus-editors-jeditsyntax-DefaultInputHandler.java
     68    build {
     69        # Recompile patched source file
     70        # mars/venus/editors/jeditsyntax/DefaultInputHandler.java
     71        system "cd ${worksrcpath} && javac ${worksrcpath}/mars/venus/editors/jeditsyntax/DefaultInputHandler.java"
     72        # Create new JAR archive
     73        system "cd ${worksrcpath} && sh ${worksrcpath}/CreateMarsJar.bat"
    6174    }
    62    
     75
     76    destroot {
     77        # Install Mars JAR
     78        xinstall -m 755 -d ${destroot}${prefix}/share/java
     79        xinstall -m 644 ${worksrcpath}/Mars.jar ${destroot}${prefix}/share/java/${distname}.jar
     80
     81        # Install and configure mars command line wrapper
     82        xinstall -m 755 ${filespath}/mars.in ${destroot}${prefix}/bin/mars
     83        reinplace "s|@MARSJARPATH@|${prefix}/share/java/${distname}.jar|g" ${destroot}${prefix}/bin/mars
     84    }
     85
    6386    # Build a nice .app
    6487    post-destroot {
  • trunk/dports/java/mars/files/mars.in

    r103815 r111147  
    11#!/bin/sh
    2 java -jar @MARSJARPATH@
     2java -jar "@MARSJARPATH@" "$@"
     3
Note: See TracChangeset for help on using the changeset viewer.