From efe165c4fd87c46a23a5ddc58c2af10fd5dd4a03 Mon Sep 17 00:00:00 2001 From: Marcus von Appen Date: Sun, 8 Dec 2013 13:36:11 +0000 Subject: [PATCH] - Fix the usage of 'python' to get rid of the implicit lang/python dependency Approved by: portmgr (blanket) --- www/py-djblets/Makefile | 5 +++++ x11-clocks/gdesklets-clock/Makefile | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/www/py-djblets/Makefile b/www/py-djblets/Makefile index 9fdc1fbd2627..2008ca003fb8 100644 --- a/www/py-djblets/Makefile +++ b/www/py-djblets/Makefile @@ -21,9 +21,14 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django>=1.4.2<1.5:${PORTSDIR}/www/py-django1 ${PYTHON_PKGNAMEPREFIX}imaging>0:${PORTSDIR}/graphics/py-imaging \ ${PYTHON_PKGNAMEPREFIX}pytz>0:${PORTSDIR}/devel/py-pytz +USES= shebangfix USE_PYTHON= -2.7 USE_PYDISTUTILS= easy_install PYDISTUTILS_PKGNAME= Djblets +python_OLD_CMD= /usr/bin/env python +python_CMD= ${PYTHON_CMD} +SHEBANG_FILES= contrib/internal/build-media.py + NO_STAGE= yes .include diff --git a/x11-clocks/gdesklets-clock/Makefile b/x11-clocks/gdesklets-clock/Makefile index e9ddb89c5b7d..9fdd8e8a91e6 100644 --- a/x11-clocks/gdesklets-clock/Makefile +++ b/x11-clocks/gdesklets-clock/Makefile @@ -13,7 +13,7 @@ COMMENT= Various clock displays for Gnome 2.x RUN_DEPENDS= gdesklets:${PORTSDIR}/deskutils/gdesklets -USE_PYTHON= yes +USE_PYTHON= 2 SUB_FILES= pkg-message SUB_LIST= NAME="${NAME}" @@ -25,7 +25,7 @@ LANG= de fr pt sq sr sr@Latn sv NO_STAGE= yes do-build: - @${WRKSRC}/Install_${NAME}_Sensor.bin --nomsg ${WRKSRC} + @${PYTHON_CMD} ${WRKSRC}/Install_${NAME}_Sensor.bin --nomsg ${WRKSRC} @${PATCH} ${WRKSRC}/Clock/__init__.py < ${FILESDIR}/Clock::__init__.py do-install: