| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.64 2024/04/18 09:36:01 pin Exp $ | | 1 | # $NetBSD: Makefile,v 1.65 2024/04/19 14:08:39 pho Exp $ |
2 | | | 2 | |
3 | DISTNAME= rust-1.76.0 | | 3 | DISTNAME= rust-1.76.0 |
4 | PKGNAME= ${DISTNAME:S/rust/rust-bin/1} | | 4 | PKGNAME= ${DISTNAME:S/rust/rust-bin/1} |
5 | CATEGORIES= lang | | 5 | CATEGORIES= lang |
6 | MASTER_SITES= https://static.rust-lang.org/dist/ | | 6 | MASTER_SITES= https://static.rust-lang.org/dist/ |
7 | DIST_SUBDIR= ${PKGNAME_NOREV} | | 7 | DIST_SUBDIR= ${PKGNAME_NOREV} |
8 | | | 8 | |
9 | MAINTAINER= pkgsrc-users@NetBSD.org | | 9 | MAINTAINER= pkgsrc-users@NetBSD.org |
10 | HOMEPAGE= https://rust-lang.org/ | | 10 | HOMEPAGE= https://rust-lang.org/ |
11 | COMMENT= Safe, concurrent, practical language (pre-built distribution) | | 11 | COMMENT= Safe, concurrent, practical language (pre-built distribution) |
12 | LICENSE= mit OR apache-2.0 | | 12 | LICENSE= mit OR apache-2.0 |
13 | | | 13 | |
14 | CONFLICTS+= rust-[0-9]* | | 14 | CONFLICTS+= rust-[0-9]* |
| @@ -202,27 +202,27 @@ WRKSRC:= ${WRKSRC:C/netbsd90/netbsd/} | | | @@ -202,27 +202,27 @@ WRKSRC:= ${WRKSRC:C/netbsd90/netbsd/} |
202 | do-install: | | 202 | do-install: |
203 | cd ${.CURDIR}/files; pax -rw install.sh ${WRKSRC} | | 203 | cd ${.CURDIR}/files; pax -rw install.sh ${WRKSRC} |
204 | cd ${WRKSRC} && env PKGMANDIR=${PKGMANDIR} bash ./install.sh \ | | 204 | cd ${WRKSRC} && env PKGMANDIR=${PKGMANDIR} bash ./install.sh \ |
205 | --destdir=${DESTDIR} --prefix=${PREFIX} | | 205 | --destdir=${DESTDIR} --prefix=${PREFIX} |
206 | ${RM} -f ${DESTDIR}${PREFIX}/lib/rustlib/${RUST_ARCH}/bin/rust-llvm-dwp | | 206 | ${RM} -f ${DESTDIR}${PREFIX}/lib/rustlib/${RUST_ARCH}/bin/rust-llvm-dwp |
207 | ${RM} -f ${DESTDIR}${PREFIX}/lib/rustlib/install.log | | 207 | ${RM} -f ${DESTDIR}${PREFIX}/lib/rustlib/install.log |
208 | ${RM} -f ${DESTDIR}${PREFIX}/lib/rustlib/manifest-* | | 208 | ${RM} -f ${DESTDIR}${PREFIX}/lib/rustlib/manifest-* |
209 | ${RM} -f ${DESTDIR}${PREFIX}/lib/rustlib/uninstall.sh | | 209 | ${RM} -f ${DESTDIR}${PREFIX}/lib/rustlib/uninstall.sh |
210 | | | 210 | |
211 | .if ${OPSYS} == "Darwin" | | 211 | .if ${OPSYS} == "Darwin" |
212 | .PHONY: fix-darwin-install-name | | 212 | .PHONY: fix-darwin-install-name |
213 | post-install: fix-darwin-install-name | | 213 | post-install: fix-darwin-install-name |
214 | fix-darwin-install-name: | | 214 | fix-darwin-install-name: |
215 | . for bin in clippy-driver miri rls rustc rustdoc | | 215 | . for bin in clippy-driver miri rls rust-analyzer rustc rustdoc |
216 | otool -XL ${DESTDIR}${PREFIX}/bin/${bin} \ | | 216 | otool -XL ${DESTDIR}${PREFIX}/bin/${bin} \ |
217 | | ${GREP} '@rpath' | while read rpath rest; do \ | | 217 | | ${GREP} '@rpath' | while read rpath rest; do \ |
218 | install_name_tool -change $$rpath \ | | 218 | install_name_tool -change $$rpath \ |
219 | `${ECHO} $$rpath | ${SED} -e 's,@rpath,${PREFIX}/lib,g'` \ | | 219 | `${ECHO} $$rpath | ${SED} -e 's,@rpath,${PREFIX}/lib,g'` \ |
220 | ${DESTDIR}${PREFIX}/bin/${bin}; \ | | 220 | ${DESTDIR}${PREFIX}/bin/${bin}; \ |
221 | done | | 221 | done |
222 | . endfor | | 222 | . endfor |
223 | . for bin in lldb lldb-mi llvm-nm llvm-objcopy llvm-objdump \ | | 223 | . for bin in lldb lldb-mi llvm-nm llvm-objcopy llvm-objdump \ |
224 | llvm-profdata llvm-readobj llvm-size llvm-strip | | 224 | llvm-profdata llvm-readobj llvm-size llvm-strip |
225 | otool -XL ${DESTDIR}${PREFIX}/lib/rustlib/${RUST_ARCH}/bin/${bin} \ | | 225 | otool -XL ${DESTDIR}${PREFIX}/lib/rustlib/${RUST_ARCH}/bin/${bin} \ |
226 | | ${GREP} '@rpath' | while read rpath rest; do \ | | 226 | | ${GREP} '@rpath' | while read rpath rest; do \ |
227 | install_name_tool -change $$rpath \ | | 227 | install_name_tool -change $$rpath \ |
228 | `${ECHO} $$rpath | ${SED} -e 's,@rpath,${PREFIX}/lib/rustlib/${RUST_ARCH}/lib,g'` \ | | 228 | `${ECHO} $$rpath | ${SED} -e 's,@rpath,${PREFIX}/lib/rustlib/${RUST_ARCH}/lib,g'` \ |