blob: 9a2f60fcae708ba11194414779398b0a1f2c295b (
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
|
PORTNAME= jpm
DISTVERSION= 0.0.2
CATEGORIES= lang
MAINTAINER= ports@FreeBSD.org
COMMENT= Janet Project Manager tool
WWW= https://github.com/janet-lang/jpm
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= janet>=1.17.2:lang/janet
USE_GITHUB= yes
GH_ACCOUNT= janet-lang
NO_BUILD= yes
# JANET_* might interfere with the install
MAKE_ENV= -uJANET_MODPATH \
-uJANET_PATH \
DESTDIR=${STAGEDIR}
.include <bsd.port.pre.mk>
.if ${PREFIX} != /usr/local
post-patch:
@${REINPLACE_CMD} s,"/usr/local","${PREFIX}", \
${WRKSRC}/configs/bsd_config.janet
.endif
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/janet
@cd ${WRKSRC}; \
${SETENV} ${MAKE_ENV} janet bootstrap.janet configs/bsd_config.janet || ${TRUE}
.if ${PREFIX} != /usr/local
# XXX: Something always creates /usr/local/lib/janet ?
@${RMDIR} ${STAGEDIR}/usr/local/lib/janet
.endif
.include <bsd.port.post.mk>
|