[144773] trunk/dports/devel

khindenburg at macports.org khindenburg at macports.org
Sun Jan 17 19:59:33 PST 2016


Revision: 144773
          https://trac.macports.org/changeset/144773
Author:   khindenburg at macports.org
Date:     2016-01-17 19:59:32 -0800 (Sun, 17 Jan 2016)
Log Message:
-----------
viewvc: new port renamed from viewcvs #20976
    - update to 1.1.24
    - add cvs and svn variants and their dependencies
    - tested with local cvs and svn repos using standalone.py

Modified Paths:
--------------
    trunk/dports/devel/viewvc/Portfile

Added Paths:
-----------
    trunk/dports/devel/viewvc/
    trunk/dports/devel/viewvc/files/patch-viewvc-install.diff

Removed Paths:
-------------
    trunk/dports/devel/viewvc/files/patch-viewcvs-install

Modified: trunk/dports/devel/viewvc/Portfile
===================================================================
--- trunk/dports/devel/viewcvs/Portfile	2016-01-17 19:10:57 UTC (rev 144766)
+++ trunk/dports/devel/viewvc/Portfile	2016-01-18 03:59:32 UTC (rev 144773)
@@ -1,3 +1,4 @@
+# -*- 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
 # $Id$
 
 PortSystem 1.0
@@ -2,52 +3,63 @@
 
