Ticket #17498: Portfile.diff

File Portfile.diff, 2.2 KB (added by mpdippery@…, 16 years ago)

Updated Portfile to include new version of Clojure as well as readline variant

  • Portfile

    old new  
    11# $Id: Portfile 40948 2008-10-18 20:05:04Z ryandesign@macports.org $
    22
    3 PortSystem 1.0
     3PortSystem          1.0
    44
    55name                clojure
    6 version             20080916
     6version             20081217
    77categories          lang java
    88maintainers         cs.wm.edu:mpd
    99description         The Clojure programming language
     
    1414                    persistent data structures and a macro system.
    1515homepage            http://clojure.org/
    1616platforms           darwin
    17 master_sites        sourceforge:clojure
     17distname            clojure_${version}
     18master_sites        googlecode:clojure
    1819
    19 checksums           md5 289c08f9c8cab51615623704b65048cf \
    20                     sha1 9df36441c3e2568c93608218cb4f6f13cd22bc95 \
    21                     rmd160 aa581415707e133e656a157644b687b706e74f3d
     20checksums           md5 cf0f4c27d30ae7cd675f401e169b17e7 \
     21                    sha1 b05ada05a975d3f54fbd58e333417af773853c94 \
     22                    rmd160 ed132b4b755f5fc14b11f491a0eb9acbd8d8dd45
    2223distname            ${name}_${version}
    2324use_zip             yes
    2425
    2526use_configure       no
    2627build               {}
    2728
     29variant readline description {Use readline support} {
     30    depends_run-append port:jline
     31}
     32
    2833destroot {
    2934    set javadir ${destroot}${prefix}/share/java
    3035    set clojuredir ${javadir}/clojure
    3136    set clojurejar ${clojuredir}/lib/clojure.jar
    3237    set clojurebin ${clojuredir}/bin/clj
     38    set clojurelink ${prefix}/share/java/clojure/bin/clj
     39    set clojuresh clj.sh
    3340    set bindir ${destroot}${prefix}/bin
    3441   
     42    if {[variant_isset readline]} {
     43        set clojuresh clj-jline.sh
     44    }
     45   
    3546    xinstall -m 0755 -d ${javadir}
    3647    xinstall -m 0755 -d ${clojuredir}
    3748    xinstall -m 0755 -d ${clojuredir}/lib
    3849    xinstall -m 0755 -d ${clojuredir}/bin
    39     xinstall -m 0644 -W ${workpath} clojure.jar ${clojurejar}
    40     xinstall -m 0755 -W ${filespath} clj.sh ${clojurebin}
    41     ln -s ${prefix}/share/java/clojure/bin/clj ${bindir}/clj
     50    xinstall -m 0644 -W ${workpath} ${name}/clojure.jar ${clojurejar}
     51    xinstall -m 0755 -W ${filespath} ${clojuresh} ${clojurebin}
     52    ln -s ${clojurelink} ${bindir}/clj
    4253}