From owner-freebsd-multimedia@FreeBSD.ORG Wed Oct 4 17:35:29 2006 Return-Path: X-Original-To: multimedia@freebsd.org Delivered-To: freebsd-multimedia@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 087BE16A40F; Wed, 4 Oct 2006 17:35:29 +0000 (UTC) (envelope-from alex@foxybanana.com) Received: from ultrasuede.reed.edu (ultrasuede.reed.edu [134.10.2.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id B065943D45; Wed, 4 Oct 2006 17:35:28 +0000 (GMT) (envelope-from alex@foxybanana.com) Received: from Laptop.mine.box (c038h213.dorm.reed.edu [134.10.38.213]) by ultrasuede.reed.edu (8.13.7/8.13.7) with ESMTP id k94HZOeq014622 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NOT); Wed, 4 Oct 2006 10:35:24 -0700 Received: from Laptop.mine.box (localhost [127.0.0.1]) by Laptop.mine.box (8.13.6/8.13.6) with ESMTP id k94HYc4t000239; Wed, 4 Oct 2006 10:34:38 -0700 (PDT) (envelope-from alex@localhost.my.domain) Received: (from alex@localhost) by Laptop.mine.box (8.13.6/8.13.6/Submit) id k94HYc8E000238; Wed, 4 Oct 2006 10:34:38 -0700 (PDT) (envelope-from alex) Date: Wed, 4 Oct 2006 10:34:38 -0700 (PDT) Message-Id: <200610041734.k94HYc8E000238@Laptop.mine.box> To: FreeBSD-gnats-submit@freebsd.org From: Alexander Botero-Lowry X-send-pr-version: 3.113 X-GNATS-Notify: X-Scanned-By: MIMEDefang 2.57 on 134.10.2.46 Cc: multimedia@freebsd.org Subject: [PATCH] multimedia/py-gstreamer: installed cached python files so as not to cause plist problems for other ports X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Oct 2006 17:35:29 -0000 >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 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 ---