freebsd-ports/devel/leiningen/Makefile
Rui Paulo b7c8fa8138 Add a port for Leiningen: Clojure project automation.
Reviewed by:	bdrewery
Approved by:	bdrewery
2014-05-02 23:45:10 +00:00

40 lines
1,004 B
Makefile

# $FreeBSD$
PORTNAME= leiningen
PORTVERSION= 2.3.4
CATEGORIES= devel lisp java
MASTER_SITES= GITHUB:source1 \
https://leiningen.s3.amazonaws.com/downloads/:source2
DISTFILES= leiningen-${PORTVERSION}.tar.gz:source1 \
leiningen-${PORTVERSION}-standalone.jar:source2
EXTRACT_ONLY= leiningen-${PORTVERSION}.tar.gz
MAINTAINER= rpaulo@FreeBSD.org
COMMENT= Automate Clojure projects
LICENSE= EPL
USE_GITHUB= yes
GH_ACCOUNT= technomancy
GH_TAGNAME= ${PORTVERSION}
GH_COMMIT= e0edbb0
USE_JAVA= yes
JAVA_VERSION= 1.6+
NO_BUILD= yes
RUN_DEPENDS+= bash:${PORTSDIR}/shells/bash
PLIST_FILES= bin/lein \
%%JAVAJARDIR%%/leiningen.jar
post-patch:
${REINPLACE_CMD} -e "s|/bin/bash|${PREFIX}/bin/bash|" \
-e "s|LEIN_JAR=.*|LEIN_JAR=${JAVAJARDIR}/leiningen.jar|" \
${WRKSRC}/bin/lein-pkg
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/bin/lein-pkg ${STAGEDIR}${PREFIX}/bin/lein
${INSTALL_DATA} ${DISTDIR}/leiningen-${PORTVERSION}-standalone.jar ${STAGEDIR}${JAVAJARDIR}/leiningen.jar
.include <bsd.port.mk>