ports/103985: [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 17:40:14 UTC 2006


>Number:         103985
>Category:       ports
>Synopsis:       [PATCH] multimedia/py-gstreamer: installed cached python files so as not to cause plist problems for other ports
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 04 17:40:13 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Alexander Botero-Lowry
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
>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 ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list