pkgsrc-WIP-changes archive

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

xonsh: Fix xon.sh, add PKG_SHELL



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Sun Aug 21 01:56:58 2016 +0200
Changeset:	63da4c135e574e6682557da74003b8a6f12a76ca

Modified Files:
	xonsh/Makefile

Log Message:
xonsh: Fix xon.sh, add PKG_SHELL

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

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

diffstat:
 xonsh/Makefile | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diffs:
diff --git a/xonsh/Makefile b/xonsh/Makefile
index 218b7b9..a4161b3 100644
--- a/xonsh/Makefile
+++ b/xonsh/Makefile
@@ -13,9 +13,18 @@ USE_LANGUAGES=	# none
 
 PYTHON_VERSIONS_INCOMPATIBLE=	27
 
-DEPENDS+=	${PYPKGPREFIX}-prompt_toolkit-[0-9]*:../../wip/py-prompt_toolkit
 DEPENDS+=	${PYPKGPREFIX}-ply-[0-9]*:../../devel/py-ply
+DEPENDS+=	${PYPKGPREFIX}-prompt_toolkit-[0-9]*:../../wip/py-prompt_toolkit
 DEPENDS+=	${PYPKGPREFIX}-pygments-[0-9]*:../../textproc/py-pygments
 
+PKG_SHELL=	${PREFIX}/bin/xon.sh
+PKG_SHELL+=	${PREFIX}/bin/xonsh
+
+SUBST_CLASSES+=		xonsh
+SUBST_STAGE.xonsh=	post-patch
+SUBST_FILES.xonsh=	scripts/xon.sh
+SUBST_SED.xonsh=	-e 's,python3,${PYTHONBIN},'
+#SUBST_SED.xonsh+=	-e 's, xonsh , ${PREFIX}/xonsh ,'
+
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"


Home | Main Index | Thread Index | Old Index