Date: Sun, 19 Sep 2021 09:16:05 GMT From: Tobias Kortkamp <tobik@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 4609aa022f0a - main - lang/jpm: Add new port Message-ID: <202109190916.18J9G5f6009614@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by tobik: URL: https://cgit.FreeBSD.org/ports/commit/?id=4609aa022f0ad712f7a323d024fc0a82ce08d3fd commit 4609aa022f0ad712f7a323d024fc0a82ce08d3fd Author: Tobias Kortkamp <tobik@FreeBSD.org> AuthorDate: 2021-09-19 08:51:08 +0000 Commit: Tobias Kortkamp <tobik@FreeBSD.org> CommitDate: 2021-09-19 09:03:24 +0000 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 --- lang/Makefile | 1 + lang/jpm/Makefile | 39 +++++++++++++++++++++++++++++++++++++++ lang/jpm/distinfo | 3 +++ lang/jpm/pkg-descr | 4 ++++ lang/jpm/pkg-plist | 15 +++++++++++++++ 5 files changed, 62 insertions(+) diff --git a/lang/Makefile b/lang/Makefile index fdf97c9ed338..a52e2b79ea38 100644 --- a/lang/Makefile +++ b/lang/Makefile @@ -141,6 +141,7 @@ SUBDIR += itcl4 SUBDIR += janet SUBDIR += jimtcl + SUBDIR += jpm SUBDIR += jruby SUBDIR += jython SUBDIR += kawa diff --git a/lang/jpm/Makefile b/lang/jpm/Makefile new file mode 100644 index 000000000000..aef39d5f8ff4 --- /dev/null +++ b/lang/jpm/Makefile @@ -0,0 +1,39 @@ +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> diff --git a/lang/jpm/distinfo b/lang/jpm/distinfo new file mode 100644 index 000000000000..33a0d9a4ad8b --- /dev/null +++ b/lang/jpm/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1632038982 +SHA256 (janet-lang-jpm-0.0.1_GH0.tar.gz) = 1241e8ba046926cbc1b9e9b0ff6a50af68eb7075956097b10d22ca4beb1d54ee +SIZE (janet-lang-jpm-0.0.1_GH0.tar.gz) = 32930 diff --git a/lang/jpm/pkg-descr b/lang/jpm/pkg-descr new file mode 100644 index 000000000000..7c440f3e11ce --- /dev/null +++ b/lang/jpm/pkg-descr @@ -0,0 +1,4 @@ +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 diff --git a/lang/jpm/pkg-plist b/lang/jpm/pkg-plist new file mode 100644 index 000000000000..5041e5fa9769 --- /dev/null +++ b/lang/jpm/pkg-plist @@ -0,0 +1,15 @@ +bin/jpm +lib/janet/.manifests/jpm.jdn +lib/janet/jpm/cc.janet +lib/janet/jpm/cgen.janet +lib/janet/jpm/cli.janet +lib/janet/jpm/commands.janet +lib/janet/jpm/config.janet +lib/janet/jpm/dagbuild.janet +lib/janet/jpm/declare.janet +lib/janet/jpm/default-config.janet +lib/janet/jpm/init.janet +lib/janet/jpm/pm.janet +lib/janet/jpm/rules.janet +lib/janet/jpm/shutil.janet +share/man/man1/jpm.1.gz
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202109190916.18J9G5f6009614>