diff options
author | rpaulo <rpaulo@FreeBSD.org> | 2014-05-03 07:45:10 +0800 |
---|---|---|
committer | rpaulo <rpaulo@FreeBSD.org> | 2014-05-03 07:45:10 +0800 |
commit | d352b0e62328caabefe233d757172ba4bc645a36 (patch) | |
tree | bbd75a4d5226180b3b4fabc4c8f4f33a45782cdb /devel | |
parent | 74eb76848934aaf2f1d03badb6439d4a891d20bd (diff) | |
download | freebsd-ports-gnome-d352b0e62328caabefe233d757172ba4bc645a36.tar.gz freebsd-ports-gnome-d352b0e62328caabefe233d757172ba4bc645a36.tar.zst freebsd-ports-gnome-d352b0e62328caabefe233d757172ba4bc645a36.zip |
Add a port for Leiningen: Clojure project automation.
Reviewed by: bdrewery
Approved by: bdrewery
Diffstat (limited to 'devel')
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/leiningen/Makefile | 40 | ||||
-rw-r--r-- | devel/leiningen/distinfo | 4 | ||||
-rw-r--r-- | devel/leiningen/pkg-descr | 4 |
4 files changed, 49 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 967bf15090a5..69a3340d65ac 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -920,6 +920,7 @@ SUBDIR += lasi SUBDIR += lcov SUBDIR += leaktracer + SUBDIR += leiningen SUBDIR += lemon SUBDIR += lfcbase SUBDIR += lfcxml diff --git a/devel/leiningen/Makefile b/devel/leiningen/Makefile new file mode 100644 index 000000000000..9d308a46ea0f --- /dev/null +++ b/devel/leiningen/Makefile @@ -0,0 +1,40 @@ +# $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> diff --git a/devel/leiningen/distinfo b/devel/leiningen/distinfo new file mode 100644 index 000000000000..d921bd9900bd --- /dev/null +++ b/devel/leiningen/distinfo @@ -0,0 +1,4 @@ +SHA256 (leiningen-2.3.4.tar.gz) = 33c397958d3afc0f9d2533b565414226eff99a127210edd5c49f6e673c2db5da +SIZE (leiningen-2.3.4.tar.gz) = 644563 +SHA256 (leiningen-2.3.4-standalone.jar) = 73098db63cf3cf4e55d17841d2613c82cd530dc59881a4191e98fc4d6e4a0cdf +SIZE (leiningen-2.3.4-standalone.jar) = 13687218 diff --git a/devel/leiningen/pkg-descr b/devel/leiningen/pkg-descr new file mode 100644 index 000000000000..d3a5b5459ad8 --- /dev/null +++ b/devel/leiningen/pkg-descr @@ -0,0 +1,4 @@ +Leiningen is for automating Clojure projects without setting your hair on +fire. + +WWW: https://github.com/technomancy/leiningen |