Fix world-writable files.
authorBryan Østergaard <kloeri@gentoo.org>
Fri, 14 Oct 2005 21:40:42 +0000 (21:40 +0000)
committerBryan Østergaard <kloeri@gentoo.org>
Fri, 14 Oct 2005 21:40:42 +0000 (21:40 +0000)
Package-Manager: portage-2.0.53_rc5

dev-util/spe/ChangeLog
dev-util/spe/Manifest
dev-util/spe/files/digest-spe-0.5.1f-r1 [new file with mode: 0644]
dev-util/spe/files/spe-0.5-wxversion.patch [new file with mode: 0644]
dev-util/spe/spe-0.5.1f-r1.ebuild [new file with mode: 0644]

index 57719514fd6e068e1581d4aa76478aeed7087025..1d900fa364a2282bb979d269f9a7f4b8af1b3f29 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for dev-util/spe
 # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/spe/ChangeLog,v 1.20 2005/10/12 00:27:40 kloeri Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/spe/ChangeLog,v 1.21 2005/10/14 21:40:42 kloeri Exp $
+
+*spe-0.5.1f-r1 (14 Oct 2005)
+
+  14 Oct 2005; Bryan Østergaard <kloeri@gentoo.org>
+  +files/spe-0.5-wxversion.patch, +spe-0.5.1f-r1.ebuild:
+  Fix world-writable files.
 
 *spe-0.7.5c-r1 (12 Oct 2005)
 
index 8aac7e70b1a0fc56388e68b5be925ba3e625b91c..5fafcf0ebfe7e6b0584a86b72a09b4023ff4f62a 100644 (file)
@@ -1,19 +1,22 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
-MD5 636e369d48d41e41d2c7b84eb8059097 ChangeLog 2646
+MD5 75f20209b6ea71fa6bf09407e4bb36d5 ChangeLog 2815
 MD5 666d9771d3bb00e2801ad24e472ec7d3 files/digest-spe-0.5.1a 82
 MD5 d7b222aad27177169608286ea0e18ac9 files/digest-spe-0.5.1d 82
 MD5 0465e3df590b254707522e5b1d2eb64c files/digest-spe-0.5.1f 82
+MD5 0465e3df590b254707522e5b1d2eb64c files/digest-spe-0.5.1f-r1 82
 MD5 0465e3df590b254707522e5b1d2eb64c files/digest-spe-0.7.1a 82
 MD5 f4455c7c456733c72a20607cd8fd816c files/digest-spe-0.7.3a 79
 MD5 12fe3da8220d813faf70e795be8100b0 files/digest-spe-0.7.5c 82
 MD5 12fe3da8220d813faf70e795be8100b0 files/digest-spe-0.7.5c-r1 82
+MD5 9e19b6c6f4e141a573f8c9ae85073bce files/spe-0.5-wxversion.patch 3346
 MD5 4fd2cfdfd8c5bd78ead70447170c95ba files/spe-wxversion.patch 214
 MD5 84b0a8b787ec8c3b89836eb571eda5f9 files/spe_setup.patch 277
 MD5 6ebeaaff1d72f4b710a98339cbf235fc metadata.xml 372
 MD5 8527d184a4526c21f70121beeb67a663 spe-0.5.1a.ebuild 1092
 MD5 87cad5a12aa85e82e81660fdda67e8ed spe-0.5.1d.ebuild 1540
+MD5 edcc392938c043038d377a4d723d0fd2 spe-0.5.1f-r1.ebuild 1748
 MD5 d3c2b48e745d650ba5071fb056c763ed spe-0.5.1f.ebuild 1662
 MD5 1489276d327666c728696f3d4dd0d6e0 spe-0.7.1a.ebuild 1663
 MD5 b304e15e9d9a178d5339c40b3ae196fb spe-0.7.3a.ebuild 1625
@@ -22,7 +25,7 @@ MD5 54e6aa7898ff7f7e5c5919558fe265d4 spe-0.7.5c.ebuild 1561
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.2 (GNU/Linux)
 
-iD8DBQFDTFiNKf2g/qXtneoRAuKVAJ9xSP9K/UFgu913FSRWzFwks+pMSgCgghdI
-TUoB3uQBMhjQ50RyUhd2GEU=
-=s0cK
+iD8DBQFDUCXoKf2g/qXtneoRAqtoAJ9Xeabxg++QlV2ME4vPYvE0LzztUwCeKtF7
+LSRl2es/kxCm3K52BzGkK2M=
+=FVNH
 -----END PGP SIGNATURE-----
