# $Id: Portfile 57447 2009-09-11 07:49:08Z blb@macports.org $

PortSystem 1.0
PortGroup python24 1.0

name			py-svn
version			1.5.1
categories		python devel
maintainers		gmail.com:yunzheng.hu
platforms		darwin
description		Python Subversion Extension (pysvn)
long_description	The pysvn module is a python interface to the \
			Subversion version control system. This API exposes \
			client interfaces for managing a working copy, \
			querying a repository, and synchronizing the two.

homepage		http://pysvn.tigris.org/

master_sites		http://pysvn.tigris.org/files/documents/1233/36248
distname		pysvn-${version}
checksums		md5 692b33cb82e2446c051df358d61b349a \
			sha1 1f24b5b18bf93fc978afca049a219128c372ca57

depends_lib		port:python24 \
			port:subversion

patchfiles              patch-setup.py

use_configure		yes
configure.cmd		cd Source && ${python.bin} setup.py configure

build.cmd		cd Source && make
build.target		all

destroot {
	file mkdir ${destroot}${python.pkgd}
	file copy ${worksrcpath}/Source/pysvn ${destroot}${python.pkgd}

	file mkdir ${destroot}${prefix}/share/doc/${name}/examples
	eval file copy [glob ${worksrcpath}/Examples/*] \
		${destroot}${prefix}/share/doc/${name}/examples
	eval file copy [glob ${worksrcpath}/Docs/*] \
		${destroot}${prefix}/share/doc/${name}
}
