blob: fc951d8a005a7a5cfbcb7f7b8e13e4a6c69e866b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
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 <bsd.port.mk>
|