diff --git a/dev-util/spe/files/digest-spe-0.5.1f-r1 b/dev-util/spe/files/digest-spe-0.5.1f-r1
new file mode 100644 (file)
index 0000000..923017a
--- /dev/null
@@ -0,0 +1 @@
+MD5 665f7fc694210388562bb1ea24c40d59 SPE-0.5.1.f-wx2.4.2.4.-bl2.31.tar.gz 1488288
diff --git a/dev-util/spe/files/spe-0.5-wxversion.patch b/dev-util/spe/files/spe-0.5-wxversion.patch
new file mode 100644 (file)
index 0000000..dbcf52b
--- /dev/null
@@ -0,0 +1,81 @@
+diff -urN SPE-0.5.1.d-wx2.4.2.4.-bl2.31.orig/build/lib/_spe/Child.py SPE-0.5.1.d-wx2.4.2.4.-bl2.31/build/lib/_spe/Child.py
+--- SPE-0.5.1.d-wx2.4.2.4.-bl2.31.orig/build/lib/_spe/Child.py 2004-05-16 11:33:00.000000000 +0200
++++ SPE-0.5.1.d-wx2.4.2.4.-bl2.31/build/lib/_spe/Child.py      2005-10-14 23:25:11.262667750 +0200
+@@ -11,6 +11,8 @@
+ ####Modules---------------------------------------------------------------------\r
+ import os, sys, re, time\r
+ \r
++import wxversion\r
++wxversion.select("2.4")\r
+ import wx\r
+ from wx.lib.evtmgr import eventManager\r
+ \r
+@@ -795,4 +797,4 @@
+         if fileNames:\r
+             self.openList(fileNames)\r
+             return 1\r
+-        else:return 0
+\ No newline at end of file
++        else:return 0\r
+diff -urN SPE-0.5.1.d-wx2.4.2.4.-bl2.31.orig/build/lib/_spe/info.py SPE-0.5.1.d-wx2.4.2.4.-bl2.31/build/lib/_spe/info.py
+--- SPE-0.5.1.d-wx2.4.2.4.-bl2.31.orig/build/lib/_spe/info.py  2004-05-16 11:33:05.000000000 +0200
++++ SPE-0.5.1.d-wx2.4.2.4.-bl2.31/build/lib/_spe/info.py       2005-10-14 23:25:35.216164750 +0200
+@@ -81,6 +81,8 @@
+ except:\r
+     pass\r
+ if isnotroot:\r
++    import wxversion\r
++    wxversion.select("2.4")\r
+     import wx\r
+     INFO['wxVersionC'] = '.'.join([str(x)for x in wx.VERSION])\r
+ \r
+diff -urN SPE-0.5.1.d-wx2.4.2.4.-bl2.31.orig/build/lib/_spe/Parent.py SPE-0.5.1.d-wx2.4.2.4.-bl2.31/build/lib/_spe/Parent.py
+--- SPE-0.5.1.d-wx2.4.2.4.-bl2.31.orig/build/lib/_spe/Parent.py        2004-05-16 11:33:05.000000000 +0200
++++ SPE-0.5.1.d-wx2.4.2.4.-bl2.31/build/lib/_spe/Parent.py     2005-10-14 23:25:57.333547000 +0200
+@@ -14,6 +14,8 @@
+ import sm.scriptutils,sm.wxp\r
+ \r
+ #---wxPython\r
++import wxversion\r
++wxversion.select("2.4")\r
+ import wx\r
+ import wx.stc\r
+ from wx.lib.evtmgr import eventManager\r
+diff -urN SPE-0.5.1.d-wx2.4.2.4.-bl2.31.orig/build/lib/_spe/shortcuts.py SPE-0.5.1.d-wx2.4.2.4.-bl2.31/build/lib/_spe/shortcuts.py
+--- SPE-0.5.1.d-wx2.4.2.4.-bl2.31.orig/build/lib/_spe/shortcuts.py     2004-05-16 11:33:18.000000000 +0200
++++ SPE-0.5.1.d-wx2.4.2.4.-bl2.31/build/lib/_spe/shortcuts.py  2005-10-14 23:26:18.254854500 +0200
+@@ -7,6 +7,8 @@
+ \r
+ __doc__=INFO['doc']%INFO\r
+ #_______________________________________________________________________________\r
++import wxversion\r
++wxversion.select("2.4")\r
+ import wx\r
+ #import wx.help\r
+ \r
+@@ -48,4 +50,4 @@
+     elif key==wx.WXK_F12    and not control and not alt: self.menuViewShell(event)\r
+     elif key==wx.WXK_RETURN and     control and not alt: self.menuEditBrowseTo(event)\r
+     else:event.Skip()\r
+-    self.GetActiveChild().eventEditorPositionChange(event)
+\ No newline at end of file
++    self.GetActiveChild().eventEditorPositionChange(event)\r
+diff -urN SPE-0.5.1.d-wx2.4.2.4.-bl2.31.orig/build/lib/_spe/SPE.py SPE-0.5.1.d-wx2.4.2.4.-bl2.31/build/lib/_spe/SPE.py
+--- SPE-0.5.1.d-wx2.4.2.4.-bl2.31.orig/build/lib/_spe/SPE.py   2004-05-16 11:33:18.000000000 +0200
++++ SPE-0.5.1.d-wx2.4.2.4.-bl2.31/build/lib/_spe/SPE.py        2005-10-14 23:26:41.828327750 +0200
+@@ -23,6 +23,8 @@
+     from sm.wxp.smdi import App\r
+     import Menu,Parent,Child\r
+     try:\r
++        import wxversion\r
++      wxversion.select("2.4")\r
+         import wx\r
+         wxV='.'.join([str(x)for x in wx.VERSION])\r
+         if wxV!=INFO['wxVersion']:\r
+@@ -70,4 +72,4 @@
+     app.MainLoop()\r
+ \r
+ if __name__=='__main__':\r
+-    main(debug=DEBUG)
+\ No newline at end of file
++    main(debug=DEBUG)\r
diff --git a/dev-util/spe/spe-0.5.1f-r1.ebuild b/dev-util/spe/spe-0.5.1f-r1.ebuild
new file mode 100644 (file)
index 0000000..0cf7e8a
--- /dev/null
@@ -0,0 +1,59 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/spe/spe-0.5.1f-r1.ebuild,v 1.1 2005/10/14 21:40:42 kloeri Exp $
+
+inherit distutils eutils
+
+MY_P="SPE-0.5.1.f-wx2.4.2.4.-bl2.31"
+#MY_P2="SPE-0.5.1.d-wx2.4.2.4.-bl2.31"
+DESCRIPTION="Python IDE with Blender support"
+HOMEPAGE="http://spe.pycs.net/"
+SRC_URI="http://projects.blender.org/download.php/162/${MY_P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~ppc ~x86"
+IUSE=""
+# Upstream have mismatched versions when unpacked..
+S="${WORKDIR}/${MY_P/1.f/1.d}"
+
+DEPEND=">=virtual/python-2.2.3-r1"
+
+RDEPEND=">=dev-python/wxpython-2.4.2.4
+       >=dev-util/wxglade-0.3.2
+       >=dev-python/pychecker-0.8.13
+       ${DEPEND}"
+
+src_unpack() {
+       unpack ${A}
+       cd ${S}
+       epatch ${FILESDIR}/spe_setup.patch || die "patch failed."
+       epatch ${FILESDIR}/spe-0.5-wxversion.patch
+       # fix bug 108538
+       chmod -R go-w ${S}/*
+}
+
+src_install() {
+       distutils_src_install
+       distutils_python_version
+       SITEPATH="/usr/lib/python${PYVER}/site-packages"
+
+       dobin spe
+       rm -rf "${D}${SITEPATH}/_spe/plugins/wxGlade"
+       rm -rf "${D}${SITEPATH}/_spe/plugins/pychecker"
+       ln -svf "../../wxglade" "${D}${SITEPATH}/_spe/plugins/wxGlade"
+       dodir "${SITEPATH}/wxglade"
+       touch "${D}${SITEPATH}/wxglade/__init__.py"
+       ln -svf "../../pychecker" "${D}${SITEPATH}/_spe/plugins/pychecker"
+}
+
+pkg_postinst() {
+       distutils_python_version
+       SPEPATH="/usr/lib/python${PYVER}/site-packages"
+
+       einfo
+       einfo "To be able to use spe in blender, be sure that the path where spe is"
+       einfo "installed ($SPEPATH) is included in your PYTHONPATH"
+       einfo "environment variable. See the installation section in the manual for"
+       einfo "more information ($SPEPATH/_spe/doc/manual.pdf)."
+       einfo
+}