devel/leiningen: Update to 2.9.4

- Clean up a little while here

Changes:	https://github.com/technomancy/leiningen/releases/tag/2.9.4
This commit is contained in:
Tobias Kortkamp 2020-07-10 16:32:48 +00:00
parent 9b7c31899c
commit 9ade0ddc55
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=541868
2 changed files with 29 additions and 23 deletions

View File

@ -1,11 +1,14 @@
# $FreeBSD$
PORTNAME= leiningen
PORTVERSION= 2.9.3
PORTVERSION= 2.9.4
CATEGORIES= devel lisp java
MASTER_SITES= https://github.com/technomancy/leiningen/releases/download/${PORTVERSION}/:standalone
DISTFILES= leiningen-${PORTVERSION}-standalone.zip:standalone
EXTRACT_ONLY= ${DISTNAME}.tar.gz
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
PATCH_SITES= https://github.com/technomancy/leiningen/commit/
PATCHFILES= 7677dabea40a2d17a42a718ca8c7e450b09e153c.patch:-p1
MAINTAINER= tobik@FreeBSD.org
COMMENT= Automate Clojure projects
@ -15,37 +18,38 @@ LICENSE_FILE= ${WRKSRC}/COPYING
USE_GITHUB= yes
GH_ACCOUNT= technomancy
USES= shebangfix
USE_JAVA= yes
NO_ARCH= yes
NO_BUILD= yes
PLIST_FILES= bin/lein \
etc/bash_completion.d/_lein.bash \
man/man1/lein.1.gz \
share/zsh/site-functions/_lein \
${JAVAJARDIR}/leiningen.jar
SHEBANG_FILES= bin/lein-pkg
bash_CMD= /bin/sh
share/man/man1/lein.1.gz \
share/zsh/site-functions/_lein
PORTDATA= leiningen-${PORTVERSION}-standalone.zip
post-patch:
@${REINPLACE_CMD} -E -e 's|function (.*) \{|\1() {|' \
-e 's|(local )-i |\1|' \
-e '1s|^.*|#!/bin/sh|' \
-e 's|/etc/leinrc|${PREFIX}/etc/leinrc|' \
-e 's|\.leinrc|./&|' -e 's|source "|. "|' \
-e 's|^if \[\[ (.*) \]\];|if [ \1 ];|' \
-e 's|(BOOTCLASSPATH)\[@\]|\1|' \
-e 's|^LEIN_JAR=.*|LEIN_JAR=${JAVAJARDIR}/leiningen.jar|' \
-e 's|^LEIN_JAR=.*|LEIN_JAR=${DATADIR}/leiningen-${PORTVERSION}-standalone.zip|' \
${WRKSRC}/bin/lein-pkg
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/bin/lein-pkg ${STAGEDIR}${PREFIX}/bin/lein
${INSTALL_SCRIPT} ${WRKSRC}/bin/lein-pkg \
${STAGEDIR}${PREFIX}/bin/lein
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d
${INSTALL_DATA} ${WRKSRC}/bash_completion.bash ${STAGEDIR}${PREFIX}/etc/bash_completion.d/_lein.bash
${INSTALL_DATA} ${WRKSRC}/bash_completion.bash \
${STAGEDIR}${PREFIX}/etc/bash_completion.d/_lein.bash
@${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions
${INSTALL_DATA} ${WRKSRC}/zsh_completion.zsh ${STAGEDIR}${PREFIX}/share/zsh/site-functions/_lein
${INSTALL_MAN} ${WRKSRC}/doc/lein.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/
${INSTALL_DATA} ${DISTDIR}/leiningen-${PORTVERSION}-standalone.zip ${STAGEDIR}${JAVAJARDIR}/leiningen.jar
${INSTALL_DATA} ${WRKSRC}/zsh_completion.zsh \
${STAGEDIR}${PREFIX}/share/zsh/site-functions/_lein
${INSTALL_MAN} ${WRKSRC}/doc/lein.1 \
${STAGEDIR}${PREFIX}/share/man/man1
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${DISTDIR}/leiningen-${PORTVERSION}-standalone.zip \
${STAGEDIR}${DATADIR}
.include <bsd.port.mk>

View File

@ -1,5 +1,7 @@
TIMESTAMP = 1584390440
SHA256 (leiningen-2.9.3-standalone.zip) = 23e1df18bc97226d570f47335a8d543e1b759ea303544ea57d5309be3dedcbbb
SIZE (leiningen-2.9.3-standalone.zip) = 14670316
SHA256 (technomancy-leiningen-2.9.3_GH0.tar.gz) = 98cc1e58ebe0d71fede73ae6c7699f1b9b944650d57a220e576bc95a3185b846
SIZE (technomancy-leiningen-2.9.3_GH0.tar.gz) = 754027
TIMESTAMP = 1594291460
SHA256 (leiningen-2.9.4-standalone.zip) = 0e3c339480347df0445317d329accbd4a578ebbd8d91e568e661feb1b388706c
SIZE (leiningen-2.9.4-standalone.zip) = 12517963
SHA256 (technomancy-leiningen-2.9.4_GH0.tar.gz) = be1b1e43c5376f2fdc8666aeb671df16c19776d5cfe64339292a3d35ce3a7faa
SIZE (technomancy-leiningen-2.9.4_GH0.tar.gz) = 752315
SHA256 (7677dabea40a2d17a42a718ca8c7e450b09e153c.patch) = f9459ed6eec5d84bf0ec2270dce35c30da4cc2dfd1d88fe2070d0706874f0fc5
SIZE (7677dabea40a2d17a42a718ca8c7e450b09e153c.patch) = 925