--- Portfile.orig	2009-07-11 19:44:08.000000000 +0200
+++ Portfile	2009-07-11 19:46:49.000000000 +0200
@@ -1,12 +1,13 @@
-# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $
+# $Id: Portfile 39857 2008-09-09 00:02:31Z ryandesign@macports.org $
 
 PortSystem          1.0
 PortGroup           python25 1.0
 
 name                py25-jinja
 version             1.2
+revision            1
 categories-append   devel
-maintainers         wzoeterwoude.net:rick
+maintainers         rickvanderzwet.nl:info
 description         Python based sandboxed template engine
 long_description \
     Jinja is a sandboxed template engine written in pure Python licensed\
@@ -24,4 +25,9 @@
                     sha1 46fcf22ce2a1d432296ebfe16bcf11ce17f5c097 \
                     rmd160 5b0a9ba2241e8ec6417b382384bbe3e1bf4dba8a
 
+patchfiles          patch-setup.py.diff
+post-patch {
+   reinplace "s|@@NAME@@|${name}|g" ${worksrcpath}/setup.py
+}
+
 depends_lib-append  port:py25-setuptools

