--- Portfile.orig	2007-12-09 12:25:48.000000000 +0100
+++ Portfile	2008-01-08 09:15:35.000000000 +0100
@@ -4,8 +4,7 @@
 PortGroup python25 1.0
 
 name		deluge
-version     0.5.5
-revision	1
+version		0.5.8
 categories-append   net gnome
 maintainers nomaintainer
 description	A GNOME BitTorrent client.
@@ -16,14 +15,17 @@
 
 master_sites	http://download.deluge-torrent.org/index.php?dir=tarball/${version}/&file=
 
-checksums       md5 76c1f8110aef4131d2bc83a7da957c6a \
-                sha1 edfa4d6c1da3771bcae1331b8b6d2de4ef4cd5d8 \
-                rmd160 6dd8fd764240d42fe1961c919f81f56716d10890
+checksums       md5 afcf4fcfa3b688cb8a5cc537eb22a32e \
+                sha1 10eb38a9e7262460c39c4f145421ad64a989b298 \
+                rmd160 a6ed2ec63fb77bf8d7785fef1022439799811ba5
+worksrcdir      ${name}-torrent-${version}
 
 depends_lib-append	\
 	port:dbus-python25 \
 	port:gettext \
+	port:librsvg \
 	port:py25-gtk \
+	port:py25-hashlib \
 	port:py25-xdg \
 	port:py25-zlib \
 	port:boost
@@ -34,8 +36,3 @@
 	PYTHON_CFLAGS="-I${prefix}/include -I${prefix}/include/boost" \
 	PYTHON_LDFLAGS=-L${prefix}/lib \
 	CFLAGS="-I${prefix}/include -I${prefix}/include/boost"
-	
-post-extract {
-	reinplace "s|'python',|'python' + py_version,|" ${worksrcpath}/src/common.py
-}
-