-name		viewcvs
-version		0.9.2
-revision	1
-categories	devel www
-license		BSD
-maintainers	nomaintainer
-description	View CVS repo content with a Webbrowser
-long_description	\
-	ViewCVS was inspired by cvsweb (Zeller's version).  ViewCVS can \
-	browse directories, change logs, and specific revisions of files. It \
-	can display diffs between versions and show selections of files \
-	based on tags or branches. In addition, ViewCVS has "annotation" or \
-	"blame" support, and the beginnings of Bonsai-like query facilities.
-homepage	http://viewcvs.sourceforge.net/
-platforms	darwin
-supported_archs	noarch
-master_sites	sourceforge
-patchfiles	patch-viewcvs-install
-checksums	md5 c7857b1ed05240ad1f691ea40044daf2
+name                viewvc
+version             1.1.24
+categories          devel www
+maintainers         khindenburg openmaintainer
 
-use_configure	no
-depends_build   bin:python:python27
+description         Browser interface for CVS and Subversion
+long_description    \
+    ViewVC is a browser interface for CVS and Subversion version control \
+    repositories. It generates templatized HTML to present navigable \
+    directory, revision, and change log listings. It can display specific \
+    versions of files as well as diffs between those versions. Basically, \
+    ViewVC provides the bulk of the report-like functionality you expect \
+    out of your version control tool, but much more prettily than the \
+    average textual command-line program output.
 
-pre-build {
-	reinplace "s|__ROOTDIR|${prefix}/share/${name}-${version}|g" ${worksrcpath}/viewcvs-install
-	reinplace "s|__DESTROOTDIR|${destroot}${prefix}/share/${name}-${version}|g" ${worksrcpath}/viewcvs-install
+homepage            http://www.viewvc.org
+platforms           darwin
+supported_archs     noarch
+license             BSD
+master_sites        http://viewvc.tigris.org/files/documents/3330/49471/
+
+patchfiles          patch-viewvc-install.diff
+
+checksums           rmd160  f54549b82e6959cf1088c244e90c2688f27ee2a7 \
+                    sha256  0620f69fa5ba02ac65e000586ba31015a2053a82711bedb30629fd6087003d7e
+
+# Per website, this doesn't work with any python3
+depends_lib         port:python27
+
+post-patch {
+    reinplace "s|/usr/bin/env python|${prefix}/bin/python2.7|" ${worksrcpath}/viewvc-install
 }
 
-build		{}
-build.cmd	./viewcvs-install
-post-destroot {
-	
-	switch ${os.platform} {
-		darwin {
-			set cgi_path "/Library/WebServer/CGI-Executables/"
-		} freebsd {
-			set cgi_path "/usr/local/www/cgi-bin/"
-		} default {
-			puts stdout "and it was like, beep beep beep beep beep..."
-		}
-	}
-	
-	# apache port interop
-	if {[ file exists ${prefix}/sbin/httpd]} {
-		set cgi_path "${prefix}/www/cgi-bin/"
-   	}
+use_configure       no
 
-	system "install -d ${destroot}${cgi_path}"
-	system "install -m 755 ${destroot}${prefix}/share/${name}-${version}/cgi/query.cgi ${destroot}${cgi_path}"
-	system "install -m 755 ${destroot}${prefix}/share/${name}-${version}/cgi/viewcvs.cgi ${destroot}${cgi_path}"
+build               {}
+
+destroot.cmd        ./viewvc-install --prefix=${prefix}/share/${name} --destdir=${destroot} --clean-mode=true
+
+
+variant cvs description {Enable cvs repositories} {
+    depends_lib-append  port:cvs \
+                        port:rcs
 }
+variant subversion description {Enable subversion repositories} {
+    depends_lib-append  port:py27-pysvn \
+                        port:subversion-python27bindings
+}
+
+default_variants +cvs +subversion
+
+notes "
+If this is a fresh install, read\
+http://viewvc.tigris.org/source/browse/*checkout*/viewvc/trunk/INSTALL\
+otherwise http://viewvc.tigris.org/source/browse/*checkout*/viewvc/trunk/docs/upgrading-howto.html\
+
+Copy ${prefix}/share/viewvc/viewvc.conf.dist to ${prefix}/share/viewvc.conf\
+and then edit it.\
+It may be easiest to use ${prefix}/share/viewvc/bin/standalone.py to test the setup.
+"
+
+livecheck.url       http://viewvc.tigris.org/servlets/ProjectDocumentList?folderID=6004

Deleted: trunk/dports/devel/viewvc/files/patch-viewcvs-install
===================================================================
--- trunk/dports/devel/viewcvs/files/patch-viewcvs-install	2016-01-17 19:10:57 UTC (rev 144766)
+++ trunk/dports/devel/viewvc/files/patch-viewcvs-install	2016-01-18 03:59:32 UTC (rev 144773)
@@ -1,59 +0,0 @@
---- viewcvs-install.orig	Wed Oct  8 07:26:38 2003
-+++ viewcvs-install	Wed Oct  8 07:31:41 2003
-@@ -51,7 +51,8 @@
- """ % version
- 
- ## installer defaults
--ROOT_DIR = "/usr/local/viewcvs-" + version
-+ROOT_DIR = "__ROOTDIR"
-+DESTROOT_DIR = "__DESTROOTDIR"
- 
- 
- ## list of files for installation
-@@ -65,11 +66,11 @@
-     ("cgi/query.cgi", "cgi/query.cgi", 0755, 1, 0, 0),
-     ("standalone.py", "standalone.py", 0755, 1, 0, 0),
- 
--    ("cgi/viewcvs.conf.dist", "viewcvs.conf", 0644, 1,
-+    ("cgi/viewcvs.conf.dist", "viewcvs.conf.dist", 0644, 1,
- 	     """Note: If you are upgrading from viewcvs-0.7 or earlier: 
- The section [text] has been removed from viewcvs.conf.  The functionality
- went into the new files in subdirectory templates.""", 0),
--    ("cgi/cvsgraph.conf.dist", "cvsgraph.conf", 0644, 0, 1, 0),
-+    ("cgi/cvsgraph.conf.dist", "cvsgraph.conf.dist", 0644, 0, 1, 0),
- 
-     ("lib/PyFontify.py", "lib/PyFontify.py", 0644, 0, 0, 1),
-     ("lib/blame.py", "lib/blame.py", 0644, 0, 0, 1),
-@@ -158,7 +159,7 @@
- 
- def InstallFile(src_path, dest_path, mode, set_python_paths, prompt_replace,
-                 compile_it):
--  dest_path = os.path.join(ROOT_DIR, dest_path)
-+  dest_path = os.path.join(DESTROOT_DIR, dest_path)
-     
-   if prompt_replace and os.path.exists(dest_path):
-     # Collect ndiff output from ndiff
-@@ -192,7 +193,7 @@
-     if type(prompt_replace) == type(""):
-       print prompt_replace
-     while 1:
--      temp = raw_input("\n    File %s\n    exists and is different from source file.\n      DO YOU WANT TO,\n        overwrite [o]\n        do not overwrite [d]\n        view differences [v]: " % (dest_path))
-+      temp = "o"
-       print
- 
-       temp = string.lower(temp[0])
-@@ -245,10 +246,10 @@
-     print INFO_TEXT
-     
-     ## get the install path
--    temp = raw_input("Installation Path [%s]: " % ROOT_DIR)
--    temp = string.strip(temp)
--    if len(temp):
--        ROOT_DIR = temp
-+    #temp = raw_input("Installation Path [%s]: " % ROOT_DIR)
-+    #temp = string.strip(temp)
-+    #if len(temp):
-+    #    ROOT_DIR = temp
-         
-     ## install the files
-     print

Added: trunk/dports/devel/viewvc/files/patch-viewvc-install.diff
===================================================================
--- trunk/dports/devel/viewvc/files/patch-viewvc-install.diff	                        (rev 0)
+++ trunk/dports/devel/viewvc/files/patch-viewvc-install.diff	2016-01-18 03:59:32 UTC (rev 144773)
@@ -0,0 +1,14 @@
+--- viewvc-install.orig	2013-01-04 13:04:36.000000000 -0600
++++ viewvc-install	2014-09-12 23:04:24.000000000 -0500
+@@ -63,11 +63,8 @@
+     ("bin/svndbadmin",            "bin/svndbadmin",            0755, 1, 0, 0),
+     ("bin/make-database",         "bin/make-database",         0755, 1, 0, 0),
+     ("conf/viewvc.conf.dist",     "viewvc.conf.dist",          0644, 0, 0, 0),
+-    ("conf/viewvc.conf.dist",     "viewvc.conf",               0644, 0, 1, 0),
+     ("conf/cvsgraph.conf.dist",   "cvsgraph.conf.dist",        0644, 0, 0, 0),
+-    ("conf/cvsgraph.conf.dist",   "cvsgraph.conf",             0644, 0, 1, 0),
+     ("conf/mimetypes.conf.dist",  "mimetypes.conf.dist",       0644, 0, 0, 0),
+-    ("conf/mimetypes.conf.dist",  "mimetypes.conf",            0644, 0, 1, 0),
+     ]
+ if sys.platform == "win32":
+   FILE_INFO_LIST.extend([
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160117/4e7fd5bc/attachment.html>


More information about the macports-changes mailing list