pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc Make cargo packages respect MAKE_JOBS



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ae01bfd5cc1d
branches:  trunk
changeset: 409715:ae01bfd5cc1d
user:      maya <maya%pkgsrc.org@localhost>
date:      Sun Jan 19 16:52:46 2020 +0000

description:
Make cargo packages respect MAKE_JOBS

diffstat:

 devel/cbindgen/Makefile                    |   4 ++--
 graphics/librsvg/Makefile                  |   3 ++-
 graphics/librsvg/distinfo                  |   3 ++-
 graphics/librsvg/patches/patch-Makefile.in |  15 +++++++++++++++
 sysutils/exa/Makefile                      |   4 ++--
 textproc/bat/Makefile                      |   4 ++--
 textproc/ripgrep/Makefile                  |   4 ++--
 www/geckodriver/Makefile                   |   4 ++--
 8 files changed, 29 insertions(+), 12 deletions(-)

diffs (140 lines):

diff -r 228c25918d24 -r ae01bfd5cc1d devel/cbindgen/Makefile
--- a/devel/cbindgen/Makefile   Sun Jan 19 16:51:47 2020 +0000
+++ b/devel/cbindgen/Makefile   Sun Jan 19 16:52:46 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2020/01/09 14:56:28 ryoon Exp $
+# $NetBSD: Makefile,v 1.12 2020/01/19 16:52:46 maya Exp $
 
 DISTNAME=      cbindgen-0.12.1
 CATEGORIES=    devel
@@ -48,7 +48,7 @@
 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${EFFECTIVE_MAKE_JOBS}
 
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/target/release/cbindgen ${DESTDIR}${PREFIX}/bin
diff -r 228c25918d24 -r ae01bfd5cc1d graphics/librsvg/Makefile
--- a/graphics/librsvg/Makefile Sun Jan 19 16:51:47 2020 +0000
+++ b/graphics/librsvg/Makefile Sun Jan 19 16:52:46 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.113 2019/12/31 11:36:52 wiz Exp $
+# $NetBSD: Makefile,v 1.114 2020/01/19 16:52:46 maya Exp $
 
 DISTNAME=      librsvg-2.46.4
 CATEGORIES=    graphics gnome
@@ -11,6 +11,7 @@
 LICENSE=       gnu-lgpl-v2
 
 MAKE_JOBS_SAFE=        NO
+MAKE_FLAGS+=   CARGO_MAKE_JOBS=-j${EFFECTIVE_MAKE_JOBS}
 
 USE_LIBTOOL=           yes
 USE_TOOLS+=            pkg-config gmake aclocal autoconf automake
diff -r 228c25918d24 -r ae01bfd5cc1d graphics/librsvg/distinfo
--- a/graphics/librsvg/distinfo Sun Jan 19 16:51:47 2020 +0000
+++ b/graphics/librsvg/distinfo Sun Jan 19 16:52:46 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.43 2019/12/31 11:36:52 wiz Exp $
+$NetBSD: distinfo,v 1.44 2020/01/19 16:52:46 maya Exp $
 
 SHA1 (aho-corasick-0.7.6.crate) = 5844a153c8b9f67a91e2640e0aa66ee493b0f5ab
 RMD160 (aho-corasick-0.7.6.crate) = 78c8c7e93bbcf52f761f90b7096cc9331ad3bfc6
@@ -576,3 +576,4 @@
 RMD160 (xml-rs-0.8.0.crate) = 8ed8d898ab2d1b1ef5c6d391da2c9bfe4bba95a7
 SHA512 (xml-rs-0.8.0.crate) = 94f0bc729d58564d63b4708518313e3dc7fe7c6ff9ac94019df1507d7ce7bd6428f2bc16fb116a9d676415a94812ce1e54e30b469a2a9b5fe29dc82486c536cd
 Size (xml-rs-0.8.0.crate) = 50974 bytes
