pkgsrc-Changes archive

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

CVS commit: pkgsrc



Module Name:    pkgsrc
Committed By:   nia
Date:           Sun Jun 14 15:33:29 UTC 2020

Modified Files:
        pkgsrc/devel/cbindgen: Makefile
        pkgsrc/graphics/librsvg: Makefile
        pkgsrc/lang/mozjs68: Makefile
        pkgsrc/lang/rust: Makefile cargo.mk
        pkgsrc/lang/rust-bin: Makefile
        pkgsrc/net/tor: options.mk
        pkgsrc/sysutils/tealdeer: Makefile
        pkgsrc/www/cliqz: Makefile
        pkgsrc/www/firefox: mozilla-common.mk
        pkgsrc/www/firefox68: mozilla-common.mk
        pkgsrc/www/geckodriver: Makefile
        pkgsrc/www/seamonkey: mozilla-common.mk
        pkgsrc/www/zola: Makefile
Added Files:
        pkgsrc/lang/rust: rust.mk
        pkgsrc/lang/rust-bin: buildlink3.mk
Removed Files:
        pkgsrc/lang/rust: type.mk

Log Message:
Rename rust-bin's PKGNAME to rust-bin. Add rust.mk for rust packages.

This allows rust-bin and rust to coexist in bulk builds (for testing, etc),
but the packages still may not be installed at the same time.

rust.mk as a solution for picking the correct rust variant was suggested
by gdt@. It is intended to be included directly by packages that do not
use cargo.mk, and indirectly by packages that do use cargo.mk.

rust.mk provides one user-settable variable:

RUST_TYPE
        as before, whether to bootstrap rust from source or use
        official binaries. may be "src" or "bin"

And two package-settable variables:

RUST_REQ
        the minimum version of Rust required by the package.
        defaults to "1.20.0"

RUST_RUNTIME
        whether Rust is a runtime dependency, may be "yes" or "no"


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 pkgsrc/devel/cbindgen/Makefile
cvs rdiff -u -r1.122 -r1.123 pkgsrc/graphics/librsvg/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/lang/mozjs68/Makefile
cvs rdiff -u -r1.179 -r1.180 pkgsrc/lang/rust/Makefile
cvs rdiff -u -r1.16 -r1.17 pkgsrc/lang/rust/cargo.mk
cvs rdiff -u -r0 -r1.1 pkgsrc/lang/rust/rust.mk
cvs rdiff -u -r1.2 -r0 pkgsrc/lang/rust/type.mk
cvs rdiff -u -r1.8 -r1.9 pkgsrc/lang/rust-bin/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/lang/rust-bin/buildlink3.mk
cvs rdiff -u -r1.11 -r1.12 pkgsrc/net/tor/options.mk
cvs rdiff -u -r1.1 -r1.2 pkgsrc/sysutils/tealdeer/Makefile
cvs rdiff -u -r1.42 -r1.43 pkgsrc/www/cliqz/Makefile
cvs rdiff -u -r1.169 -r1.170 pkgsrc/www/firefox/mozilla-common.mk
cvs rdiff -u -r1.10 -r1.11 pkgsrc/www/firefox68/mozilla-common.mk
cvs rdiff -u -r1.10 -r1.11 pkgsrc/www/geckodriver/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/www/seamonkey/mozilla-common.mk
cvs rdiff -u -r1.2 -r1.3 pkgsrc/www/zola/Makefile

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

Modified files:

Index: pkgsrc/devel/cbindgen/Makefile
diff -u pkgsrc/devel/cbindgen/Makefile:1.15 pkgsrc/devel/cbindgen/Makefile:1.16
--- pkgsrc/devel/cbindgen/Makefile:1.15 Wed Jun  3 08:53:04 2020
+++ pkgsrc/devel/cbindgen/Makefile      Sun Jun 14 15:33:28 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2020/06/03 08:53:04 ryoon Exp $
+# $NetBSD: Makefile,v 1.16 2020/06/14 15:33:28 nia Exp $
 
 DISTNAME=      cbindgen-0.14.2
 CATEGORIES=    devel
