pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/math/four-bar-rs
Module Name: pkgsrc
Committed By: wiz
Date: Sat Aug 17 22:07:06 UTC 2024
Modified Files:
pkgsrc/math/four-bar-rs: Makefile
Log Message:
four-bar-rs: try fixing build problem
Hack away need for running git in something that is not a git repository.
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 pkgsrc/math/four-bar-rs/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/math/four-bar-rs/Makefile
diff -u pkgsrc/math/four-bar-rs/Makefile:1.14 pkgsrc/math/four-bar-rs/Makefile:1.15
--- pkgsrc/math/four-bar-rs/Makefile:1.14 Sat Jun 1 14:17:49 2024
+++ pkgsrc/math/four-bar-rs/Makefile Sat Aug 17 22:07:06 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2024/06/01 14:17:49 pin Exp $
+# $NetBSD: Makefile,v 1.15 2024/08/17 22:07:06 wiz Exp $
DISTNAME= four-bar-rs-7.0.0
CATEGORIES= math
@@ -20,6 +20,17 @@ RUSTFLAGS+= -C link-arg=${COMPILER_RPATH
RUSTFLAGS+= -C link-arg=-L${BUILDLINK_PREFIX.libX11}/lib
RUSTFLAGS+= -C link-arg=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.gtk3}/lib
+# build.rs tries to run git to get the hash, but the distfile doesn't have
+# a repository included, so this will fail
+SUBST_CLASSES+= git
+SUBST_SED.git+= -e 's,env!("GIT_HASH"),"unknown",'
+SUBST_FILES.git+= four-bar-ui/src/app.rs
+SUBST_MESSAGE.git= Fixing build problem.
+SUBST_STAGE.git= post-extract
+
+pre-build:
+ ${RM} -f ${WRKSRC}/four-bar-ui/build.rs
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/target/release/four-bar \
${DESTDIR}${PREFIX}/bin
Home |
Main Index |
Thread Index |
Old Index