diff options
author | mezz <mezz@FreeBSD.org> | 2006-10-06 03:29:41 +0800 |
---|---|---|
committer | mezz <mezz@FreeBSD.org> | 2006-10-06 03:29:41 +0800 |
commit | f03b3bfa2bf6cf94e7701adf85902726e292b8b6 (patch) | |
tree | cb6ac4718b0d996f5d27ea089f09c7c84b0ea6f1 /multimedia | |
parent | 0a122b15604246dd25f1c4a29f9740bfd4c9584a (diff) | |
download | freebsd-ports-gnome-f03b3bfa2bf6cf94e7701adf85902726e292b8b6.tar.gz freebsd-ports-gnome-f03b3bfa2bf6cf94e7701adf85902726e292b8b6.tar.zst freebsd-ports-gnome-f03b3bfa2bf6cf94e7701adf85902726e292b8b6.zip |
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>
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/py-gstreamer/Makefile | 13 | ||||
-rw-r--r-- | multimedia/py-gstreamer/pkg-plist | 2 |
2 files changed, 12 insertions, 3 deletions
diff --git a/multimedia/py-gstreamer/Makefile b/multimedia/py-gstreamer/Makefile index e7227fb2ec0f..53187407cc54 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 2d9283420ac7..6748d9d5017c 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 |