I’m installing the pecl library to add svn functions in php:

apt-get install libsvn-dev
pecl install channel://pecl.php.net/svn-0.2

Doh:

checking for svn includes... configure: error: failed to find apr.h

http://pecl.php.net/bugs/bug.php?id=10811&edit=1

cvs -d:pserver:cvsread@cvs.php.net:/repository co pecl/svn

cd pecl/svn

pecl install package2.xml

This would make a good debian package as well.