source: trunk/dports/www/websvn/Portfile @ 66730

Last change on this file since 66730 was 66730, checked in by ryandesign@…, 8 years ago

websvn: update to 2.3.1 (#24583) and indicate that this is noarch

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