summaryrefslogtreecommitdiffstats
path: root/devel/leiningen/Makefile
diff options
context:
space:
mode:
authorGravatar Jon Bernard <jbernard@jbernard.io> 2017-03-02 22:39:21 -0500
committerGravatar Jon Bernard <jbernard@jbernard.io> 2017-03-02 22:39:21 -0500
commit97c9d2b8f7a76b11d972abd280c605ab2f266884 (patch)
treeb757c3e7e12044bf370a64df0f3a1e5ef29a985d /devel/leiningen/Makefile
downloadmystuff-97c9d2b8f7a76b11d972abd280c605ab2f266884.tar.gz
mystuff-97c9d2b8f7a76b11d972abd280c605ab2f266884.tar.bz2
mystuff-97c9d2b8f7a76b11d972abd280c605ab2f266884.zip
Initial commit
Diffstat (limited to 'devel/leiningen/Makefile')
-rw-r--r--devel/leiningen/Makefile49
1 files changed, 49 insertions, 0 deletions
diff --git a/devel/leiningen/Makefile b/devel/leiningen/Makefile
new file mode 100644
index 0000000..3827f9d
--- /dev/null
+++ b/devel/leiningen/Makefile
@@ -0,0 +1,49 @@
+# $OpenBSD$
+
+COMMENT = Automate Clojure projects without setting your hair on fire
+
+GH_ACCOUNT = technomancy
+GH_PROJECT = leiningen
+GH_TAGNAME = 2.7.1
+
+CATEGORIES = devel
+
+HOMEPAGE = https://leiningen.org/
+
+MAINTAINER = Jon Bernard <jbernard@jbernard.io>
+
+# Eclipse Public License Version 1.0 (http://www.eclipse.org/legal/epl-v10.html)
+PERMIT_PACKAGE_CDROM = commercial distribution defend and indemnify clauses
+PERMIT_PACKAGE_FTP = Yes
+PERMIT_DISTFILES_FTP = Yes
+
+MASTER_SITES0 = https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/archive/
+MASTER_SITES1 = https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/releases/download/${GH_TAGNAME}/
+
+DISTFILES = ${PKGNAME}.tar.gz{${GH_TAGNAME}.tar.gz}:0 \
+ ${PKGNAME}-standalone.zip:1
+EXTRACT_ONLY = ${PKGNAME}.tar.gz
+
+MODULES = java
+RUN_DEPENDS = shells/bash \
+ ${MODJAVA_RUN_DEPENDS}
+MODJAVA_VER = 1.6+
+
+NO_BUILD = Yes
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/lein-pkg \
+ ${PREFIX}/bin/lein
+ ${INSTALL_MAN} ${WRKSRC}/doc/lein.1 \
+ ${PREFIX}/man/man1
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/java
+ ${INSTALL_DATA} ${DISTDIR}/${PKGNAME}-standalone.zip \
+ ${PREFIX}/share/java/${PKGNAME}-standalone.jar
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/bash-completion/completions/
+ ${INSTALL_DATA} ${WRKSRC}/bash_completion.bash \
+ ${PREFIX}/share/bash-completion/completions/lein
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/zsh/site-functions/
+ ${INSTALL_DATA} ${WRKSRC}/zsh_completion.zsh \
+ ${PREFIX}/share/zsh/site-functions/_lein
+
+.include <bsd.port.mk>