1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

Don't hardcode python version.

Submitted by:	makc@
This commit is contained in:
Koop Mast 2014-04-15 22:08:01 +00:00
parent 165258bbc0
commit 4c695fef39
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=351368
2 changed files with 4 additions and 2 deletions

View File

@ -23,6 +23,8 @@ python_OLD_CMD?= /usr/bin/env python
python_CMD?= ${LOCALBASE}/bin/python${PYTHON_VER}
SHEBANG_FILES= examples/*.py examples/*/*.py test/*.py
PLIST_SUB+= PYTVER=${PYTHON_VER:S/.//}
post-patch:
@${REINPLACE_CMD} -e 's|python %s|${PYTHON_CMD} %s|g' \
${WRKSRC}/test/examples_test.py

View File

@ -1,6 +1,6 @@
include/pycairo/py3cairo.h
%%PYTHON_SITELIBDIR%%/cairo/__pycache__/__init__.cpython-33.pyc
%%PYTHON_SITELIBDIR%%/cairo/__pycache__/__init__.cpython-33.pyo
%%PYTHON_SITELIBDIR%%/cairo/__pycache__/__init__.cpython-%%PYTVER%%.pyc
%%PYTHON_SITELIBDIR%%/cairo/__pycache__/__init__.cpython-%%PYTVER%%.pyo
%%PYTHON_SITELIBDIR%%/cairo/__init__.py
%%PYTHON_SITELIBDIR%%/cairo/_cairo.so
libdata/pkgconfig/py3cairo.pc