pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Make cargo-using packages respect MAKE_JOBS.



Module Name:	pkgsrc-wip
Committed By:	Maya Rashish <maya%NetBSD.org@localhost>
Pushed By:	coypu
Date:		Sun Jan 19 21:37:29 2020 +0200
Changeset:	90f4f5df3c6925ff5abee1c7a00a4d1069ac19e0

Modified Files:
	alacritty/Makefile
	amp-editor/Makefile
	cargo-audit/Makefile
	nary/Makefile
	pack/Makefile
	pijul/Makefile
	spotifyd/Makefile
	tealdeer/Makefile
	zola/Makefile

Log Message:
Make cargo-using packages respect MAKE_JOBS.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=90f4f5df3c6925ff5abee1c7a00a4d1069ac19e0

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 alacritty/Makefile   | 2 +-
 amp-editor/Makefile  | 2 +-
 cargo-audit/Makefile | 2 +-
 nary/Makefile        | 2 +-
 pack/Makefile        | 2 +-
 pijul/Makefile       | 2 +-
 spotifyd/Makefile    | 2 +-
 tealdeer/Makefile    | 2 +-
 zola/Makefile        | 2 +-
 9 files changed, 9 insertions(+), 9 deletions(-)

diffs:
diff --git a/alacritty/Makefile b/alacritty/Makefile
index 0778d15d9c..ef0989009d 100644
--- a/alacritty/Makefile
+++ b/alacritty/Makefile
@@ -323,7 +323,7 @@ BUILD_DEPENDS+=			${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
 # Should we start using a cargo config file in our builds?
 # https://doc.rust-lang.org/cargo/reference/config.html
 do-build:
-	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/cargo build --verbose --locked --frozen --release
+	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/cargo build --verbose --locked --frozen --release -j${_MAKE_JOBS_N}
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/target/release/alacritty ${DESTDIR}${PREFIX}/bin
diff --git a/amp-editor/Makefile b/amp-editor/Makefile
index b60fa569aa..91f23cbe96 100644
--- a/amp-editor/Makefile
+++ b/amp-editor/Makefile
@@ -190,7 +190,7 @@ BUILD_DEPENDS+=			${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
 REPLACE_PYTHON+=		../vendor/xcb-0.8.2/rs-client.py
 
 do-build:
-	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/cargo build --locked --frozen --release
+	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/cargo build --locked --frozen --release -j${_MAKE_JOBS_N}
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/target/release/amp ${DESTDIR}${PREFIX}/bin
diff --git a/cargo-audit/Makefile b/cargo-audit/Makefile
index 6d334afd49..f609c004bf 100644
--- a/cargo-audit/Makefile
+++ b/cargo-audit/Makefile
@@ -96,7 +96,7 @@ INSTALLATION_DIRS=	bin
 MAKE_ENV+=		OPENSSL_DIR=${BUILDLINK_PREFIX.openssl:Q}
 
 do-build:
-	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/cargo build --locked --frozen --release
+	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/cargo build --locked --frozen --release -j${_MAKE_JOBS_N}
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/target/release/cargo-audit ${DESTDIR}${PREFIX}/bin
diff --git a/nary/Makefile b/nary/Makefile
index a3bc14ec7e..8d8cd04a0a 100644
--- a/nary/Makefile
+++ b/nary/Makefile
@@ -140,7 +140,7 @@ INSTALLATION_DIRS=	bin
 MAKE_ENV+=		OPENSSL_DIR=${BUILDLINK_PREFIX.openssl:Q}
 
 do-build:
-	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/cargo build --locked --frozen --release
+	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/cargo build --locked --frozen --release -j${_MAKE_JOBS_N}
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/target/release/nary ${DESTDIR}${PREFIX}/bin
diff --git a/pack/Makefile b/pack/Makefile
index a8c5ab5175..aebad2dfcd 100644
--- a/pack/Makefile
+++ b/pack/Makefile
@@ -85,7 +85,7 @@ INSTALLATION_DIRS=	bin
 MAKE_ENV+=		OPENSSL_DIR=${BUILDLINK_PREFIX.openssl:Q}
 
 do-build:
-	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/cargo build --locked --frozen --release
+	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/cargo build --locked --frozen --release -j${_MAKE_JOBS_N}
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/target/release/pack ${DESTDIR}${PREFIX}/bin
diff --git a/pijul/Makefile b/pijul/Makefile
index 85ccf23dd3..3c631ad054 100644
--- a/pijul/Makefile
+++ b/pijul/Makefile
@@ -286,7 +286,7 @@ MAKE_ENV+=		SODIUM_LIB_DIR=${BUILDLINK_PREFIX.libsodium:Q}
 #MAKE_ENV+=		SODIUM_STATIC
 
 do-build:
-	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/cargo build --locked --frozen --release
+	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/cargo build --locked --frozen --release -j${_MAKE_JOBS_N}
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/target/release/nary ${DESTDIR}${PREFIX}/bin
diff --git a/spotifyd/Makefile b/spotifyd/Makefile
index 4d4dceaa05..0c21e85b30 100644
--- a/spotifyd/Makefile
+++ b/spotifyd/Makefile
@@ -407,7 +407,7 @@ post-extract:
 #
 # Although... also need to update the cargo crate depends list above and those patches...
 do-build:
-	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/cargo build --no-default-features --features pulseaudio_backend --release --frozen --locked
+	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/cargo build --no-default-features --features pulseaudio_backend --release --frozen --locked -j${_MAKE_JOBS_N}
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/target/release/spotifyd ${DESTDIR}${PREFIX}/bin
diff --git a/tealdeer/Makefile b/tealdeer/Makefile
index b9aa147fdf..0695fd0d85 100644
--- a/tealdeer/Makefile
+++ b/tealdeer/Makefile
@@ -127,7 +127,7 @@ MAKE_ENV+=		OPENSSL_DIR=${BUILDLINK_PREFIX.openssl:Q}
 INSTALLATION_DIRS=	bin share/bash-completion/completions
 
 do-build:
-	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/cargo build --locked --frozen --release
+	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/cargo build --locked --frozen --release -j${_MAKE_JOBS_N}
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/target/release/tldr ${DESTDIR}${PREFIX}/bin/
diff --git a/zola/Makefile b/zola/Makefile
index 23a6a91bcb..83c86a3996 100644
--- a/zola/Makefile
+++ b/zola/Makefile
@@ -40,7 +40,7 @@ CARGO_CRATE_DEPENDS+=	\
 INSTALLATION_DIRS=	bin
 
 do-build:
-	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/cargo build --locked --frozen --release
+	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/cargo build --locked --frozen --release -j${_MAKE_JOBS_N}
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/target/release/zola ${DESTDIR}${PREFIX}/bin


Home | Main Index | Thread Index | Old Index