pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/rust-bin



Module Name:    pkgsrc
Committed By:   nia
Date:           Sat Apr 30 21:04:01 UTC 2022

Modified Files:
        pkgsrc/lang/rust-bin: Makefile

Log Message:
rust-bin: use OPSYS_VERSION for NetBSD


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 pkgsrc/lang/rust-bin/Makefile

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

Modified files:

Index: pkgsrc/lang/rust-bin/Makefile
diff -u pkgsrc/lang/rust-bin/Makefile:1.34 pkgsrc/lang/rust-bin/Makefile:1.35
--- pkgsrc/lang/rust-bin/Makefile:1.34  Sat Apr 16 15:37:38 2022
+++ pkgsrc/lang/rust-bin/Makefile       Sat Apr 30 21:04:01 2022
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.34 2022/04/16 15:37:38 he Exp $
+# $NetBSD: Makefile,v 1.35 2022/04/30 21:04:01 nia Exp $
 
 DISTNAME=      rust-1.59.0
 PKGNAME=       ${DISTNAME:S/rust/rust-bin/1}
@@ -116,12 +116,13 @@ SITES.${DN}-${RUST_ARCH}.tar.gz= \
                ${NETBSD_REPO}
 .endif
 .if !empty(MACHINE_PLATFORM:MNetBSD-*-powerpc) || make(distinfo) || make(makesum) || make(mdi)
+.  if ${OPSYS_VERSION} >= 090000
 RUST_ARCH:=    powerpc-unknown-netbsd90
 DN:=           ${DISTNAME}${NBSUF}
 DISTFILES:=    ${DISTFILES} ${DN}-${RUST_ARCH}.tar.gz
 SITES.${DN}-${RUST_ARCH}.tar.gz= \
                ${NETBSD_REPO}
-.  if !empty(OS_VERSION:M8.*)
+.  else
 RUST_ARCH:=    powerpc-unknown-netbsd
 DN:=           ${DISTNAME}${NBSUF}
 DISTFILES:=    ${DISTFILES} ${DN}-${RUST_ARCH}.tar.gz
@@ -185,7 +186,7 @@ fix-darwin-install-name:
 TOOL_DEPENDS+=         patchelf-[0-9]*:../../devel/patchelf
 
 # The llvm utilities need a specific libstdc++ version from compat80
-.  if ${OPSYS} == "NetBSD" && empty(OS_VERSION:M[0-8].*)
+.  if ${OPSYS} == "NetBSD" && ${OPSYS_VERSION} >= 090000
 .    if ${MACHINE_ARCH} != "aarch64" && ${MACHINE_ARCH} != "earmv7hf" && \
         ${MACHINE_ARCH} != "powerpc"
 DEPENDS+=              compat80-[0-9]*:../../emulators/compat80



Home | Main Index | Thread Index | Old Index