# $FreeBSD: head/devel/leiningen/Makefile 550400 2020-09-28 05:05:24Z tobik $ PORTNAME= leiningen 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}${EXTRACT_SUFX} PATCH_SITES= https://github.com/technomancy/leiningen/commit/ PATCHFILES= 7677dabea40a2d17a42a718ca8c7e450b09e153c.patch:-p1 MAINTAINER= ports@FreeBSD.org COMMENT= Automate Clojure projects LICENSE= EPL LICENSE_FILE= ${WRKSRC}/COPYING USE_GITHUB= yes GH_ACCOUNT= technomancy USE_JAVA= yes NO_ARCH= yes NO_BUILD= yes PLIST_FILES= bin/lein \ etc/bash_completion.d/_lein.bash \ 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 '1s|^.*|#!/bin/sh|' \ -e 's|/etc/leinrc|${PREFIX}/etc/leinrc|' \ -e 's|\.leinrc|./&|' -e 's|source "|. "|' \ -e 's|^if \[\[ (.*) \]\];|if [ \1 ];|' \ -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 @${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d ${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}${PREFIX}/share/man/man1 @${MKDIR} ${STAGEDIR}${DATADIR} ${INSTALL_DATA} ${DISTDIR}/leiningen-${PORTVERSION}-standalone.zip \ ${STAGEDIR}${DATADIR} .include