pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
git-cinnabar-devel: Disable version-check, support bmake test.
Module Name: pkgsrc-wip
Committed By: Taylor R Campbell <riastradh%NetBSD.org@localhost>
Pushed By: riastradh
Date: Wed Dec 4 22:41:46 2024 +0000
Changeset: ec5316d7fc92f0c8f8f883695e9d1f39359ae300
Modified Files:
git-cinnabar-devel/Makefile
Log Message:
git-cinnabar-devel: Disable version-check, support bmake test.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=ec5316d7fc92f0c8f8f883695e9d1f39359ae300
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
git-cinnabar-devel/Makefile | 13 +++++++++++++
1 file changed, 13 insertions(+)
diffs:
diff --git a/git-cinnabar-devel/Makefile b/git-cinnabar-devel/Makefile
index 3b96a1fd3c..a7427727b9 100644
--- a/git-cinnabar-devel/Makefile
+++ b/git-cinnabar-devel/Makefile
@@ -26,6 +26,13 @@ USE_TOOLS+= gmake pkg-config
RUST_REQ= 1.66.0
RUSTFLAGS+= -C link-arg=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.curl}/lib
+CARGO_NO_DEFAULT_FEATURES= yes
+CARGO_FEATURES+= full-version
+# version-check is on by default -- disable it for pkgsrc since pkgsrc
+# manages version checks and updates, not the software itself, so no
+# need for git-cinnabar to phone home every time you run it.
+#CARGO_FEATURES+= version-check
+
# This has to come before -I/usr/include/krb5 (which comes in on NetBSD
# via curl with gssapi enabled) because both git-core and krb5 have a
# file called `hex.h' which git-core uses internally.
@@ -40,6 +47,12 @@ do-install:
cd ${DESTDIR}${PREFIX}/libexec/git-core && ${LN} git-cinnabar git-remote-hg
${INSTALL_DATA} ${WRKSRC}/README.md ${DESTDIR}${PREFIX}/share/doc/git-cinnabar
+CARGO_TEST_ARGS= test ${DEFAULT_CARGO_ARGS}
+
+do-test:
+ ${RUN} cd ${CARGO_WRKSRC} && \
+ ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/cargo ${CARGO_TEST_ARGS}
+
.include "cargo-depends.mk"
.include "../../lang/rust/cargo.mk"
Home |
Main Index |
Thread Index |
Old Index