# $Id: Portfile,v 1.5 2006/03/14 05:58:17 joe Exp $
PortSystem		1.0

name			wordpress
version			2.0.2
categories		www
maintainers		joe@netmusician.org
description		A state-of-the-art semantic personal publishing platform
long_description	WordPress is a state-of-the-art semantic personal publishing platform \
			with a focus on aesthetics, web standards, and usability.
homepage		http://www.wordpress.org
master_sites		${homepage}
distname		latest
checksums		md5 8779681ae7e8667154fe599f0261cc7b
platforms		darwin freebsd

depends_lib		port:apache2 port:php5 port:mysql5

variant apache conflicts apache2 {
	depends_lib-append	port:apache
	depends_lib-delete	port:apache2
}

variant php4 {
	depends_lib-append 	port:php4
	depends_lib-delete	port:php5
}

variant mysql3 conflicts mysql4 {
	depends_lib-append	port:mysql3
	depends_lib-delete	port:mysql5
}

variant mysql4 conflicts mysql3 {
	depends_lib-append	port:mysql4
	depends_lib-delete	port:mysql5
}

set docpath ${destroot}${prefix}/www/data
             
use_configure   no
configure		{}
build			{}

destroot {
	xinstall -d -m 0755 ${docpath}/wordpress
	eval file copy [glob ${workpath}/wordpress/*] ${docpath}/wordpress
}