+SHA1 (patch-Makefile.in) = d8cd4f26c6744a458d8f0735da29653c60ab66f4
diff -r 228c25918d24 -r ae01bfd5cc1d graphics/librsvg/patches/patch-Makefile.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/librsvg/patches/patch-Makefile.in        Sun Jan 19 16:52:46 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-Makefile.in,v 1.1 2020/01/19 16:52:46 maya Exp $
+
+Make it possible to respect MAKE_JOBS.
+
+--- Makefile.in.orig   2019-11-21 16:59:53.000000000 +0000
++++ Makefile.in
+@@ -1761,7 +1761,7 @@ librsvg_c_api.la: $(librsvg_c_api_la_OBJ
+       PKG_CONFIG_ALLOW_CROSS=1                                                \
+       PKG_CONFIG='$(PKG_CONFIG)'                                              \
+       CARGO_TARGET_DIR=$(CARGO_TARGET_DIR)                                    \
+-      $(CARGO) --locked build $(CARGO_VERBOSE) $(CARGO_TARGET_ARGS) $(CARGO_RELEASE_ARGS) \
++      $(CARGO) --locked build $(CARGO_MAKE_JOBS) $(CARGO_VERBOSE) $(CARGO_TARGET_ARGS) $(CARGO_RELEASE_ARGS) \
+       && if [[ $$($(NM) -g $(RUST_LIB) | grep "T __*clzsi2" -c) -gt 1 ]] ; then \
+               $(AR) d $(RUST_LIB) clzsi2.o;                                   \
+       fi \
diff -r 228c25918d24 -r ae01bfd5cc1d sysutils/exa/Makefile
--- a/sysutils/exa/Makefile     Sun Jan 19 16:51:47 2020 +0000
+++ b/sysutils/exa/Makefile     Sun Jan 19 16:52:46 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2019/07/18 00:22:13 fox Exp $
+# $NetBSD: Makefile,v 1.2 2020/01/19 16:52:46 maya Exp $
 
 DISTNAME=      exa-0.9.0
 CATEGORIES=    sysutils
@@ -85,7 +85,7 @@
                        share/zsh/site-functions
 
 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${EFFECTIVE_MAKE_JOBS}
 
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/target/release/exa ${DESTDIR}${PREFIX}/bin
diff -r 228c25918d24 -r ae01bfd5cc1d textproc/bat/Makefile
--- a/textproc/bat/Makefile     Sun Jan 19 16:51:47 2020 +0000
+++ b/textproc/bat/Makefile     Sun Jan 19 16:52:46 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2019/09/06 17:32:04 fox Exp $
+# $NetBSD: Makefile,v 1.5 2020/01/19 16:52:47 maya Exp $
 
 DISTNAME=      bat-0.12.1
 PKGREVISION=   1
@@ -159,7 +159,7 @@
 INSTALLATION_DIRS=     bin ${PKGMANDIR}/man1
 
 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${EFFECTIVE_MAKE_JOBS}
 
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/target/release/bat ${DESTDIR}${PREFIX}/bin
diff -r 228c25918d24 -r ae01bfd5cc1d textproc/ripgrep/Makefile
--- a/textproc/ripgrep/Makefile Sun Jan 19 16:51:47 2020 +0000
+++ b/textproc/ripgrep/Makefile Sun Jan 19 16:52:46 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2019/12/03 16:34:29 minskim Exp $
+# $NetBSD: Makefile,v 1.7 2020/01/19 16:52:47 maya Exp $
 
 DISTNAME=      ripgrep-11.0.2
 CATEGORIES=    textproc
@@ -79,7 +79,7 @@
 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${EFFECTIVE_MAKE_JOBS}
 
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/target/release/rg ${DESTDIR}${PREFIX}/bin
diff -r 228c25918d24 -r ae01bfd5cc1d www/geckodriver/Makefile
--- a/www/geckodriver/Makefile  Sun Jan 19 16:51:47 2020 +0000
+++ b/www/geckodriver/Makefile  Sun Jan 19 16:52:46 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2019/07/22 23:48:31 tnn Exp $
+# $NetBSD: Makefile,v 1.9 2020/01/19 16:52:47 maya Exp $
 
 DISTNAME=      geckodriver-0.24.0
 CATEGORIES=    www
@@ -170,7 +170,7 @@
        cp ${FILESDIR}/Cargo.lock ${WRKSRC}/Cargo.lock
 
 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${EFFECTIVE_MAKE_JOBS}
 
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/target/release/geckodriver ${DESTDIR}${PREFIX}/bin



Home | Main Index | Thread Index | Old Index