diff options
author | kwm <kwm@FreeBSD.org> | 2014-04-16 06:08:01 +0800 |
---|---|---|
committer | kwm <kwm@FreeBSD.org> | 2014-04-16 06:08:01 +0800 |
commit | 0af7dc22efcdaac592e6b7e8631dce9bea36c6ee (patch) | |
tree | 97fbbb2af75e3548f3135a87ff10982f6ede791f /graphics | |
parent | 2fb44acd3048f46ac5dd22ea50c041ddcee56f14 (diff) | |
download | freebsd-ports-gnome-0af7dc22efcdaac592e6b7e8631dce9bea36c6ee.tar.gz freebsd-ports-gnome-0af7dc22efcdaac592e6b7e8631dce9bea36c6ee.tar.zst freebsd-ports-gnome-0af7dc22efcdaac592e6b7e8631dce9bea36c6ee.zip |
Don't hardcode python version.
Submitted by: makc@
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/py3-cairo/Makefile | 2 | ||||
-rw-r--r-- | graphics/py3-cairo/pkg-plist | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/graphics/py3-cairo/Makefile b/graphics/py3-cairo/Makefile index 016b30e75261..2f35118b566f 100644 --- a/graphics/py3-cairo/Makefile +++ b/graphics/py3-cairo/Makefile @@ -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 diff --git a/graphics/py3-cairo/pkg-plist b/graphics/py3-cairo/pkg-plist index 1f86765cfccd..47f7c81b626c 100644 --- a/graphics/py3-cairo/pkg-plist +++ b/graphics/py3-cairo/pkg-plist @@ -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 |