Changeset 64326


Ignore:
Timestamp:
Mar 2, 2010, 3:49:01 PM (10 years ago)
Author:
singingwolfboy@…
Message:

Updated jython to 2.5.1

Location:
trunk/dports/lang/jython
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/lang/jython/Portfile

    r57375 r64326  
    11# $Id$
    22
    3 PortSystem 1.0
     3PortSystem          1.0
    44
    5 name            jython
    6 version         2.1
    7 categories      lang python java
    8 platforms       darwin
    9 maintainers     nomaintainer
    10 description     Python implementation in pure Java
    11 long_description        Jython is an implementation of the high-level, \
    12                         dynamic, object-oriented language Python written in \
    13                         100% Pure Java, and seamlessly integrated with the \
    14                         Java platform. It thus allows you to run Python on any \
    15                         Java platform.
     5name                jython
     6version             2.5.1
     7categories          lang python java
     8platforms           darwin
     9maintainers         singingwolfboy openmaintainer
     10description         Python implementation in pure Java
     11long_description    \
     12    Jython is an implementation of the high-level, \
     13    dynamic, object-oriented language Python written in \
     14    100% Pure Java, and seamlessly integrated with the \
     15    Java platform. It thus allows you to run Python on any \
     16    Java platform.
    1617
    17 homepage        http://www.jython.org/
    18 master_sites    http://ftp.belnet.be/pub/mirror/fink.sourceforge.net/distfiles/
    19 checksums       md5 5a32f0f0b584d99544cb5b12e0383ac7
    20 use_bzip2       yes
     18homepage            http://www.jython.org/
     19master_sites        sourceforge:jython
     20fetch.type          svn
     21set und_vers        [string map {. _} ${version}]
     22svn.url             https://jython.svn.sourceforge.net/svnroot/jython/tags/Release_${und_vers}/jython
     23distname            jython
    2124
    22 depends_build   bin:ant:apache-ant
    23 depends_lib     bin:java:kaffe
     25depends_build       bin:ant:apache-ant
     26depends_lib         bin:java:kaffe
    2427
    25 use_configure   no
     28use_configure       no
     29build.cmd           ant
     30build.target        developer-build
    2631
    27 build.cmd       ant dist || ant jar
    28 build.target
     32destroot    {
     33    move ${worksrcpath}/dist/jython-dev.jar ${worksrcpath}/dist/jython.jar
     34   
     35    xinstall -m 755 ${worksrcpath}/dist/bin/jython ${destroot}${prefix}/bin/
     36    reinplace "s|JYTHON_HOME_1=`dirname \"\$PRG\"`|JYTHON_HOME_1=${prefix}/share/java/${name}|" ${destroot}${prefix}/bin/jython
    2937
    30 destroot        {
    31         xinstall -m 755 ${filespath}/jython ${destroot}${prefix}/bin
    32         reinplace "s|__PREFIX__|${prefix}|g" ${destroot}${prefix}/bin/jython
    33         xinstall -m 755 -d ${destroot}${prefix}/share/java/
    34         xinstall -m 644 ${worksrcpath}/dist/jython.jar \
    35                 ${destroot}${prefix}/share/java/
     38    xinstall -m 755 -d ${destroot}${prefix}/share/java/
     39    copy ${worksrcpath}/dist \
     40        ${destroot}${prefix}/share/java/${name}
     41}
     42post-destroot {
     43    xinstall -m 777 -d ${destroot}${prefix}/share/java/${name}/cachedir/packages
     44    system "touch ${destroot}${prefix}/share/java/${name}/cachedir/packages/blank"
    3645}
    3746
    38 livecheck.type  sourceforge
     47variant installer description {Use installer, rather than building from source} {
     48    fetch.type      standard
     49    distname        ${name}_installer-${version}
     50    worksrcdir     
     51    extract.suffix  .jar
     52    extract.cmd     cp
     53    extract.args    ${worksrcpath}
     54    extract.pre_args
     55    extract.post_args ${worksrcpath}
     56    depends_build-delete bin:ant:apache-ant
     57    checksums       md5     2ee978eff4306b23753b3fe9d7af5b37 \
     58                    sha1    f0e8137b79b6f42cdc0835ab5344d823173ae326 \
     59                    rmd160  e25d1992408d03a4479f3eca6ebbeaa2292b26b8
     60
     61    pre-build {
     62        xinstall -m 755 -d ${destroot}${prefix}/share/java/${name}
     63    }
     64
     65    build.cmd       java
     66    build.target   
     67    build.args      -jar ${distname}${extract.suffix}
     68    build.post_args -s -d ${destroot}${prefix}/share/java/${name}
     69    destroot        {
     70        reinplace -E "s|^JYTHON_HOME_FALLBACK=.*|JYTHON_HOME_FALLBACK=\"${prefix}/share/java/${name}\"|" ${destroot}${prefix}/share/java/${name}/jython
     71        move ${destroot}${prefix}/share/java/${name}/jython ${destroot}${prefix}/bin/
     72    }
     73}
     74default_variants +installer
     75
     76livecheck.type  sourceforge
Note: See TracChangeset for help on using the changeset viewer.