e840646b65
Take maintainership. Differential Revision: https://reviews.freebsd.org/D37985
42 lines
907 B
Makefile
42 lines
907 B
Makefile
PORTNAME= jpm
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 1.1.0
|
|
CATEGORIES= lang
|
|
|
|
MAINTAINER= hsw@bitmark.com
|
|
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>
|