1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00
freebsd-ports/lang/jpm/Makefile
Tobias Kortkamp 4609aa022f
lang/jpm: Add new port
JPM is the Janet Project Manager tool.  It is for automating builds
and downloading dependencies of Janet projects.

WWW: https://github.com/janet-lang/jpm
2021-09-19 11:03:24 +02:00

40 lines
848 B
Makefile

PORTNAME= jpm
DISTVERSION= 0.0.1
CATEGORIES= lang
MAINTAINER= tobik@FreeBSD.org
COMMENT= Janet Project Manager tool
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>