mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
1f047545ae
PR: 203535 Submitted by: tobias.kortkamp@gmail.com
47 lines
1.4 KiB
Makefile
47 lines
1.4 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= leiningen
|
|
PORTVERSION= 2.5.3
|
|
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
|
|
EXTRACT_ONLY= ${DISTNAME}.tar.gz
|
|
|
|
MAINTAINER= rpaulo@FreeBSD.org
|
|
COMMENT= Automate Clojure projects
|
|
|
|
LICENSE= EPL
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= technomancy
|
|
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.6+
|
|
NO_BUILD= yes
|
|
|
|
RUN_DEPENDS+= bash:${PORTSDIR}/shells/bash
|
|
|
|
PLIST_FILES= bin/lein \
|
|
etc/bash_completion.d/_lein.bash \
|
|
man/man1/lein.1.gz \
|
|
share/zsh/site-functions/_lein \
|
|
%%JAVAJARDIR%%/leiningen.jar
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e "s|/bin/bash|${PREFIX}/bin/bash|" \
|
|
-e "s|LEIN_JAR=.*|LEIN_JAR=${JAVAJARDIR}/leiningen.jar|" \
|
|
${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}${MAN1PREFIX}/man/man1/
|
|
${INSTALL_DATA} ${DISTDIR}/leiningen-${PORTVERSION}-standalone.zip ${STAGEDIR}${JAVAJARDIR}/leiningen.jar
|
|
|
|
.include <bsd.port.mk>
|