pkgsrc-WIP-changes archive

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

py-sip6: overwrite stupid CLI wrappers



Module Name:	pkgsrc-wip
Committed By:	Olaf Seibert <rhialto%falu.nl@localhost>
Pushed By:	rhialto
Date:		Sat Jan 15 22:29:46 2022 +0100
Changeset:	cc36d7bc947f203f40d24fff6e1cbe668bb1d6c5

Modified Files:
	py-sip6/Makefile

Log Message:
py-sip6: overwrite stupid CLI wrappers

that are way too abstract for their own good, pretty incomprehensible,
and broken,
and replace them with something simple that works.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=cc36d7bc947f203f40d24fff6e1cbe668bb1d6c5

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-sip6/Makefile | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diffs:
diff --git a/py-sip6/Makefile b/py-sip6/Makefile
index 7231742958..60447d208b 100644
--- a/py-sip6/Makefile
+++ b/py-sip6/Makefile
@@ -17,5 +17,20 @@ DEPENDS+=	${PYPKGPREFIX}-toml>=0:../../textproc/py-toml
 
 USE_LANGUAGES=	c c++
 
+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.wheel=		sipbuild.tools.wheel
+
+post-install:
+.for cli in ${CLI}
+	{ echo "#!${PYTHONBIN}"; \
+	  echo "from ${MODULE.${cli}} import main; main();"; \
+	} > ${DESTDIR}${PREFIX}/bin/sip-${cli} ;
+.endfor
+
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"


Home | Main Index | Thread Index | Old Index