[PATCH] multimedia/py-gstreamer: installed cached python files so as not to cause plist problems for other ports

Alexander Botero-Lowry alexbl at freebsd.org
Wed Oct 4 10:35:29 PDT 2006


>Submitter-Id:	current-users
>Originator:	Alexander Botero-Lowry
>Organization:	
>Confidential:	no 
>Synopsis:	[PATCH] multimedia/py-gstreamer: installed cached python files so as not to cause plist problems for other ports
>Severity:	non-critical
>Priority:	low
>Category:	ports 
>Class:		change-request
>Release:	FreeBSD 6.1-STABLE i386
>Environment:
System: FreeBSD Laptop.mine.box 6.1-STABLE FreeBSD 6.1-STABLE #1: Mon Jul 10 22:43:23 CDT 2006
>Description:
Basically since .pyc and .pyo files were not installed, it was causing problems
for some ports because they would generate these files during their 
configuration phase (see multimedia/quodlibet for an example)

>How-To-Repeat:
>Fix:

--- py24-gstreamer-0.10.5.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/multimedia/py-gstreamer/Makefile,v
retrieving revision 1.21
diff -u -u -r1.21 Makefile
--- Makefile	21 Jul 2006 16:37:41 -0000	1.21
+++ Makefile	4 Oct 2006 17:33:32 -0000
@@ -32,4 +32,12 @@
 post-patch:
 	@${REINPLACE_CMD} -e 's|DLFCN|dl|g' ${WRKSRC}/gst/__init__.py
 
+pre-install:
+	@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>
Index: pkg-plist
===================================================================
RCS file: /home/ncvs/ports/multimedia/py-gstreamer/pkg-plist,v
retrieving revision 1.6
diff -u -u -r1.6 pkg-plist
--- pkg-plist	17 May 2006 19:39:12 -0000	1.6
+++ pkg-plist	4 Oct 2006 17:33:32 -0000
@@ -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
--- py24-gstreamer-0.10.5.patch ends here ---



More information about the freebsd-multimedia mailing list