Bug 97144

Summary: Fix pkg-plist of x11-toolkits/py-wxPython26
Product: Ports & Packages Reporter: Neal Nelson <neal>
Component: Individual Port(s)Assignee: Stefan Walter <stefan>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Neal Nelson 2006-05-11 18:10:12 UTC
	The file wx.pth is created if no other wxPython version is installed but it not
deleted on port removal. On deinstallation the path of the version being
deinstalled should be removed from the file and if the file contains no other
paths it should be deleted.

Fix: 

RUN_DEPENDS=   ${PYTHON_SITELIBDIR}/OpenGL/__init__.py:${PORTSDIR}/graphics/py-opengl

+BROKEN=                Incomplete pkg-plist
+
 WRKSRC=                ${WRKDIR}/${DISTNAME}/wxPython

 USE_GMAKE=     yes--kZkc6y0unElee2hu0cDJAfp0gLBAtjjos4IKRt5BqApTlcJj
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- pkg-plist.orig   Thu May 11 18:01:48 2006
+++ pkg-plist   Thu May 11 16:24:34 2006
@@ -824,4 +824,3 @@
 @dirrm %%PYTHON_SITELIBDIR%%/%%WX_PYTHON_DIR%%
 @exec echo %%WX_PYTHON_DIR%% >> %D/%%PYTHON_SITELIBDIR%%/wx.pth 2>/dev/null || true
 @exec chmod 0444 %D/%%PYTHON_SITELIBDIR%%/wx.pth 2>/dev/null || true
-@unexec sed -i -e /%%WX_PYTHON_DIR%%/d %D/%%PYTHON_SITELIBDIR%%/wx.pth; if [ ! -s %D/%%PYTHON_SITELIBDIR%%/wx.pth ]; then rm %D/%%PYTHON_SITELIBDIR%%/wx.pth; fi
How-To-Repeat: 	Install and deinstall the port and the file wx.pth will be in /usr/local/lib/python2.4/site-packages.
Comment 1 Stefan Walter freebsd_committer freebsd_triage 2006-05-13 20:07:20 UTC
State Changed
From-To: open->closed

Port has already been marked BROKEN.
Comment 2 Stefan Walter freebsd_committer freebsd_triage 2006-05-13 20:19:45 UTC
State Changed
From-To: closed->open

Reopen this PR. Sorry, the reversed patch confused me. 


Comment 3 Stefan Walter freebsd_committer freebsd_triage 2006-05-13 20:19:45 UTC
Responsible Changed
From-To: freebsd-ports-bugs->stefan

Take.
Comment 4 Stefan Walter freebsd_committer freebsd_triage 2006-05-13 22:40:48 UTC
State Changed
From-To: open->closed

Committed, thanks!