pkgsrc/lang/clojure/Makefile
asau 4167f77fb6 Update to Clojure 1.5.1
Changes to Clojure in Version 1.5.1

* fix for leak caused by ddc65a96fdb1163b


Changes to Clojure in Version 1.5

 1 Deprecated and Removed Features
    1.1 Clojure 1.5 reducers library requires Java 6 or later
 2 New and Improved Features
    2.1 Reducers
    2.2 Reader Literals improved
    2.3 clojure.core/set-agent-send-executor!, set-agent-send-off-executor!,
        and send-via
    2.4 New threading macros
    2.5 Column metadata captured by reader
    2.6 gen-class improvements
    2.7 Support added for marker protocols
    2.8 clojure.pprint/print-table output compatible with Emacs Org mode
    2.9 clojure.string/replace and replace-first handle special characters
        more predictably
    2.10 Set and map constructor functions allow duplicates
    2.11 More functions preserve metadata
    2.12 New edn reader, improvements to *read-eval*
 3 Performance Enhancements
 4 Improved error messages
 5 Improved documentation strings
 6 Bug Fixes
 7 Binary Compatibility Notes
2013-06-11 19:51:27 +00:00

56 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.3 2013/06/11 19:51:27 asau Exp $
DISTNAME= clojure-1.5.1
CATEGORIES= lang
MASTER_SITES= http://repo1.maven.org/maven2/org/clojure/clojure/$(PKGVERSION_NOREV)/
EXTRACT_SUFX= .zip
MAINTAINER= ryoon@NetBSD.org
HOMEPAGE= http://clojure.org/
COMMENT= Dynamic programming language that targets the Java VM
LICENSE= epl-v1.0
NO_BUILD= yes
USE_JAVA= run
USE_JAVA2= 1.5
USE_LANGUAGES= # none
USE_TOOLS+= pax
INSTALLATION_DIRS= bin \
share/doc/${PKGNAME_NOREV} \
lib/java/clojure \
share/examples/${PKGNAME_NOREV}
CLOJURE_DOCS= changes.md epl-v10.html readme.txt \
doc/clojure/pprint/CommonLispFormat.markdown \
doc/clojure/pprint/PrettyPrinting.markdown
SUBST_CLASSES+= java
SUBST_STAGE.java= pre-install
SUBST_MESSAGE.java= Set Java
SUBST_FILES.java= clj.sh
SUBST_SED.java= -e 's,@JAVA_HOME@,${PKG_JAVA_HOME},g'
SUBST_SED.java+= -e 's,@SH@,${SH},'
pre-patch:
${INSTALL_DATA} ${FILESDIR}/clj.sh ${WRKSRC}
do-install:
${INSTALL_DATA} ${WRKSRC}/${PKGNAME_NOREV}.jar \
${DESTDIR}${PREFIX}/lib/java/clojure/clojure.jar
cd ${WRKSRC}/test/clojure && pax -rw -pmp test_clojure \
${DESTDIR}${PREFIX}/share/examples/${PKGNAME_NOREV}/
${INSTALL_DATA} ${WRKSRC}/test/clojure/test_helper.clj \
${DESTDIR}${PREFIX}/share/examples/${PKGNAME_NOREV}
.for f in ${CLOJURE_DOCS}
${INSTALL_DATA} ${WRKSRC}/${f} \
${DESTDIR}${PREFIX}/share/doc/${PKGNAME_NOREV}
.endfor
${INSTALL_SCRIPT} ${WRKSRC}/clj.sh ${DESTDIR}${PREFIX}/bin/clj
.include "../../mk/java-env.mk"
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"