git: 35ad7d572d70 - main - lang/gleam: teach portscout to ignore nightly versions
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 21 Nov 2022 07:07:41 UTC
The branch main has been updated by dch:
URL: https://cgit.FreeBSD.org/ports/commit/?id=35ad7d572d707762bc880b07d81ef1b391d18b0a
commit 35ad7d572d707762bc880b07d81ef1b391d18b0a
Author: Dave Cottlehuber <dch@FreeBSD.org>
AuthorDate: 2022-11-21 07:05:42 +0000
Commit: Dave Cottlehuber <dch@FreeBSD.org>
CommitDate: 2022-11-21 07:06:58 +0000
lang/gleam: teach portscout to ignore nightly versions
- pet port with portfmt, portclippy while here
---
lang/gleam/Makefile | 19 ++++++++++++++-----
1 file changed, 14 insertions(+), 5 deletions(-)
diff --git a/lang/gleam/Makefile b/lang/gleam/Makefile
index 3d89242b625a..32f32366cc2a 100644
--- a/lang/gleam/Makefile
+++ b/lang/gleam/Makefile
@@ -19,6 +19,8 @@ GH_ACCOUNT= gleam-lang
RUSTFLAGS+= --cap-lints=warn
+PORTSCOUT= limit:[0-9.]+
+
PLIST_FILES= bin/gleam
PORTDOCS= README.md
@@ -26,20 +28,27 @@ PORTDOCS= README.md
OPTIONS_DEFINE= DOCS
do-build:
- (cd ${WRKSRC} && cargo build --release)
- (cd ${WRKSRC}/compiler-cli && env HOME=${WRKDIR} cargo install --path . --force --locked)
+ (cd ${WRKSRC} && \
+ cargo build --release)
+ (cd ${WRKSRC}/compiler-cli && \
+ env HOME=${WRKDIR} cargo install --path . --force --locked)
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/bin/
- ${MV} ${WRKSRC}/target/release/gleam ${STAGEDIR}${PREFIX}/bin/
+ ${MV} ${WRKSRC}/target/release/gleam \
+ ${STAGEDIR}${PREFIX}/bin/
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/gleam
post-install-DOCS-on:
- (cd ${WRKSRC} && ${COPYTREE_SHARE} README.md ${STAGEDIR}${DOCSDIR})
+ (cd ${WRKSRC} && \
+ ${COPYTREE_SHARE} README.md ${STAGEDIR}${DOCSDIR})
do-test:
- (cd ${WRKSRC} && gleam new hello && cd hello && gleam test)
+ (cd ${WRKSRC} && \
+ gleam new hello && \
+ cd hello && \
+ gleam test)
.include <bsd.port.mk>