pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/rust-bin rust-bin: reduce repetition in NetBSD se...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a059167756bc
branches:  trunk
changeset: 384705:a059167756bc
user:      he <he%pkgsrc.org@localhost>
date:      Sun Sep 04 09:57:13 2022 +0000

description:
rust-bin: reduce repetition in NetBSD section, fix aarch64eb entry.

Thanks to pkglint for the need to fix aarch64eb.

diffstat:

 lang/rust-bin/Makefile |  40 ++++++++++++++++++++++++----------------
 1 files changed, 24 insertions(+), 16 deletions(-)

diffs (91 lines):

diff -r b6001a2e544f -r a059167756bc lang/rust-bin/Makefile
--- a/lang/rust-bin/Makefile    Sun Sep 04 08:45:56 2022 +0000
+++ b/lang/rust-bin/Makefile    Sun Sep 04 09:57:13 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.39 2022/09/04 06:58:57 he Exp $
+# $NetBSD: Makefile,v 1.40 2022/09/04 09:57:13 he Exp $
 
 DISTNAME=      rust-1.62.1
 PKGNAME=       ${DISTNAME:S/rust/rust-bin/1}
@@ -23,6 +23,7 @@
 
 # he%NetBSD.org@localhost provided binaries
 ONLY_FOR_PLATFORM+=    NetBSD-*-aarch64
+ONLY_FOR_PLATFORM+=    NetBSD-*-aarch64eb
 ONLY_FOR_PLATFORM+=    NetBSD-*-earmv7hf
 ONLY_FOR_PLATFORM+=    NetBSD-*-i386
 ONLY_FOR_PLATFORM+=    NetBSD-*-powerpc
@@ -98,51 +99,58 @@
 RUST_ARCH:=    aarch64-unknown-netbsd
 DN:=           ${DISTNAME}${NBSUF}
 EXTRACT_SUFX=  .tar.xz
-DISTFILES:=    ${DISTFILES} ${DN}-${RUST_ARCH}${EXTRACT_SUFX}
-SITES.${DN}-${RUST_ARCH}${EXTRACT_SUFX}= ${NETBSD_REPO}
+DF:=           ${DN}-${RUST_ARCH}${EXTRACT_SUFX}
+DISTFILES:=    ${DISTFILES} ${DF}
+SITES.${DF}=   ${NETBSD_REPO}
 .endif
-.if !empty(MACHINE_PLATFORM:MNetBSD-*-aarch64_be) || make(distinfo) || make(makesum) || make(mdi)
+.if !empty(MACHINE_PLATFORM:MNetBSD-*-aarch64eb) || make(distinfo) || make(makesum) || make(mdi)
 RUST_ARCH:=    aarch64_be-unknown-netbsd
 DN:=           ${DISTNAME}${NBSUF}
 EXTRACT_SUFX=  .tar.xz
-DISTFILES:=    ${DISTFILES} ${DN}-${RUST_ARCH}${EXTRACT_SUFX}
-SITES.${DN}-${RUST_ARCH}${EXTRACT_SUFX}= ${NETBSD_REPO}
+DF:=           ${DN}-${RUST_ARCH}${EXTRACT_SUFX}
+DISTFILES:=    ${DISTFILES} ${DF}
+SITES.${DF}=   ${NETBSD_REPO}
 .endif
 .if !empty(MACHINE_PLATFORM:MNetBSD-*-earmv7hf) || make(distinfo) || make(makesum) || make(mdi)
 RUST_ARCH:=    armv7-unknown-netbsd-eabihf
 DN:=           ${DISTNAME}${NBSUF}
 EXTRACT_SUFX=  .tar.xz
-DISTFILES:=    ${DISTFILES} ${DN}-${RUST_ARCH}${EXTRACT_SUFX}
-SITES.${DN}-${RUST_ARCH}${EXTRACT_SUFX}= ${NETBSD_REPO}
+DF:=           ${DN}-${RUST_ARCH}${EXTRACT_SUFX}
+DISTFILES:=    ${DISTFILES} ${DF}
+SITES.${DF}=   ${NETBSD_REPO}
 .endif
 .if !empty(MACHINE_PLATFORM:MNetBSD-*-i386) || make(distinfo) || make(makesum) || make(mdi)
 RUST_ARCH:=    i586-unknown-netbsd
 DN:=           ${DISTNAME}${NBSUF}
 EXTRACT_SUFX=  .tar.xz
-DISTFILES:=    ${DISTFILES} ${DN}-${RUST_ARCH}${EXTRACT_SUFX}
-SITES.${DN}-${RUST_ARCH}${EXTRACT_SUFX}= ${NETBSD_REPO}
+DF:=           ${DN}-${RUST_ARCH}${EXTRACT_SUFX}
+DISTFILES:=    ${DISTFILES} ${DF}
+SITES.${DF}=   ${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}
 EXTRACT_SUFX=  .tar.xz
-DISTFILES:=    ${DISTFILES} ${DN}-${RUST_ARCH}${EXTRACT_SUFX}
-SITES.${DN}-${RUST_ARCH}${EXTRACT_SUFX}= ${NETBSD_REPO}
+DF:=           ${DN}-${RUST_ARCH}${EXTRACT_SUFX}
+DISTFILES:=    ${DISTFILES} ${DF}
+SITES.${DF}=   ${NETBSD_REPO}
 .  else
 RUST_ARCH:=    powerpc-unknown-netbsd
 DN:=           ${DISTNAME}${NBSUF}
 EXTRACT_SUFX=  .tar.xz
-DISTFILES:=    ${DISTFILES} ${DN}-${RUST_ARCH}${EXTRACT_SUFX}
-SITES.${DN}-${RUST_ARCH}${EXTRACT_SUFX}= ${NETBSD_REPO}
+DF:=           ${DN}-${RUST_ARCH}${EXTRACT_SUFX}
+DISTFILES:=    ${DISTFILES} ${DF}
+SITES.${DF}=   ${NETBSD_REPO}
 .  endif
 .endif
 .if !empty(MACHINE_PLATFORM:MNetBSD-*-sparc64) || make(distinfo) || make(makesum) || make(mdi)
 RUST_ARCH:=    sparc64-unknown-netbsd
 DN:=           ${DISTNAME}${NBSUF}
 EXTRACT_SUFX=  .tar.xz
-DISTFILES:=    ${DISTFILES} ${DN}-${RUST_ARCH}${EXTRACT_SUFX}
-SITES.${DN}-${RUST_ARCH}${EXTRACT_SUFX}= ${NETBSD_REPO}
+DF:=           ${DN}-${RUST_ARCH}${EXTRACT_SUFX}
+DISTFILES:=    ${DISTFILES} ${DF}
+SITES.${DF}=   ${NETBSD_REPO}
 .endif
 
 # Binary still extracts to plain non-nb'ed directory



Home | Main Index | Thread Index | Old Index