# $Id: Portfile 66730 2010-04-21 15:57:48Z ryandesign@macports.org $ PortSystem 1.0 name websvn version 2.3.1 set file_id 47525 categories www platforms darwin maintainers ryandesign license GPLv2 homepage http://www.websvn.info/ master_sites http://websvn.tigris.org/files/documents/1380/${file_id} description web-based Subversion repository viewer in PHP long_description WebSVN offers a view onto your Subversion \ repositories designed to reflect the Subversion \ methodology. You can view the log of any file or \ directory and see a list of all the files changed, \ added or deleted in any given revision. You can \ also view the differences between two revisions of \ a file. checksums md5 5997e043a8c4fd8b25cb9f4025773cad \ sha1 f93bc73cfb2a0573f6e7c4d8cf62617573394e0e \ rmd160 a8b1e2c6e3a149da4fe17bfe4d26a880fb77196e depends_run port:php5-web \ port:php5-mbstring \ port:subversion if {[info exists supported_archs]} { supported_archs noarch } patchfiles patch-distconfig.php.diff post-patch { reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/include/distconfig.php } use_configure no build {} destroot.keepdirs ${destroot}${prefix}/www/${name}/cache destroot { copy ${worksrcpath} ${destroot}${prefix}/www/${name} # Cache delete ${destroot}${prefix}/www/${name}/cache/tmp file attributes ${destroot}${prefix}/www/${name}/cache -owner www -group www xinstall -d ${destroot}${prefix}/var/cache ln -s ../../www/${name}/cache ${destroot}${prefix}/var/cache/${name} # Config xinstall -d ${destroot}${prefix}/etc/${name} ln -s ../../www/${name}/include/config.php ${destroot}${prefix}/etc/${name} ln -s ../../www/${name}/include/distconfig.php ${destroot}${prefix}/etc/${name} # Documentation xinstall -d ${destroot}${prefix}/share/doc move ${destroot}${prefix}/www/${name}/doc ${destroot}${prefix}/share/doc/${name} move ${destroot}${prefix}/www/${name}/changes.txt ${destroot}${prefix}/www/${name}/license.txt ${destroot}${prefix}/share/doc/${name} # Symlink into docroot xinstall -d ${destroot}${prefix}/www/htdocs ln -s ../${name} ${destroot}${prefix}/www/htdocs } post-activate { if {![file exists ${prefix}/www/${name}/include/config.php]} { ui_msg "To set up WebSVN, copy" ui_msg "${prefix}/www/${name}/include/distconfig.php to" ui_msg "${prefix}/www/${name}/include/config.php and then make changes." } else { ui_msg "You may need to update your config.php for any changes that have been made" ui_msg "in this version of WebSVN. Compare ${prefix}/www/${name}/include/config.php" ui_msg "with ${prefix}/www/${name}/include/distconfig.php." } } livecheck.type regex livecheck.regex {WebSVN ([0-9.]+) released}