pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/rust



Module Name:    pkgsrc
Committed By:   rillig
Date:           Sat Jan 13 23:21:58 UTC 2024

Modified Files:
        pkgsrc/lang/rust: Makefile

Log Message:
lang/rust: remove references to build-time DESTDIR

When the package is installed, the temporary DESTDIR directory doesn't
exist anymore, so there's no point referring to it.

Bump PKGREVISION.


To generate a diff of this commit:
cvs rdiff -u -r1.300 -r1.301 pkgsrc/lang/rust/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/Makefile
diff -u pkgsrc/lang/rust/Makefile:1.300 pkgsrc/lang/rust/Makefile:1.301
--- pkgsrc/lang/rust/Makefile:1.300     Mon Jan  8 08:16:52 2024
+++ pkgsrc/lang/rust/Makefile   Sat Jan 13 23:21:58 2024
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.300 2024/01/08 08:16:52 tnn Exp $
+# $NetBSD: Makefile,v 1.301 2024/01/13 23:21:58 rillig Exp $
 
 DISTNAME=      rustc-1.74.1-src
 PKGNAME=       ${DISTNAME:S/rustc/rust/:S/-src//}
 CATEGORIES=    lang
+PKGREVISION=   1
 MASTER_SITES=  https://static.rust-lang.org/dist/
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
@@ -578,6 +579,11 @@ do-install:
        ${SETENV} ${MAKE_ENV} ${INSTALL_ENV}                            \
                ${PYTHONBIN} ./x.py -v install -j ${_MAKE_JOBS_N}
 
+SUBST_CLASSES+=                destdir
+SUBST_STAGE.destdir=   post-install
+SUBST_FILES.destdir=   ${DESTDIR}${PREFIX}/lib/rustlib/manifest-*
+SUBST_SED.destdir=     -e 's|file:${DESTDIR}${PREFIX}|file:${PREFIX}|'
+
 GENERATE_PLIST+=       ${FIND} ${DESTDIR}${PREFIX} \( -type f -o -type l \) -print | \
                        ${SED} -e 's,${DESTDIR}${PREFIX}/,,' | ${SORT} ;
 



Home | Main Index | Thread Index | Old Index