@@ -55,6 +55,6 @@ do-build:
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/target/release/cbindgen ${DESTDIR}${PREFIX}/bin
 
+RUST_RUNTIME=  yes
 .include "../../lang/rust/cargo.mk"
-.include "../../lang/rust/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/graphics/librsvg/Makefile
diff -u pkgsrc/graphics/librsvg/Makefile:1.122 pkgsrc/graphics/librsvg/Makefile:1.123
--- pkgsrc/graphics/librsvg/Makefile:1.122      Tue Jun  2 08:22:44 2020
+++ pkgsrc/graphics/librsvg/Makefile    Sun Jun 14 15:33:27 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.122 2020/06/02 08:22:44 adam Exp $
+# $NetBSD: Makefile,v 1.123 2020/06/14 15:33:27 nia Exp $
 
 DISTNAME=      librsvg-2.48.3
 PKGREVISION=   1
@@ -206,8 +206,6 @@ BUILDLINK_API_DEPENDS.freetype2+=   freety
 BUILDLINK_API_DEPENDS.libxml2+=        libxml2>=2.9
 .include "../../textproc/libxml2/buildlink3.mk"
 .include "../../graphics/gdk-pixbuf2/buildlink3.mk"
-BUILDLINK_API_DEPENDS.rust+=   rust>=1.39.0
-BUILDLINK_DEPMETHOD.rust?=     build
-.include "../../lang/rust/buildlink3.mk"
+RUST_REQ=      1.39.0
 .include "../../lang/rust/cargo.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/lang/mozjs68/Makefile
