1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

- Debashify with a little bit of dark magic and use /bin/sh for lein

- Remove pkg-message with outdated advice
- Add LICENSE_FILE

Approved by:	mat (mentor)
Differential Revision:	https://reviews.freebsd.org/D11405
This commit is contained in:
Tobias Kortkamp 2017-06-29 16:44:01 +00:00
parent 801f06b11e
commit 99fcafa592
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=444653
2 changed files with 11 additions and 12 deletions

View File

@ -2,17 +2,17 @@
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
DISTFILES= ${DISTNAME}.tar.gz:source1 \
leiningen-${PORTVERSION}-standalone.zip:source2
MASTER_SITES= https://github.com/technomancy/leiningen/releases/download/${PORTVERSION}/:standalone
DISTFILES= leiningen-${PORTVERSION}-standalone.zip:standalone
EXTRACT_ONLY= ${DISTNAME}.tar.gz
MAINTAINER= tobik@FreeBSD.org
COMMENT= Automate Clojure projects
LICENSE= EPL
LICENSE_FILE= ${WRKSRC}/COPYING
USE_GITHUB= yes
GH_ACCOUNT= technomancy
@ -27,12 +27,17 @@ PLIST_FILES= bin/lein \
etc/bash_completion.d/_lein.bash \
man/man1/lein.1.gz \
share/zsh/site-functions/_lein \
%%JAVAJARDIR%%/leiningen.jar
${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:

View File

@ -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"]]}