import leiningen 1.6.1.1
Leiningen, is a build automation tool for the Clojure programming language. ok aja@
This commit is contained in:
parent
fd87e33b19
commit
19b36ff80e
46
devel/leiningen/Makefile
Normal file
46
devel/leiningen/Makefile
Normal file
@ -0,0 +1,46 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2011/09/21 13:40:16 jasper Exp $
|
||||
|
||||
COMMENT= tool for building of code, written in Clojure
|
||||
|
||||
# Full tarball with the script and the leiningen jar taken from github
|
||||
V= 1.6.1.1
|
||||
DISTNAME= leiningen-$V
|
||||
|
||||
CATEGORIES= devel java
|
||||
|
||||
HOMEPAGE= https://github.com/technomancy/leiningen
|
||||
|
||||
# EPLv1.0
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MASTER_SITES= http://distfiles.nl/
|
||||
|
||||
NO_BUILD= Yes
|
||||
NO_REGRESS= Yes
|
||||
PKG_ARCH= *
|
||||
|
||||
MODULES= java
|
||||
MODJAVA_VER= 1.6+
|
||||
|
||||
RUN_DEPENDS= devel/apache-ant \
|
||||
lang/clojure \
|
||||
java/asm \
|
||||
java/javaPathHelper \
|
||||
shells/bash
|
||||
|
||||
SUBST_VARS+= MODJAVA_SHARE_DIR \
|
||||
MODJAVA_JAR_DIR
|
||||
|
||||
do-configure:
|
||||
${SUBST_CMD} ${WRKSRC}/lein
|
||||
|
||||
do-install:
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/lein ${PREFIX}/bin/
|
||||
${INSTALL_DATA_DIR} ${MODJAVA_JAR_DIR}/lein/
|
||||
${INSTALL_DATA} ${WRKSRC}/leiningen-$V-standalone.jar \
|
||||
${MODJAVA_JAR_DIR}/lein/leiningen-standalone.jar
|
||||
|
||||
.include <bsd.port.mk>
|
5
devel/leiningen/distinfo
Normal file
5
devel/leiningen/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (leiningen-1.6.1.1.tar.gz) = gDlwoD2JrMarDMeGw8h1tA==
|
||||
RMD160 (leiningen-1.6.1.1.tar.gz) = vPZguhTXVZ6taABBfbpCP4oJPVI=
|
||||
SHA1 (leiningen-1.6.1.1.tar.gz) = aHuERqK2PKxymtH//MKhrc93W1Y=
|
||||
SHA256 (leiningen-1.6.1.1.tar.gz) = /B0p78W7l9EZ1eV75ibL1RrRY1MMnYiAYqHDwnA0lX8=
|
||||
SIZE (leiningen-1.6.1.1.tar.gz) = 8512626
|
50
devel/leiningen/patches/patch-lein
Normal file
50
devel/leiningen/patches/patch-lein
Normal file
@ -0,0 +1,50 @@
|
||||
$OpenBSD: patch-lein,v 1.1.1.1 2011/09/21 13:40:16 jasper Exp $
|
||||
|
||||
- Adjust paths to java, clojure and jar files
|
||||
|
||||
--- lein.orig Tue Sep 20 13:27:07 2011
|
||||
+++ lein Tue Sep 20 14:35:22 2011
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/bin/bash
|
||||
+#!${LOCALBASE}/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
|
||||
@@ -27,7 +27,7 @@ done
|
||||
|
||||
# Support $JAVA_OPTS for backwards-compatibility.
|
||||
JVM_OPTS=${JVM_OPTS:-"$JAVA_OPTS"}
|
||||
-JAVA_CMD=${JAVA_CMD:-"java"}
|
||||
+JAVA_CMD=$(javaPathHelper -c clojure)
|
||||
LEIN_HOME=${LEIN_HOME:-"$HOME/.lein"}
|
||||
|
||||
DEV_PLUGINS="$(ls -1 lib/dev/*jar 2> /dev/null)"
|
||||
@@ -62,8 +62,8 @@ unique_user_plugins () {
|
||||
LEIN_PLUGIN_PATH="$(echo "$DEV_PLUGINS" | tr \\n :)"
|
||||
LEIN_USER_PLUGIN_PATH="$(echo "$(unique_user_plugins)" | tr \\n :)"
|
||||
CLASSPATH="$CLASSPATH:$LEIN_PLUGIN_PATH:$LEIN_USER_PLUGIN_PATH:test/:src/"
|
||||
-LEIN_JAR="$HOME/.lein/self-installs/leiningen-$LEIN_VERSION-standalone.jar"
|
||||
-CLOJURE_JAR="/usr/share/java/clojure-1.2.jar:/usr/share/java/asm3.jar"
|
||||
+LEIN_JAR="${MODJAVA_SHARE_DIR}/lein/leiningen-standalone.jar"
|
||||
+CLOJURE_JAR="${LOCALBASE}/clojure/clojure.jar:${MODJAVA_JAR_DIR}/asm.jar"
|
||||
NULL_DEVICE=/dev/null
|
||||
|
||||
# apply context specific CLASSPATH entries
|
||||
@@ -78,7 +78,7 @@ else
|
||||
SCRIPT="$0"
|
||||
fi
|
||||
|
||||
-SHARE_JARS="ant ant-launcher classworlds clojure-1.2 \
|
||||
+SHARE_JARS="ant ant-launcher classworlds \
|
||||
lucene-memory maven-ant-tasks maven-artifact maven-artifact-manager \
|
||||
maven-error-diagnostics maven-model maven-settings maven-project maven-profile \
|
||||
maven-repository-metadataplexus-container-default-alpha plexus-interpolation \
|
||||
@@ -86,7 +86,7 @@ plexus-utils wagon-file wagon-http-lightweight wagon-h
|
||||
xml-apis lucene-core lucene-highlighter clucy robert-hooke lancet leiningen
|
||||
backport-util-concurrent" # NFI why that last one is necessary
|
||||
for JAR in $SHARE_JARS; do
|
||||
- CLASSPATH="$CLASSPATH":"/usr/share/java/$JAR.jar"
|
||||
+ CLASSPATH="$CLOJURE_JAR:$CLASSPATH":"${MODJAVA_JAR_DIR}/$JAR.jar"
|
||||
done
|
||||
|
||||
if [ $DEBUG ]; then
|
2
devel/leiningen/pkg/DESCR
Normal file
2
devel/leiningen/pkg/DESCR
Normal file
@ -0,0 +1,2 @@
|
||||
Leiningen, is a build automation tool for the Clojure programming
|
||||
language.
|
2
devel/leiningen/pkg/PLIST
Normal file
2
devel/leiningen/pkg/PLIST
Normal file
@ -0,0 +1,2 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2011/09/21 13:40:16 jasper Exp $
|
||||
bin/lein
|
Loading…
Reference in New Issue
Block a user