Sat Dec 30 20:01:48 2023 UTC (148d)
scons4: Fix install with non-Python 3.11

Tarball has prebuild cache and it will be installed unconditionally
for Python 3.10 or 3.12, for example.
And it does not much PLIST.
Remove it.


(ryoon)
diff -r1.5 -r1.6 pkgsrc/devel/scons4/Makefile

cvs diff -r1.5 -r1.6 pkgsrc/devel/scons4/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/scons4/Makefile 2023/12/30 10:47:36 1.5
+++ pkgsrc/devel/scons4/Makefile 2023/12/30 20:01:48 1.6
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.5 2023/12/30 10:47:36 wiz Exp $ 1# $NetBSD: Makefile,v 1.6 2023/12/30 20:01:48 ryoon Exp $
2 2
3DISTNAME= SCons-4.6.0 3DISTNAME= SCons-4.6.0
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
5CATEGORIES= devel python 5CATEGORIES= devel python
6MASTER_SITES= ${MASTER_SITE_PYPI:=S/SCons/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=S/SCons/}
7EXTRACT_USING= bsdtar 7EXTRACT_USING= bsdtar
8 8
9MAINTAINER= gdt@NetBSD.org 9MAINTAINER= gdt@NetBSD.org
10HOMEPAGE= https://www.scons.org/ 10HOMEPAGE= https://www.scons.org/
11COMMENT= Python-based, open-source build system 11COMMENT= Python-based, open-source build system
12LICENSE= mit 12LICENSE= mit
13 13
14TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools 14TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
@@ -21,24 +21,27 @@ REPLACE_PYTHON+= script/scons-configure- @@ -21,24 +21,27 @@ REPLACE_PYTHON+= script/scons-configure-
21REPLACE_PYTHON+= script/sconsign 21REPLACE_PYTHON+= script/sconsign
22 22
23PYTHON_VERSIONS_INCOMPATIBLE= 27 23PYTHON_VERSIONS_INCOMPATIBLE= 27
24 24
25# XXX: not sure why this is needed exactly 25# XXX: not sure why this is needed exactly
26# but -Wl,-rpath is filtered out by buildlink from the c++ command line 26# but -Wl,-rpath is filtered out by buildlink from the c++ command line
27SUBST_CLASSES+= rflag 27SUBST_CLASSES+= rflag
28SUBST_STAGE.rflag= pre-configure 28SUBST_STAGE.rflag= pre-configure
29SUBST_FILES.rflag= SCons/Tool/gnulink.py 29SUBST_FILES.rflag= SCons/Tool/gnulink.py
30SUBST_SED.rflag= -e 's|-Wl,-rpath=|${COMPILER_RPATH_FLAG}|g' 30SUBST_SED.rflag= -e 's|-Wl,-rpath=|${COMPILER_RPATH_FLAG}|g'
31 31
32INSTALLATION_DIRS= ${PKGMANDIR}/man1 32INSTALLATION_DIRS= ${PKGMANDIR}/man1
33 33
 34post-patch:
 35 ${RM} -fr ${WRKSRC}/SCons/Tool/docbook/__pycache__
 36
34post-install: 37post-install:
35 cd ${DESTDIR}${PREFIX}/bin && ${MV} scons scons-${PYVERSSUFFIX} 38 cd ${DESTDIR}${PREFIX}/bin && ${MV} scons scons-${PYVERSSUFFIX}
36 cd ${DESTDIR}${PREFIX}/bin && ${MV} scons-configure-cache scons-configure-cache-${PYVERSSUFFIX} 39 cd ${DESTDIR}${PREFIX}/bin && ${MV} scons-configure-cache scons-configure-cache-${PYVERSSUFFIX}
37 cd ${DESTDIR}${PREFIX}/bin && ${MV} sconsign sconsign-${PYVERSSUFFIX} 40 cd ${DESTDIR}${PREFIX}/bin && ${MV} sconsign sconsign-${PYVERSSUFFIX}
38 cd ${DESTDIR}${PREFIX} && ${MV} scons.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/scons-${PYVERSSUFFIX}.1 41 cd ${DESTDIR}${PREFIX} && ${MV} scons.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/scons-${PYVERSSUFFIX}.1
39 cd ${DESTDIR}${PREFIX} && ${MV} scons-time.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/scons-time-${PYVERSSUFFIX}.1 42 cd ${DESTDIR}${PREFIX} && ${MV} scons-time.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/scons-time-${PYVERSSUFFIX}.1
40 cd ${DESTDIR}${PREFIX} && ${MV} sconsign.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/sconsign-${PYVERSSUFFIX}.1 43 cd ${DESTDIR}${PREFIX} && ${MV} sconsign.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/sconsign-${PYVERSSUFFIX}.1
41 44
42.include "../../lang/python/application.mk" 45.include "../../lang/python/application.mk"
43.include "../../lang/python/wheel.mk" 46.include "../../lang/python/wheel.mk"
44.include "../../mk/bsd.pkg.mk" 47.include "../../mk/bsd.pkg.mk"