$ sudo port install subversion
If you need the Apache module install subversion with mod_dav_svn variant:
$ sudo port install subversion +mod_dav_svn
The language bindings are also available in MacPorts.
Apache 2.0 and 2.2 are provided by www/apache20 and www/apache2 correspondingly.
$ sudo port install apache2