source: trunk/dports/www/websvn/Portfile

Last change on this file was 79876, checked in by ryandesign@…, 6 years ago

websvn: update to 2.3.3

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.4 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 79876 2011-06-28 23:56:14Z ryandesign@macports.org $
3
4PortSystem                  1.0
5
6name                        websvn
7version                     2.3.3
8set file_id                 49056
9categories                  www
10platforms                   darwin
11maintainers                 ryandesign
12license                     GPL-2
13supported_archs             noarch
14homepage                    http://www.websvn.info/
15master_sites                http://websvn.tigris.org/files/documents/1380/${file_id}
16
17description                 web-based Subversion repository viewer in PHP
18
19long_description            WebSVN offers a view onto your Subversion \
20                            repositories designed to reflect the Subversion \
21                            methodology. You can view the log of any file or \
22                            directory and see a list of all the files changed, \
23                            added or deleted in any given revision. You can \
24                            also view the differences between two revisions of \
25                            a file.
26
27checksums                   sha1    8425f1a98fb92ad28f8b13227ce1d4c73a323c7e \
28                            rmd160  a57c4a140494e53017b6646b602ec2d2ba096d82
29
30depends_run                 port:php5-web \
31                            port:php5-mbstring \
32                            port:subversion
33
34patchfiles                  patch-distconfig.php.diff
35post-patch {
36    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/include/distconfig.php
37}
38
39use_configure               no
40
41build                       {}
42
43destroot.keepdirs           ${destroot}${prefix}/www/${name}/cache
44destroot {
45    copy ${worksrcpath} ${destroot}${prefix}/www/${name}
46   
47    # Cache
48    delete ${destroot}${prefix}/www/${name}/cache/tmp
49    file attributes ${destroot}${prefix}/www/${name}/cache -owner www -group www
50    xinstall -d ${destroot}${prefix}/var/cache
51    ln -s ../../www/${name}/cache ${destroot}${prefix}/var/cache/${name}
52   
53    # Config
54    xinstall -d ${destroot}${prefix}/etc/${name}
55    ln -s ../../www/${name}/include/config.php ${destroot}${prefix}/etc/${name}
56    ln -s ../../www/${name}/include/distconfig.php ${destroot}${prefix}/etc/${name}
57   
58    # Documentation
59    xinstall -d ${destroot}${prefix}/share/doc
60    move ${destroot}${prefix}/www/${name}/doc ${destroot}${prefix}/share/doc/${name}
61    move ${destroot}${prefix}/www/${name}/changes.txt ${destroot}${prefix}/www/${name}/license.txt ${destroot}${prefix}/share/doc/${name}
62   
63    # Symlink into docroot
64    xinstall -d ${destroot}${prefix}/www/htdocs
65    ln -s ../${name} ${destroot}${prefix}/www/htdocs
66}
67
68post-activate {
69    if {![file exists ${prefix}/www/${name}/include/config.php]} {
70        ui_msg "To set up WebSVN, copy"
71        ui_msg "${prefix}/www/${name}/include/distconfig.php to"
72        ui_msg "${prefix}/www/${name}/include/config.php and then make changes."
73    } else {
74        ui_msg "You may need to update your config.php for any changes that have been made"
75        ui_msg "in this version of WebSVN. Compare ${prefix}/www/${name}/include/config.php"
76        ui_msg "with ${prefix}/www/${name}/include/distconfig.php."
77    }
78}
79
80livecheck.type              regex
81livecheck.url               ${homepage}download/
82livecheck.regex             ${name}-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.