diff --git a/buildout/software-profiles/erp5-2.12.cfg b/buildout/software-profiles/erp5-2.12.cfg
index cc20ddf9609e38290974113f687c4479277150d3..027dbb0b3e78bf18c0f0a7042435b8b5b3e48865 100644
--- a/buildout/software-profiles/erp5-2.12.cfg
+++ b/buildout/software-profiles/erp5-2.12.cfg
@@ -6,6 +6,7 @@ extends =
   lxml-python.cfg
   mysql-python.cfg
   python-ldap-python.cfg
+  pysvn-python.cfg
   subversion.cfg
   git.cfg
   glib.cfg
@@ -97,6 +98,7 @@ eggs =
   ${mysql-python:egg}
   ${lxml-python:egg}
   ${python-ldap-python:egg}
+  ${pysvn-python:egg}
   PyXML
   SOAPpy
   cElementTree
@@ -109,7 +111,6 @@ eggs =
   ordereddict
   paramiko
   ply
-  pysvn
   python-memcached
   pytz
   simplejson
diff --git a/buildout/software-profiles/pysvn-python.cfg b/buildout/software-profiles/pysvn-python.cfg
index 319d7434fb15f7a61f9de4f8e80d5f58c40977cc..1fb2c0f1bf156b3d6bcba9737656ab31dda461f1 100644
--- a/buildout/software-profiles/pysvn-python.cfg
+++ b/buildout/software-profiles/pysvn-python.cfg
@@ -1,27 +1,25 @@
 [buildout]
 extends =
-  ../software-profiles/subversion.cfg
   ../software-profiles/libexpat.cfg
+  ../software-profiles/neon.cfg
   ../software-profiles/openssl.cfg
+  ../software-profiles/subversion.cfg
 
 parts =
   pysvn-python
 
-[pysvn-python-download]
-recipe = hexagonit.recipe.download
-url = http://pysvn.barrys-emacs.org/source_kits/pysvn-1.7.4.tar.gz
-md5sum = d60e4356bce77bf3b89fd163ab3d9e95
-strip-top-level-dir = true
-
 [pysvn-python]
-recipe = plone.recipe.command
-stop-on-error = true
-location = ${buildout:parts-directory}/${:_buildout_section_name_}
-command =
-  cd ${pysvn-python-download:location} &&
-  ${buildout:executable} setup.py egg_info &&
-  cd Source &&
-  ${buildout:executable} setup.py configure --svn-inc-dir=${subversion:location}/include/subversion-1/ --apr-inc-dir=${apache:location}/include/ --svn-lib-dir=${subversion:location}/lib/ --apr-lib-dir=${apache:location}/lib/ &&
-  make clean &&
-  make LDLIBS="-L${subversion:location}/lib -Wl,--rpath -Wl,${subversion:location}/lib -L${openssl:location}/lib -L/lib64 -Wl,--rpath -Wl,${openssl:location}/lib -L${libexpat:location}/lib -Wl,--rpath -Wl,${libexpat:location}/lib -lsvn_client-1 -lsvn_diff-1 -lsvn_repos-1 -lcom_err -lresolv -lexpat -lneon -lssl" &&
-  exit 1
+recipe = zc.recipe.egg:custom
+egg =
+  pysvn
+include-dirs =
+  ${subversion:location}/include/subversion-1
+  ${apache:location}/include
+library-dirs =
+  ${subversion:location}/lib
+  ${apache:location}/lib
+  ${neon:location}/lib
+  ${libexpat:location}/lib
+  ${openssl:location}/lib
+# heavily patched version that supports --include-dirs and --library-dirs
+find-links = http://www.nexedi.org/static/packages/source/pysvn-1.7.4nxd001.tar.gz