blob: 8346d048cd0fb4de60f36313b38eba5965e76861 (
plain) (
blame)
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
|
# $FreeBSD$
PORTNAME= leiningen
PORTVERSION= 2.5.1
CATEGORIES= devel lisp java
MASTER_SITES= GITHUB:source1 \
https://github.com/technomancy/leiningen/releases/download/${PORTVERSION}/:source2
DISTFILES= leiningen-${PORTVERSION}.tar.gz:source1 \
leiningen-${PORTVERSION}-standalone.zip:source2
EXTRACT_ONLY= leiningen-${PORTVERSION}.tar.gz
MAINTAINER= rpaulo@FreeBSD.org
COMMENT= Automate Clojure projects
LICENSE= EPL
USE_GITHUB= yes
GH_ACCOUNT= technomancy
GH_TAGNAME= ${PORTVERSION}
GH_COMMIT= 7228d5a
USE_JAVA= yes
JAVA_VERSION= 1.6+
NO_BUILD= yes
RUN_DEPENDS+= bash:${PORTSDIR}/shells/bash
PLIST_FILES= bin/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
${INSTALL_DATA} ${DISTDIR}/leiningen-${PORTVERSION}-standalone.zip ${STAGEDIR}${JAVAJARDIR}/leiningen.jar
.include <bsd.port.mk>
|