[62476] trunk/dports/www

ryandesign at macports.org ryandesign at macports.org
Fri Jan 8 19:40:35 PST 2010


Revision: 62476
          http://trac.macports.org/changeset/62476
Author:   ryandesign at macports.org
Date:     2010-01-08 19:40:31 -0800 (Fri, 08 Jan 2010)
Log Message:
-----------
websvn: new port, version 2.3.0; see #23160

Added Paths:
-----------
    trunk/dports/www/websvn/
    trunk/dports/www/websvn/Portfile
    trunk/dports/www/websvn/files/
    trunk/dports/www/websvn/files/patch-distconfig.php.diff

Added: trunk/dports/www/websvn/Portfile
===================================================================
--- trunk/dports/www/websvn/Portfile	                        (rev 0)
+++ trunk/dports/www/websvn/Portfile	2010-01-09 03:40:31 UTC (rev 62476)
@@ -0,0 +1,80 @@
+# $Id$
+
+PortSystem                  1.0
+
+name                        websvn
+version                     2.3.0
+set file_id                 47175
+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     189176efa18a245751b3b4404e3d8ca6 \
+                            sha1    0e768ae57aff039f39edf66b713ea0b9c3835be2 \
+                            rmd160  4f9089e9d84cf2f086f7e5a16f56fa4e52fda697
+
+depends_run                 port:php5-web \
+                            port:php5-mbstring \
+                            port:subversion
+
+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 ../websvn ${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}


Property changes on: trunk/dports/www/websvn/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/www/websvn/files/patch-distconfig.php.diff
===================================================================
--- trunk/dports/www/websvn/files/patch-distconfig.php.diff	                        (rev 0)
+++ trunk/dports/www/websvn/files/patch-distconfig.php.diff	2010-01-09 03:40:31 UTC (rev 62476)
@@ -0,0 +1,10 @@
+--- include/distconfig.php.orig	2009-12-03 23:53:49.000000000 -0600
++++ include/distconfig.php	2010-01-08 21:35:44.000000000 -0600
+@@ -34,6 +34,7 @@
+ //
+ // $config->setSVNCommandPath('Path/to/svn/command/'); //  e.g. c:\\program files\\subversion\\bin
+ // $config->setDiffPath('Path/to/diff/command/');
++$config->setSVNCommandPath('@PREFIX@/bin');
+ 
+ // For syntax colouring, if option enabled...
+ // $config->setEnscriptPath('Path/to/enscript/command/');
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100108/b5e5f40c/attachment.html>


More information about the macports-changes mailing list