summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormezz <mezz@FreeBSD.org>2006-10-05 19:29:41 +0000
committermezz <mezz@FreeBSD.org>2006-10-05 19:29:41 +0000
commitf03b3bfa2bf6cf94e7701adf85902726e292b8b6 (patch)
treecb6ac4718b0d996f5d27ea089f09c7c84b0ea6f1
parent0a122b15604246dd25f1c4a29f9740bfd4c9584a (diff)
downloadFreeBSD-ports-f03b3bfa2bf6cf94e7701adf85902726e292b8b6.zip
FreeBSD-ports-f03b3bfa2bf6cf94e7701adf85902726e292b8b6.tar.gz
Get this port to generate the .pyc and .pyo files, because other ports will
creating them and causing the plist error. See ee multimedia/quodlibet for an example. Bump the PORTREVISION. PR: ports/103985 Submitted by: Alexander Botero-Lowry <alexbl@freebsd.org>
-rw-r--r--multimedia/py-gstreamer/Makefile13
-rw-r--r--multimedia/py-gstreamer/pkg-plist2
2 files changed, 12 insertions, 3 deletions
diff --git a/multimedia/py-gstreamer/Makefile b/multimedia/py-gstreamer/Makefile
index e7227fb..5318740 100644
--- a/multimedia/py-gstreamer/Makefile
+++ b/multimedia/py-gstreamer/Makefile
@@ -7,6 +7,7 @@
PORTNAME= gstreamer
PORTVERSION= 0.10.5
+PORTREVISION= 1
CATEGORIES= multimedia python gnome
MASTER_SITES= http://gstreamer.freedesktop.org/src/gst-python/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -21,9 +22,7 @@ RUN_DEPENDS= ${PYTHON_SITELIBDIR}/libxml2mod.so:${PORTSDIR}/textproc/py-libxml2
USE_PYTHON= yes
USE_BZIP2= yes
USE_GMAKE= yes
-USE_GNOME= pygtk2 \
- gnomehack \
- pkgconfig
+USE_GNOME= pygtk2 gnomehack pkgconfig
USE_GSTREAMER= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include" \
@@ -32,4 +31,12 @@ CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include" \
post-patch:
@${REINPLACE_CMD} -e 's|DLFCN|dl|g' ${WRKSRC}/gst/__init__.py
+post-build:
+ @cd ${WRKSRC} && ${PYTHON_CMD} -OOOO -c 'import pygst' && \
+ ${PYTHON_CMD} -c 'import pygst'
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/pygst.pyo ${PYTHON_SITELIBDIR}
+ ${INSTALL_DATA} ${WRKSRC}/pygst.pyc ${PYTHON_SITELIBDIR}
+
.include <bsd.port.mk>
diff --git a/multimedia/py-gstreamer/pkg-plist b/multimedia/py-gstreamer/pkg-plist
index 2d92834..6748d9d 100644
--- a/multimedia/py-gstreamer/pkg-plist
+++ b/multimedia/py-gstreamer/pkg-plist
@@ -19,6 +19,8 @@
%%PYTHON_SITELIBDIR%%/gst-0.10/gst/interfaces.so
%%PYTHON_SITELIBDIR%%/pygst.pth
%%PYTHON_SITELIBDIR%%/pygst.py
+%%PYTHON_SITELIBDIR%%/pygst.pyc
+%%PYTHON_SITELIBDIR%%/pygst.pyo
libdata/pkgconfig/gst-python-0.10.pc
share/gst-python/0.10/defs/base.defs
share/gst-python/0.10/defs/gst-extrafuncs.defs
OpenPOWER on IntegriCloud