diff -u pkgsrc/lang/mozjs68/Makefile:1.4 pkgsrc/lang/mozjs68/Makefile:1.5
--- pkgsrc/lang/mozjs68/Makefile:1.4    Tue Jun  2 08:22:45 2020
+++ pkgsrc/lang/mozjs68/Makefile        Sun Jun 14 15:33:28 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2020/06/02 08:22:45 adam Exp $
+# $NetBSD: Makefile,v 1.5 2020/06/14 15:33:28 nia Exp $
 
 DISTNAME=      mozjs68_68.6.0.orig
 PKGNAME=       ${DISTNAME:S/_/-/:S/.orig//}
@@ -66,9 +66,8 @@ post-install:
 
 BUILDLINK_DEPMETHOD.clang=     build
 .include "../../lang/clang/buildlink3.mk"
-BUILDLINK_DEPMETHOD.rust=      build
-BUILDLINK_API_DEPENDS.rust+=   rust>=1.34.0
-.include "../../lang/rust/buildlink3.mk"
+RUST_TYPE=     1.34.0
+.include "../../lang/rust/rust.mk"
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../lang/python/tool.mk"
 .include "../../textproc/icu/buildlink3.mk"

Index: pkgsrc/lang/rust/Makefile
diff -u pkgsrc/lang/rust/Makefile:1.179 pkgsrc/lang/rust/Makefile:1.180
--- pkgsrc/lang/rust/Makefile:1.179     Sun Jun 14 14:29:25 2020
+++ pkgsrc/lang/rust/Makefile   Sun Jun 14 15:33:27 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.179 2020/06/14 14:29:25 gdt Exp $
+# $NetBSD: Makefile,v 1.180 2020/06/14 15:33:27 nia Exp $
 
 DISTNAME=      rustc-1.43.1-src
 PKGNAME=       ${DISTNAME:S/rustc/rust/:S/-src//}
@@ -11,6 +11,8 @@ HOMEPAGE=     https://www.rust-lang.org/
 COMMENT=       Safe, concurrent, practical language
 LICENSE=       mit OR apache-2.0
 
+CONFLICTS+=    rust-bin-[0-9]*
+
 USE_GCC_RUNTIME=       yes
 USE_LANGUAGES=         c c++11
 USE_LIBTOOL=           yes
@@ -20,12 +22,6 @@ USE_TOOLS+=          bash ggrep gmake perl:build
 # build on 7).  Mark earlier versions as broken.
 BROKEN_ON_PLATFORM+=   NetBSD-[1-7].*-*
 
-.include "type.mk"
-
-.if ${RUST_TYPE} != "src"
-PKG_SKIP_REASON+=      "Rust source package, RUST_TYPE is bin"
-.endif
-
 HAS_CONFIGURE=                 yes
 PYTHON_FOR_BUILD_ONLY=         yes
 CONFIG_SHELL=                  ${PYTHONBIN}

Index: pkgsrc/lang/rust/cargo.mk
diff -u pkgsrc/lang/rust/cargo.mk:1.16 pkgsrc/lang/rust/cargo.mk:1.17
--- pkgsrc/lang/rust/cargo.mk:1.16      Sun Jun 14 11:19:34 2020
+++ pkgsrc/lang/rust/cargo.mk   Sun Jun 14 15:33:27 2020
@@ -1,4 +1,4 @@
-# $NetBSD: cargo.mk,v 1.16 2020/06/14 11:19:34 rillig Exp $
+# $NetBSD: cargo.mk,v 1.17 2020/06/14 15:33:27 nia Exp $
 #
 # Common logic that can be used by packages that depend on cargo crates
 # from crates.io. This lets existing pkgsrc infrastructure fetch and verify
@@ -22,13 +22,7 @@
 
 MASTER_SITES?= -${MASTER_SITE_CRATESIO}${PKGBASE}/${PKGVERSION_NOREV}/download
 
-.include "type.mk"
-
-.if ${RUST_TYPE} != "bin"
-BUILD_DEPENDS+=        rust-[0-9]*:../../lang/rust
-.else
-BUILD_DEPENDS+=        rust-[0-9]*:../../lang/rust-bin
-.endif
+.include "../../lang/rust/rust.mk"
 
 USE_TOOLS+=            bsdtar digest
 CARGO_VENDOR_DIR=      ${WRKDIR}/vendor

Index: pkgsrc/lang/rust-bin/Makefile
diff -u pkgsrc/lang/rust-bin/Makefile:1.8 pkgsrc/lang/rust-bin/Makefile:1.9
--- pkgsrc/lang/rust-bin/Makefile:1.8   Tue Jun  9 15:58:05 2020
+++ pkgsrc/lang/rust-bin/Makefile       Sun Jun 14 15:33:28 2020
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.8 2020/06/09 15:58:05 nia Exp $
+# $NetBSD: Makefile,v 1.9 2020/06/14 15:33:28 nia Exp $
 
 DISTNAME=      rust-1.44.0
+PKGNAME=       ${DISTNAME:S/rust/rust-bin/1}
 CATEGORIES=    lang
 MASTER_SITES=  https://static.rust-lang.org/dist/
 
@@ -9,11 +10,7 @@ HOMEPAGE=     https://rust-lang.org/
 COMMENT=       Safe, concurrent, practical language (official binaries)
 LICENSE=       mit OR apache-2.0
 
-.include "../../lang/rust/type.mk"
-
-.if ${RUST_TYPE} != "bin"
-PKG_SKIP_REASON+=      "Rust binary package, RUST_TYPE is src"
-.endif
+CONFLICTS+=    rust-[0-9]*
 
 ONLY_FOR_PLATFORM+=    Darwin-*-x86_64
 ONLY_FOR_PLATFORM+=    FreeBSD-*-i386

Index: pkgsrc/net/tor/options.mk
diff -u pkgsrc/net/tor/options.mk:1.11 pkgsrc/net/tor/options.mk:1.12
--- pkgsrc/net/tor/options.mk:1.11      Fri May 15 16:39:34 2020
+++ pkgsrc/net/tor/options.mk   Sun Jun 14 15:33:28 2020
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.11 2020/05/15 16:39:34 wiz Exp $
+# $NetBSD: options.mk,v 1.12 2020/06/14 15:33:28 nia Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.tor
 PKG_SUPPORTED_OPTIONS= doc rust
@@ -33,10 +33,8 @@ CARGO_CRATE_DEPENDS+=        rand-0.5.0-pre.2
 CARGO_CRATE_DEPENDS+=  rand_core-0.2.0-pre.0
 CARGO_CRATE_DEPENDS+=  typenum-1.9.0
 
+RUST_REQ=      1.34.0
 .include "../../lang/rust/cargo.mk"
-BUILDLINK_DEPMETHOD.rust=      build
-BUILDLINK_API_DEPENDS.rust+=   rust>=1.34.0
-.include "../../lang/rust/buildlink3.mk"
 
 pre-configure:
        cd ${WRKSRC} && ${MKDIR} -p src/rust/target/release

Index: pkgsrc/sysutils/tealdeer/Makefile
diff -u pkgsrc/sysutils/tealdeer/Makefile:1.1 pkgsrc/sysutils/tealdeer/Makefile:1.2
--- pkgsrc/sysutils/tealdeer/Makefile:1.1       Thu Mar 19 19:43:52 2020
+++ pkgsrc/sysutils/tealdeer/Makefile   Sun Jun 14 15:33:28 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2020/03/19 19:43:52 bsiegert Exp $
+# $NetBSD: Makefile,v 1.2 2020/06/14 15:33:28 nia Exp $
 
 DISTNAME=      tealdeer-1.3.0
 GITHUB_TAG=    v${PKGVERSION_NOREV}
@@ -190,6 +190,5 @@ do-install:
        ${INSTALL_DATA} ${WRKSRC}/bash_tealdeer ${DESTDIR}${PREFIX}/share/bash-completion/completions/tldr
 
 .include "../../lang/rust/cargo.mk"
-.include "../../lang/rust/buildlink3.mk"
 .include "../../security/openssl/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/www/cliqz/Makefile
diff -u pkgsrc/www/cliqz/Makefile:1.42 pkgsrc/www/cliqz/Makefile:1.43
--- pkgsrc/www/cliqz/Makefile:1.42      Tue Jun  2 08:24:56 2020
+++ pkgsrc/www/cliqz/Makefile   Sun Jun 14 15:33:28 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.42 2020/06/02 08:24:56 adam Exp $
+# $NetBSD: Makefile,v 1.43 2020/06/14 15:33:28 nia Exp $
 
 DISTNAME=      cliqz-1.36.0
 PKGREVISION=   1
@@ -175,8 +175,7 @@ PKG_CC=             ${PREFIX}/bin/clang
 PKG_CXX=       ${PREFIX}/bin/clang++
 BUILDLINK_DEPMETHOD.clang=     build
 .include "../../lang/clang/buildlink3.mk"
-BUILDLINK_DEPMETHOD.rust=      build
-BUILDLINK_API_DEPENDS.rust+=   rust>=1.41.0
-.include "../../lang/rust/buildlink3.mk"
+RUST_REQ=      1.41.0
+.include "../../lang/rust/rust.mk"
 .include "../../sysutils/desktop-file-utils/desktopdb.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/www/firefox/mozilla-common.mk
diff -u pkgsrc/www/firefox/mozilla-common.mk:1.169 pkgsrc/www/firefox/mozilla-common.mk:1.170
--- pkgsrc/www/firefox/mozilla-common.mk:1.169  Wed Jun  3 09:04:36 2020
+++ pkgsrc/www/firefox/mozilla-common.mk        Sun Jun 14 15:33:28 2020
@@ -1,4 +1,4 @@
-# $NetBSD: mozilla-common.mk,v 1.169 2020/06/03 09:04:36 ryoon Exp $
+# $NetBSD: mozilla-common.mk,v 1.170 2020/06/14 15:33:28 nia Exp $
 #
 # common Makefile fragment for mozilla packages based on gecko 2.0.
 #
@@ -261,9 +261,8 @@ CWRAPPERS_PREPEND.cxx+= \
        -stdlib++-isystem \
        ${BUILDLINK_PREFIX.gcc8}/gcc8/include/c++/backward
 .endif
-BUILDLINK_DEPMETHOD.rust=      build
-BUILDLINK_API_DEPENDS.rust+=   rust>=1.41.0
-.include "../../lang/rust/buildlink3.mk"
+RUST_REQ=      1.41.0
+.include "../../lang/rust/rust.mk"
 # webrtc option requires internal libvpx
 #BUILDLINK_API_DEPENDS.libvpx+=        libvpx>=1.3.0
 #.include "../../multimedia/libvpx/buildlink3.mk"

Index: pkgsrc/www/firefox68/mozilla-common.mk
diff -u pkgsrc/www/firefox68/mozilla-common.mk:1.10 pkgsrc/www/firefox68/mozilla-common.mk:1.11
--- pkgsrc/www/firefox68/mozilla-common.mk:1.10 Tue Apr 28 06:56:48 2020
+++ pkgsrc/www/firefox68/mozilla-common.mk      Sun Jun 14 15:33:28 2020
@@ -1,4 +1,4 @@
-# $NetBSD: mozilla-common.mk,v 1.10 2020/04/28 06:56:48 riastradh Exp $
+# $NetBSD: mozilla-common.mk,v 1.11 2020/06/14 15:33:28 nia Exp $
 #
 # common Makefile fragment for mozilla packages based on gecko 2.0.
 #
@@ -227,9 +227,8 @@ BUILDLINK_API_DEPENDS.libwebp+=     libwebp>
 .include "../../graphics/libwebp/buildlink3.mk"
 BUILDLINK_DEPMETHOD.clang=     build
 .include "../../lang/clang/buildlink3.mk"
-BUILDLINK_DEPMETHOD.rust=      build
-BUILDLINK_API_DEPENDS.rust+=   rust>=1.34.0
-.include "../../lang/rust/buildlink3.mk"
+RUST_REQ=      1.34.0
+.include "../../lang/rust/rust.mk"
 # webrtc option requires internal libvpx
 #BUILDLINK_API_DEPENDS.libvpx+=        libvpx>=1.3.0
 #.include "../../multimedia/libvpx/buildlink3.mk"

Index: pkgsrc/www/geckodriver/Makefile
diff -u pkgsrc/www/geckodriver/Makefile:1.10 pkgsrc/www/geckodriver/Makefile:1.11
--- pkgsrc/www/geckodriver/Makefile:1.10        Sun Jan 19 18:20:46 2020
+++ pkgsrc/www/geckodriver/Makefile     Sun Jun 14 15:33:29 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2020/01/19 18:20:46 maya Exp $
+# $NetBSD: Makefile,v 1.11 2020/06/14 15:33:29 nia Exp $
 
 DISTNAME=      geckodriver-0.24.0
 CATEGORIES=    www
@@ -175,6 +175,5 @@ do-build:
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/target/release/geckodriver ${DESTDIR}${PREFIX}/bin
 
-.include "../../lang/rust/buildlink3.mk"
 .include "../../lang/rust/cargo.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/www/seamonkey/mozilla-common.mk
diff -u pkgsrc/www/seamonkey/mozilla-common.mk:1.2 pkgsrc/www/seamonkey/mozilla-common.mk:1.3
--- pkgsrc/www/seamonkey/mozilla-common.mk:1.2  Mon Jun  8 12:39:19 2020
+++ pkgsrc/www/seamonkey/mozilla-common.mk      Sun Jun 14 15:33:28 2020
@@ -1,4 +1,4 @@
-# $NetBSD: mozilla-common.mk,v 1.2 2020/06/08 12:39:19 ryoon Exp $
+# $NetBSD: mozilla-common.mk,v 1.3 2020/06/14 15:33:28 nia Exp $
 #
 # common Makefile fragment for mozilla packages based on gecko 2.0.
 #
@@ -201,9 +201,8 @@ BUILDLINK_API_DEPENDS.nss+= nss>=3.35
 #.include "../../graphics/cairo/buildlink3.mk"
 BUILDLINK_DEPMETHOD.clang=     build
 .include "../../lang/clang/buildlink3.mk"
-BUILDLINK_API_DEPENDS.rust+=   rust>=1.23.0
-BUILDLINK_DEPMETHOD.rust=      build
-.include "../../lang/rust/buildlink3.mk"
+RUST_REQ=      1.23.0
+.include "../../lang/rust/rust.mk"
 #BUILDLINK_API_DEPENDS.libvpx+=        libvpx>=1.3.0
 #.include "../../multimedia/libvpx/buildlink3.mk"
 .include "../../net/libIDL/buildlink3.mk"

Index: pkgsrc/www/zola/Makefile
diff -u pkgsrc/www/zola/Makefile:1.2 pkgsrc/www/zola/Makefile:1.3
--- pkgsrc/www/zola/Makefile:1.2        Mon Jun  8 17:28:05 2020
+++ pkgsrc/www/zola/Makefile    Sun Jun 14 15:33:29 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2020/06/08 17:28:05 nikita Exp $
+# $NetBSD: Makefile,v 1.3 2020/06/14 15:33:29 nia Exp $
 
 DISTNAME=      zola-0.11.0
 CATEGORIES=    www
@@ -328,6 +328,5 @@ do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/target/release/zola ${DESTDIR}${PREFIX}/bin
 
 .include "../../lang/rust/cargo.mk"
-.include "../../lang/rust/buildlink3.mk"
 .include "../../security/openssl/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"

Added files:

Index: pkgsrc/lang/rust/rust.mk
diff -u /dev/null pkgsrc/lang/rust/rust.mk:1.1
--- /dev/null   Sun Jun 14 15:33:29 2020
+++ pkgsrc/lang/rust/rust.mk    Sun Jun 14 15:33:27 2020
@@ -0,0 +1,57 @@
+# $NetBSD: rust.mk,v 1.1 2020/06/14 15:33:27 nia Exp $
+# 
+# This file determines the type of rust package to use.
+#
+# === User-settable variables ===
+#
+# RUST_TYPE
+#      The preferred type of Rust release to use -
+#      either bootstrap-from-source or an official binary.
+#
+#      Official Rust binaries are only published for certain platforms,
+#      including Darwin, Linux, and NetBSD x86_64.
+#
+#      Possible values: src bin
+#      Default: src
+#
+# === Package-settable variables ===
+#
+# RUST_REQ
+#      The minimum version of Rust required by the package.
+#      Binary Rust is only published for certain platforms.
+#
+#      Default: 1.20.0
+#
+# RUST_RUNTIME
+#      Whether rust is a runtime dependency.
+#      Usually it is only needed to build.
+#
+#      Possible values: yes no
+#      Default: no
+
+.include "../../mk/bsd.fast.prefs.mk"
+
+RUST_REQ?=     1.20.0
+RUST_RUNTIME?= no
+
+.if !empty(MACHINE_PLATFORM:MNetBSD-*-x86_64)
+RUST_TYPE?=    bin
+.else
+RUST_TYPE?=    src
+.endif
+
+.if ${RUST_TYPE} == "bin"
+.  if ${RUST_RUNTIME} != "no"
+BUILDLINK_DEPMETHOD.rust-bin?=         build
+.  endif
+BUILDLINK_API_DEPENDS.rust-bin+=       rust-bin>=${RUST_REQ}
+.  include "../../lang/rust-bin/buildlink3.mk"
+.endif
+
+.if ${RUST_TYPE} == "src"
+.  if ${RUST_RUNTIME} != "no"
+BUILDLINK_DEPMETHOD.rust?=             build
+.  endif
+BUILDLINK_API_DEPENDS.rust+=           rust>=${RUST_REQ}
+.  include "../../lang/rust/buildlink3.mk"
+.endif

Index: pkgsrc/lang/rust-bin/buildlink3.mk
diff -u /dev/null pkgsrc/lang/rust-bin/buildlink3.mk:1.1
--- /dev/null   Sun Jun 14 15:33:29 2020
+++ pkgsrc/lang/rust-bin/buildlink3.mk  Sun Jun 14 15:33:28 2020
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.1 2020/06/14 15:33:28 nia Exp $
+
+BUILDLINK_TREE+=       rust-bin
+
+.if !defined(RUST_BIN_BUILDLINK3_MK)
+RUST_BIN_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.rust-bin+=       rust-bin>=1.20.0
+BUILDLINK_PKGSRCDIR.rust-bin?=         ../../lang/rust-bin
+BUILDLINK_PASSTHRU_DIRS+=              ${PREFIX}/lib/rustlib
+.endif
+
+BUILDLINK_TREE+=       -rust-bin



Home | Main Index | Thread Index | Old Index