2012-04-18 16:18:43 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.14 2012/04/18 20:18:43 jasper Exp $
|
2010-12-08 16:21:14 -05:00
|
|
|
|
|
|
|
COMMENT = Lisp-1 dialect for the Java Virtual Machine
|
|
|
|
|
2012-04-18 16:18:43 -04:00
|
|
|
V = 1.4.0
|
2010-12-08 16:21:14 -05:00
|
|
|
DISTNAME = clojure-${V}
|
|
|
|
EXTRACT_SUFX = .zip
|
|
|
|
PKG_ARCH = *
|
|
|
|
|
2011-08-30 13:16:35 -04:00
|
|
|
CATEGORIES = lang
|
2010-12-08 16:21:14 -05:00
|
|
|
|
|
|
|
HOMEPAGE = http://www.clojure.org/
|
|
|
|
|
2011-08-30 15:52:22 -04:00
|
|
|
MAINTAINER= Jasper Lievisse Adriaanse <jasper@openbsd.org>
|
2010-12-08 16:21:14 -05:00
|
|
|
|
|
|
|
# Eclipse Public License EPL 1.0
|
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
|
|
PERMIT_DISTFILES_CDROM = Yes
|
|
|
|
PERMIT_DISTFILES_FTP = Yes
|
|
|
|
|
2011-09-25 17:12:51 -04:00
|
|
|
MASTER_SITES = http://repo1.maven.org/maven2/org/clojure/clojure/$V/
|
2010-12-08 16:21:14 -05:00
|
|
|
|
|
|
|
MODULES = java
|
2010-12-12 12:28:16 -05:00
|
|
|
MODJAVA_VER = 1.6+
|
2011-09-25 17:12:51 -04:00
|
|
|
MODJAVA_BUILD = ant
|
|
|
|
MODJAVA_BUILD_TARGET = jar
|
2010-12-08 16:21:14 -05:00
|
|
|
MODJAVA_JRERUN = Yes
|
|
|
|
|
2011-08-24 03:50:40 -04:00
|
|
|
RUN_DEPENDS = java/javaPathHelper \
|
|
|
|
misc/rlwrap
|
2010-12-08 16:21:14 -05:00
|
|
|
|
2011-09-25 17:12:51 -04:00
|
|
|
# Tests fail to compile (and need JAX-WS)
|
2010-12-08 16:21:14 -05:00
|
|
|
NO_REGRESS = Yes
|
|
|
|
|
|
|
|
CLOJURE_HOME = ${PREFIX}/clojure
|
|
|
|
|
2011-11-30 14:40:28 -05:00
|
|
|
# Completions file created with:
|
|
|
|
# (def completions (mapcat (comp keys ns-publics) (all-ns)))
|
|
|
|
# (with-open [f (java.io.BufferedWriter. (java.io.FileWriter. "clj_completions"))]
|
|
|
|
# (.write f (apply str (interpose \newline completions))))
|
|
|
|
|
2010-12-08 16:21:14 -05:00
|
|
|
do-install:
|
2010-12-13 11:04:28 -05:00
|
|
|
${INSTALL_DATA_DIR} ${CLOJURE_HOME}
|
2011-09-25 17:12:51 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/clojure.jar ${CLOJURE_HOME}
|
2010-12-13 11:04:28 -05:00
|
|
|
@${SUBST_CMD} -o ${BINOWN} -g ${BINGRP} -c \
|
|
|
|
${FILESDIR}/clojure \
|
|
|
|
${PREFIX}/bin/clojure
|
2011-06-23 03:40:25 -04:00
|
|
|
cd ${WRKDIST} && tar -cf - src | tar -C ${CLOJURE_HOME} -xf -
|
2011-10-21 12:23:44 -04:00
|
|
|
chown -R ${SHAREOWN}:${SHAREGRP} ${CLOJURE_HOME}/src
|
2011-11-30 14:40:28 -05:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/clj_completions ${CLOJURE_HOME}
|
2010-12-08 16:21:14 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|