pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
sip5: fix creation of sip5 script.
Module Name: pkgsrc-wip
Committed By: Olaf Seibert <rhialto%falu.nl@localhost>
Pushed By: rhialto
Date: Mon Jan 17 21:28:07 2022 +0100
Changeset: 8e9760f5f30b25f5beaf37465c50941ff0a28e9c
Modified Files:
py-sip5/Makefile
Log Message:
sip5: fix creation of sip5 script.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=8e9760f5f30b25f5beaf37465c50941ff0a28e9c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
py-sip5/Makefile | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diffs:
diff --git a/py-sip5/Makefile b/py-sip5/Makefile
index 242ddd8ec6..f5836e006e 100644
--- a/py-sip5/Makefile
+++ b/py-sip5/Makefile
@@ -17,14 +17,14 @@ DEPENDS+= ${PYPKGPREFIX}-toml>=0:../../textproc/py-toml
USE_LANGUAGES= c c++
-CLI= build distinfo install module sdist sip5 wheel
+CLI= build distinfo install module sdist wheel
MODULE.build= sipbuild.tools.build
MODULE.distinfo= sipbuild.distinfo.main
MODULE.install= sipbuild.tools.install
MODULE.module= sipbuild.module.main
MODULE.sdist= sipbuild.tools.sdist
-MODULE.sip5= sipbuild.legacy.sip5
MODULE.wheel= sipbuild.tools.wheel
+MODULE.sip5= sipbuild.legacy.sip5
# Overwrite the console scripts with versions that don't fail
# when sip-4.* is also installed.
@@ -35,6 +35,10 @@ post-install:
${ECHO} "from ${MODULE.${cli}} import main; sys.exit(main());"; \
} > ${DESTDIR}${PREFIX}/bin/sip-${cli}
.endfor
+ { ${ECHO} "#!${PYTHONBIN}"; \
+ ${ECHO} "import sys"; \
+ ${ECHO} "from ${MODULE.sip5} import main; sys.exit(main());"; \
+ } > ${DESTDIR}${PREFIX}/bin/sip5
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index