summaryrefslogtreecommitdiffstats
path: root/devel/leiningen
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
downloadmystuff-97c9d2b8f7a76b11d972abd280c605ab2f266884.tar.gz
mystuff-97c9d2b8f7a76b11d972abd280c605ab2f266884.tar.bz2
mystuff-97c9d2b8f7a76b11d972abd280c605ab2f266884.zip
Initial commit
Diffstat (limited to 'devel/leiningen')
-rw-r--r--devel/leiningen/Makefile49
-rw-r--r--devel/leiningen/distinfo4
-rw-r--r--devel/leiningen/patches/patch-bin_lein-pkg18
-rw-r--r--devel/leiningen/pkg/DESCR3
-rw-r--r--devel/leiningen/pkg/PLIST11
5 files changed, 85 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>
diff --git a/devel/leiningen/distinfo b/devel/leiningen/distinfo
new file mode 100644
index 0000000..8bdf62d
--- /dev/null
+++ b/devel/leiningen/distinfo
@@ -0,0 +1,4 @@
+SHA256 (leiningen-2.7.1-standalone.zip) = Ldx+ibu0XPHKPWZqENzg0/FUt3rSAapY9DDoTnFYfEc=
+SHA256 (leiningen-2.7.1.tar.gz) = lTyVwmVsRjIMiNxoMgIDD92VVOg5CktKqrptAZCI328=
+SIZE (leiningen-2.7.1-standalone.zip) = 15370238
+SIZE (leiningen-2.7.1.tar.gz) = 717384
diff --git a/devel/leiningen/patches/patch-bin_lein-pkg b/devel/leiningen/patches/patch-bin_lein-pkg
new file mode 100644
index 0000000..12cf336
--- /dev/null
+++ b/devel/leiningen/patches/patch-bin_lein-pkg
@@ -0,0 +1,18 @@
+$OpenBSD$
+--- bin/lein-pkg.orig Mon Feb 20 11:42:41 2017
++++ bin/lein-pkg Mon Feb 20 11:42:56 2017
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#!/usr/local/bin/bash
+
+ # This variant of the lein script is meant for downstream packagers.
+ # It has all the cross-platform stuff stripped out as well as the
+@@ -57,7 +57,7 @@ LEIN_JVM_OPTS="${LEIN_JVM_OPTS:-'-Xms64m -Xmx512m'}"
+ # If you're not using an uberjar you'll need to list each dependency
+ # and add them individually to the classpath/bootclasspath as well.
+
+-LEIN_JAR=/usr/share/java/leiningen-$LEIN_VERSION-standalone.jar
++LEIN_JAR=/usr/local/share/java/leiningen-$LEIN_VERSION-standalone.jar
+
+ # Do not use installed leiningen jar during self-compilation
+ if ! { [ "$1" = "compile" ] &&
diff --git a/devel/leiningen/pkg/DESCR b/devel/leiningen/pkg/DESCR
new file mode 100644
index 0000000..413650f
--- /dev/null
+++ b/devel/leiningen/pkg/DESCR
@@ -0,0 +1,3 @@
+Leiningen is the easiest way to use Clojure. With a focus on project
+automation and declarative configuration, it gets out of your way and lets you
+focus on your code.
diff --git a/devel/leiningen/pkg/PLIST b/devel/leiningen/pkg/PLIST
new file mode 100644
index 0000000..d282bc1
--- /dev/null
+++ b/devel/leiningen/pkg/PLIST
@@ -0,0 +1,11 @@
+@comment $OpenBSD$
+bin/lein
+@man man/man1/lein.1
+share/bash-completion/
+share/bash-completion/completions/
+share/bash-completion/completions/lein
+share/java/
+share/java/${FULLPKGNAME}-standalone.jar
+share/zsh/
+share/zsh/site-functions/
+share/zsh/site-functions/_lein