Index: devel/leiningen/Makefile =================================================================== --- devel/leiningen/Makefile +++ devel/leiningen/Makefile @@ -2,6 +2,7 @@ PORTNAME= leiningen PORTVERSION= 2.7.1 +PORTREVISION= 1 CATEGORIES= devel lisp java MASTER_SITES= GH:source1 \ https://github.com/technomancy/leiningen/releases/download/${PORTVERSION}/:source2 @@ -13,6 +14,7 @@ COMMENT= Automate Clojure projects LICENSE= EPL +LICENSE_FILE= ${WRKSRC}/COPYING USE_GITHUB= yes GH_ACCOUNT= technomancy @@ -30,9 +32,14 @@ %%JAVAJARDIR%%/leiningen.jar SHEBANG_FILES= bin/lein-pkg +bash_CMD= /bin/sh post-patch: - @${REINPLACE_CMD} -e "s|LEIN_JAR=.*|LEIN_JAR=${JAVAJARDIR}/leiningen.jar|" \ + @${REINPLACE_CMD} -E -e 's|function (.*) {|\1() {|' \ + -e 's|(local )-i |\1|' \ + -e 's|^if \[\[ (.*) \]\];|if [ \1 ];|' \ + -e 's|(BOOTCLASSPATH)\[@\]|\1|' \ + -e 's|^LEIN_JAR=.*|LEIN_JAR=${JAVAJARDIR}/leiningen.jar|' \ ${WRKSRC}/bin/lein-pkg do-install: Index: devel/leiningen/pkg-message =================================================================== --- devel/leiningen/pkg-message +++ /dev/null @@ -1,6 +0,0 @@ - -If you want to use the ``lein exec'' command to run Clojure scripts, -please add the following to ~/.lein/profiles.clj: - -{ :user - { :plugins [[lein-exec "0.3.4"]]}