Ticket #23081: clojure-1.1.0.patch
File clojure-1.1.0.patch, 4.4 KB (added by schlosna@…, 15 years ago) |
---|
-
files/clj-jline.sh
4 4 5 5 6 6 cljjar='lib/clojure.jar' 7 cljclass='clojure.lang.Repl' 8 cljscript='clojure.lang.Script' 7 cljclass='clojure.main' 9 8 jlineclass='jline.ConsoleRunner' 10 9 11 10 dir=$0 … … 36 35 exec java -classpath $cp $jlineclass $cljclass 37 36 else 38 37 scriptname=$1 39 exec java -classpath $cp $jlineclass $clj script $scriptname --$*38 exec java -classpath $cp $jlineclass $cljclass $scriptname -- $* 40 39 fi -
files/clj.sh
4 4 5 5 6 6 cljjar='lib/clojure.jar' 7 cljclass='clojure.lang.Repl' 8 cljscript='clojure.lang.Script' 7 cljclass='clojure.main' 9 8 10 9 dir=$0 11 10 while [ -h "$dir" ]; do … … 34 33 exec java -classpath $cp $cljclass 35 34 else 36 35 scriptname=$1 37 exec java -classpath $cp $clj script $scriptname --$*36 exec java -classpath $cp $cljclass $scriptname -- $* 38 37 fi -
files/clj-rlwrap.sh
5 5 BREAK_CHARS="\(\){}[],^%$#@\"\";:''|\\" 6 6 7 7 cljjar='lib/clojure.jar' 8 cljclass='clojure.lang.Repl' 9 cljscript='clojure.lang.Script' 8 cljclass='clojure.main' 10 9 cljcompletions='.clj_completions' 11 10 12 11 dir=$0 … … 37 36 rlwrap --remember -c -b $BREAK_CHARS -f $cljcompletions java -cp $cp $cljclass 38 37 else 39 38 scriptname=$1 40 exec java -classpath $cp $clj script $scriptname --$*39 exec java -classpath $cp $cljclass $scriptname -- $* 41 40 fi 42 41 -
Portfile
4 4 5 5 name clojure 6 6 conflicts clojure-devel 7 version 1. 0.08 epoch 2009 05047 version 1.1.0 8 epoch 20091231 9 9 revision 1 10 10 categories lang java 11 11 maintainers gmail.com:mdippery … … 20 20 distname clojure_${version} 21 21 master_sites googlecode:clojure 22 22 23 checksums md5 e7a50129040df7fe52287006988ecbb2\24 sha1 fa7c03be9b30e9462b71aead03ea4487c6b9aeac\25 rmd160 cb4533bf24c96613cfa3a1643cafa2b689c32f8326 distname ${name} _${version}23 checksums md5 9c9e92f85351721b76f40578f5c1a94a \ 24 sha1 c253dd52734a008321a1db34439744a6d02587ea \ 25 rmd160 8cb486181edf2a8e8d9ea061602d396304e503c4 26 distname ${name}-${version} 27 27 use_zip yes 28 28 29 29 use_configure no … … 38 38 } 39 39 40 40 destroot { 41 set javadir ${ destroot}${prefix}/share/java41 set javadir ${prefix}/share/java 42 42 set clojuredir ${javadir}/clojure 43 set clojure jar ${clojuredir}/lib/clojure.jar44 set clojurebin ${clojuredir}/bin/clj45 set clojure link ${prefix}/share/java/clojure/bin/clj43 set clojurelibdir ${clojuredir}/lib 44 set clojurebindir ${clojuredir}/bin 45 set clojurebin ${clojurebindir}/clj 46 46 set clojuresh clj.sh 47 set bindir ${destroot}${prefix}/bin48 47 49 48 if {[variant_isset readline]} { 50 49 set clojuresh clj-jline.sh … … 54 53 set clojuresh clj-rlwrap.sh 55 54 } 56 55 57 xinstall -m 0755 -d ${ javadir}58 xinstall -m 0755 -d ${ clojuredir}59 xinstall -m 0755 -d ${ clojuredir}/lib60 xinstall -m 0755 -d ${ clojuredir}/bin61 xinstall -m 0644 -W ${workpath} clojure-${version} .jar ${clojurejar}62 xinstall -m 0755 -W ${filespath} ${clojuresh} ${ clojurebin}56 xinstall -m 0755 -d ${destroot}${javadir} 57 xinstall -m 0755 -d ${destroot}${clojuredir} 58 xinstall -m 0755 -d ${destroot}${clojurelibdir} 59 xinstall -m 0755 -d ${destroot}${clojurebindir} 60 xinstall -m 0644 -W ${workpath} clojure-${version}/clojure.jar ${destroot}${clojurelibdir}/clojure.jar 61 xinstall -m 0755 -W ${filespath} ${clojuresh} ${destroot}${clojurebin} 63 62 64 63 if {[variant_isset rlwrap]} { 65 xinstall -m 0644 -W ${filespath} .clj_completions ${ clojuredir}/.clj_completions64 xinstall -m 0644 -W ${filespath} .clj_completions ${destroot}${clojuredir}/.clj_completions 66 65 } 67 66 68 ln -s ${clojure link} ${bindir}/clj67 ln -s ${clojurebin} ${destroot}${prefix}/bin/clj 69 68 }