From d3be24587bb143c2cd7276d2affbbfe22e523e30 Mon Sep 17 00:00:00 2001 From: Ruslan Makhmatkhanov Date: Sun, 6 Mar 2016 22:09:23 +0000 Subject: [PATCH] multimedia/py3-gstreamer1: fix packaging with python 3.5 PR: 204519 With hat: gnome --- multimedia/py3-gstreamer1/Makefile | 14 +++++++++++--- multimedia/py3-gstreamer1/pkg-plist | 8 ++++---- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/multimedia/py3-gstreamer1/Makefile b/multimedia/py3-gstreamer1/Makefile index b009a37efc0d..5094ea1d505f 100644 --- a/multimedia/py3-gstreamer1/Makefile +++ b/multimedia/py3-gstreamer1/Makefile @@ -25,8 +25,16 @@ PLIST_SUB= VERSION="${GST_VERSION}" CPPFLAGS+= -I${LOCALBASE}/include LIBS+= -L${LOCALBASE}/lib INSTALL_TARGET= install-strip -USE_PYTHON= py3kplist -PLIST_SUB+= PVERSION=${PYTHON_VER:S/.//} +.include + +.if ${PYTHON_REL} < 3500 +PYOEXTENSION= pyo +.else +PYOEXTENSION= opt-1.pyc +.endif -.include +PLIST_SUB+= PYOEXTENSION=${PYOEXTENSION} \ + PYVER=${PYTHON_VER:S/.//} + +.include diff --git a/multimedia/py3-gstreamer1/pkg-plist b/multimedia/py3-gstreamer1/pkg-plist index c17ce41e71ca..fc83b1c3165b 100644 --- a/multimedia/py3-gstreamer1/pkg-plist +++ b/multimedia/py3-gstreamer1/pkg-plist @@ -1,8 +1,8 @@ lib/gstreamer-1.0/libgstpythonplugin.so -%%PYTHON_SITELIBDIR%%/gi/overrides/__pycache__/Gst.cpython-%%PVERSION%%.pyc -%%PYTHON_SITELIBDIR%%/gi/overrides/__pycache__/Gst.cpython-%%PVERSION%%.pyo -%%PYTHON_SITELIBDIR%%/gi/overrides/__pycache__/GstPbutils.cpython-%%PVERSION%%.pyc -%%PYTHON_SITELIBDIR%%/gi/overrides/__pycache__/GstPbutils.cpython-%%PVERSION%%.pyo +%%PYTHON_SITELIBDIR%%/gi/overrides/__pycache__/Gst.cpython-%%PYVER%%.pyc +%%PYTHON_SITELIBDIR%%/gi/overrides/__pycache__/Gst.cpython-%%PYVER%%.%%PYOEXTENSION%% +%%PYTHON_SITELIBDIR%%/gi/overrides/__pycache__/GstPbutils.cpython-%%PYVER%%.pyc +%%PYTHON_SITELIBDIR%%/gi/overrides/__pycache__/GstPbutils.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/gi/overrides/Gst.py %%PYTHON_SITELIBDIR%%/gi/overrides/GstPbutils.py %%PYTHON_SITELIBDIR%%/gi/overrides/_gi_gst.so