- Fix the usage of 'python' to get rid of the implicit lang/python

dependency

Approved by:	portmgr (blanket)
This commit is contained in:
Marcus von Appen 2013-12-08 13:36:11 +00:00
parent 8d46303f76
commit efe165c4fd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=335893
2 changed files with 7 additions and 2 deletions

View file

@ -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 <bsd.port.mk>

View file

@ -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: