Portfile

# $Id: Portfile 22071 2007-02-17 01:07:51Z mww@macports.org $

PortSystem 1.0

name phpicalendar
version 2.22
categories www php
platforms darwin
maintainers mww@macports.org
description web-based iCal viewer
long_description PHP iCalendar is a PHP-based iCal file viewer/parser to display \
iCals in a Web browser.

homepage http://phpicalendar.net/
master_sites sourceforge
extract.suffix .tgz
checksums sha1 f65cc85b2377f523c2d3da74b5a625ca01fba363

extract.post_args "| tar -xf - --exclude=.DS_Store"

use_configure no

build {}

set conf ${prefix}/www/${name}/config.inc.php

destroot {
xinstall -m 755 -d ${destroot}${prefix}/www \
${destroot}${prefix}/share/doc/${name}
file copy ${worksrcpath}/${name} ${destroot}${prefix}/www/
foreach f { AUTHORS COPYING README TIMEZONES } {
file rename ${destroot}${prefix}/www/${name}/${f} \
${destroot}${prefix}/share/doc/${name}/${f}
}
file rename ${destroot}${conf} ${destroot}${conf}.sample
}

post-activate {
if ![file exists ${conf}] {
xinstall -m 644 ${conf}.sample ${conf}
}
}

files