summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Borm (oli) <oli.borm@web.de>2009-07-22 13:00:27 +0000
committerOliver Borm (oli) <oli.borm@web.de>2009-07-22 13:00:27 +0000
commit70262f79afae91d06ca0ffa081aadde958633fd0 (patch)
treeb244e4a54ccd325957aff9a8350d3a9ea7724172
parentapp-misc/gcstar: Update dependency (Compress-Zlib got masked) (diff)
downloadsunrise-70262f79afae91d06ca0ffa081aadde958633fd0.tar.gz
sunrise-70262f79afae91d06ca0ffa081aadde958633fd0.tar.bz2
sunrise-70262f79afae91d06ca0ffa081aadde958633fd0.zip
dev-python/pyvtk: Patch to read also vtk-file versions 1 and 3
svn path=/sunrise/; revision=8865
-rw-r--r--dev-python/pyvtk/ChangeLog6
-rw-r--r--dev-python/pyvtk/Manifest5
-rw-r--r--dev-python/pyvtk/files/pyvtk-0.4.74.patch20
-rw-r--r--dev-python/pyvtk/pyvtk-0.4.74.ebuild9
4 files changed, 36 insertions, 4 deletions
diff --git a/dev-python/pyvtk/ChangeLog b/dev-python/pyvtk/ChangeLog
index 088c51d2f..8ff3a57d1 100644
--- a/dev-python/pyvtk/ChangeLog
+++ b/dev-python/pyvtk/ChangeLog
@@ -1,7 +1,11 @@
# ChangeLog for dev-python/pyvtk
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 22 Jul 2009; Oliver Borm (boroli) <oli.borm@web.de> pyvtk-0.4.74.ebuild,
+ +files/pyvtk-0.4.74.patch:
+ Patch to read also vtk-file versions 1 and 3
+
25 Feb 2008; Oliver Borm (boroli) <oli.borm@web.de> +pyvtk-0.4.74.ebuild,
+metadata.xml:
New Ebuild for bug 211448, thanks to TommyD for the comments.
diff --git a/dev-python/pyvtk/Manifest b/dev-python/pyvtk/Manifest
index df24daa35..3cbcd6ba7 100644
--- a/dev-python/pyvtk/Manifest
+++ b/dev-python/pyvtk/Manifest
@@ -1,4 +1,5 @@
+AUX pyvtk-0.4.74.patch 972 RMD160 e74d1c361c6b41a98dfec5441347fc7a661abbf2 SHA1 107e7143fa5eefc2cee0c6e6504769c90d816758 SHA256 34a197ba98c8d88e704526f435c57915acde17557542ade76a99fa280ce85116
DIST PyVTK-0.4.74.tar.gz 25700 RMD160 3c3642cbb83243bac721dbaffa191fe6582a8cf3 SHA1 672e55192ee7c4ec6e2e7616ac155bf08856877b SHA256 a34cc4660a85f4828bedf28ff2b4c95baad98fc8f79e2647c59b5ea66c9250c7
-EBUILD pyvtk-0.4.74.ebuild 431 RMD160 d7c736053241de0ed1e9691f371aab7f540aef47 SHA1 7986d9eb667a38130bda956a91cc55683d197606 SHA256 8716bf8882c7a3144262c53d81e74fc5b5566d1bee65274dab3797ac896cc364
-MISC ChangeLog 275 RMD160 229c271337c5163774ff3311e382b11b9ca1b000 SHA1 713f93d43a265c0d74cf8cecaf0d9006fc28405a SHA256 09d29456b5e6858c52703215a2eef129ca3a96ead9b2f87eeb21a1a996fcd102
+EBUILD pyvtk-0.4.74.ebuild 504 RMD160 e0d5847ad5aa5b021c443d1cf4f8123d055ce7f4 SHA1 64efe60960cc90743d708cdef98d10e59edb14f8 SHA256 07acd47c363516bc4a90771927be48c53b702733567dd8d76848172b62c07140
+MISC ChangeLog 427 RMD160 1e8ef3133c9555ef88e4132b499412be7e6f6ff5 SHA1 ecc31a674209dba36bf5fe6d822a3f66f6ddb136 SHA256 66cc297dd090bd6bfe8b9fd442ae387ea45442ee1ec837785b8f0ecd30d3263e
MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
diff --git a/dev-python/pyvtk/files/pyvtk-0.4.74.patch b/dev-python/pyvtk/files/pyvtk-0.4.74.patch
new file mode 100644
index 000000000..651c1f5ec
--- /dev/null
+++ b/dev-python/pyvtk/files/pyvtk-0.4.74.patch
@@ -0,0 +1,20 @@
+--- PyVTK-0.4.74/lib/__init__.py 2003-04-07 16:56:08.000000000 +0200
++++ PyVTK-0.4.74/lib/__init__.py 2008-12-03 18:08:35.000000000 +0100
+@@ -202,7 +202,7 @@
+ #print 'Reading file',`filename`
+ f = open(filename,'rb')
+ l = f.readline()
+- if not l.strip().replace(' ','').lower() == '#vtkdatafileversion2.0':
++ if not l.strip()[-3:] == '1.0' and not l.strip()[-3:] == '2.0' and not l.strip()[-3:] == '3.0':
+ raise TypeError, 'File '+`filename`+' is not VTK 2.0 format'
+ self.header = f.readline().rstrip()
+ format = f.readline().strip().lower()
+@@ -222,7 +222,7 @@
+ for i in range(2):
+ if only_structure: break
+ if not l: break
+- l = [s.strip() for s in l.lower().split(' ')]
++ l = [s.strip() for s in l.lower().split()]
+ assert len(l)==2 and l[0] in ['cell_data','point_data'], l[0]
+ data = l[0]
+ n = eval(l[1])
diff --git a/dev-python/pyvtk/pyvtk-0.4.74.ebuild b/dev-python/pyvtk/pyvtk-0.4.74.ebuild
index e0fd1d52b..4f5bbb271 100644
--- a/dev-python/pyvtk/pyvtk-0.4.74.ebuild
+++ b/dev-python/pyvtk/pyvtk-0.4.74.ebuild
@@ -1,7 +1,9 @@
-# Copyright 1999-2008 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
+EAPI="2"
+
inherit distutils
MY_PN="PyVTK"
@@ -17,3 +19,8 @@ SLOT="0"
IUSE=""
S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}.patch
+}