git: 9a7cf8d3cc18 - main - editors/amp: Remove devel/git build dependency
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 28 Sep 2024 21:35:01 UTC
The branch main has been updated by eduardo:
URL: https://cgit.FreeBSD.org/ports/commit/?id=9a7cf8d3cc185cc0981c1bbe1dcc2aef6db6f056
commit 9a7cf8d3cc185cc0981c1bbe1dcc2aef6db6f056
Author: Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2024-09-28 21:30:55 +0000
Commit: Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2024-09-28 21:34:50 +0000
editors/amp: Remove devel/git build dependency
Remove devel/git build dependency by setting git hash variable manually,
otherwise build fails without git presence.
---
editors/amp/Makefile | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/editors/amp/Makefile b/editors/amp/Makefile
index ca346b681b9f..6f4ccd80b6f4 100644
--- a/editors/amp/Makefile
+++ b/editors/amp/Makefile
@@ -1,5 +1,6 @@
PORTNAME= amp
DISTVERSION= 0.7.1
+PORTREVISION= 1
CATEGORIES= editors
MAINTAINER= eduardo@FreeBSD.org
@@ -9,7 +10,6 @@ WWW= https://amp.rs/
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= git>0:devel/git
LIB_DEPENDS= libgit2.so:devel/libgit2 \
libonig.so:devel/oniguruma
@@ -17,6 +17,9 @@ USES= cargo
USE_GITHUB= yes
GH_ACCOUNT= jmacdonald
+_GIT_HEAD= dae913c
+CARGO_ENV= BUILD_REVISION=${_GIT_HEAD}
+
PLIST_FILES= bin/${PORTNAME}
.include <bsd.port.mk>