ports/130759: [MAINTAINER] lang/clojure: support jline, enable by default

Peter Schuller peter.schuller at infidyne.com
Mon Jan 19 23:20:02 UTC 2009


>Number:         130759
>Category:       ports
>Synopsis:       [MAINTAINER] lang/clojure: support jline, enable by default
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 19 23:20:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     peter.schuller at infidyne.com
>Release:        FreeBSD 8.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD prometheus.scode.org 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Wed Dec  3 01:00:41 CET
>Description:

Support the use of jline (readline style console editing for Java)
with the clojure REPL. Enable it by default because it makes the
out-of-the-box behavior much more useful for the REPL use case, and
the dependency implies no more than a 60 kb .jar file - insignificant
compared to the 1.3 mb clojure jar.

Bump port revision.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- clojure-20081217_2.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/lang/clojure.orig/Makefile /usr/ports/lang/clojure/Makefile
--- /usr/ports/lang/clojure.orig/Makefile	2009-01-04 09:34:01.000000000 +0100
+++ /usr/ports/lang/clojure/Makefile	2009-01-20 00:07:04.714691108 +0100
@@ -8,7 +8,7 @@
 
 PORTNAME=	clojure
 PORTVERSION=	20081217
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	lang lisp java
 MASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
 DISTNAME=	${PORTNAME}_${PORTVERSION}
@@ -22,6 +22,16 @@
 NO_WRKSUBDIR=	yes
 NO_BUILD=	yes
 SUB_FILES=	clojure-bin
+OPTIONS=	JLINE "Enable jline support for the REPL" on
+
+.include <bsd.port.pre.mk>
+
+.ifdef(WITH_JLINE)
+RUN_DEPENDS+=	jline>=0.9.91:${PORTSDIR}/devel/jline
+CLOJURE_JLINE_RUNNER=jline.ConsoleRunner
+.endif
+
+SUB_LIST+=	CLOJURE_JLINE_RUNNER=${CLOJURE_JLINE_RUNNER}
 
 do-install:
 	${INSTALL_SCRIPT} ${WRKDIR}/clojure-bin ${PREFIX}/bin/clojure
@@ -29,4 +39,4 @@
 	@${MKDIR} ${DATADIR}
 	${INSTALL_DATA} ${WRKDIR}/clojure/src/clj/clojure/main.clj ${DATADIR}
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff -ruN --exclude=CVS /usr/ports/lang/clojure.orig/files/clojure-bin.in /usr/ports/lang/clojure/files/clojure-bin.in
--- /usr/ports/lang/clojure.orig/files/clojure-bin.in	2009-01-04 09:34:01.000000000 +0100
+++ /usr/ports/lang/clojure/files/clojure-bin.in	2009-01-20 00:01:20.377261096 +0100
@@ -4,7 +4,7 @@
 
 if [ -z "$1" ]
 then
-    JAVA_VERSION="1.5+" "%%LOCALBASE%%/bin/java" -cp "%%JAVAJARDIR%%/clojure.jar:$CLASSPATH" clojure.lang.Repl
+    JAVA_VERSION="1.5+" "%%LOCALBASE%%/bin/java" -cp "%%JAVAJARDIR%%/jline.jar:%%JAVAJARDIR%%/clojure.jar:$CLASSPATH" %%CLOJURE_JLINE_RUNNER%% clojure.lang.Repl
 else
     SCRIPT="$1"
     shift 1
--- clojure-20081217_2.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list