mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
The "-W html" args to enscript no longer seem to work, but the
longer form of "--language=html" does: http://mailman.lyra.org/pipermail/viewcvs/2003q3/002189.html PR: ports/75993 Submitted by: Tim Bishop
This commit is contained in:
parent
f6bfeb0a88
commit
21fd1b8a9f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=126637
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= viewcvs
|
||||
PORTVERSION= 0.9.2
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= devel python
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- lib/viewcvs.py.orig Tue Jan 15 10:35:55 2002
|
||||
+++ lib/viewcvs.py Fri Apr 25 19:18:22 2003
|
||||
--- lib/viewcvs.py.orig Tue Jan 15 09:35:55 2002
|
||||
+++ lib/viewcvs.py Sun Jan 9 13:35:45 2005
|
||||
@@ -174,6 +174,10 @@
|
||||
# parse the query params into a dictionary (and use defaults)
|
||||
query_dict = default_settings.copy()
|
||||
@ -11,11 +11,10 @@
|
||||
query_dict[name] = values[0]
|
||||
|
||||
# set up query strings, prefixed by question marks and ampersands
|
||||
@@ -228,6 +232,77 @@
|
||||
self.branch = branch
|
||||
@@ -229,6 +233,77 @@
|
||||
self.taginfo = taginfo
|
||||
|
||||
+
|
||||
|
||||
+def _validate_param(name, value):
|
||||
+ """Validate whether the given value is acceptable for the param name.
|
||||
+
|
||||
@ -86,6 +85,25 @@
|
||||
+ 'rev' : _re_validate_revnum,
|
||||
+ 'content-type' : _re_validate_mimetype,
|
||||
+ }
|
||||
|
||||
+
|
||||
class LogEntry:
|
||||
"Hold state for each revision entry in an 'rlog' output."
|
||||
def __init__(self, rev, date, author, state, changed, log):
|
||||
@@ -478,7 +553,7 @@
|
||||
def markup_stream_enscript(lang, fp):
|
||||
sys.stdout.flush()
|
||||
enscript = popen.pipe_cmds([(os.path.normpath(os.path.join(cfg.options.enscript_path,'enscript')),
|
||||
- '--color', '-W', 'html', '-E' + lang, '-o',
|
||||
+ '--color', '--language=html', '-E' + lang, '-o',
|
||||
'-', '-'),
|
||||
('sed', '-n', '/^<PRE>$/,/<\\/PRE>$/p')])
|
||||
|
||||
@@ -494,7 +569,7 @@
|
||||
except IOError, v:
|
||||
print "<h3>Failure during use of an external program:</h3>"
|
||||
print "<pre>"
|
||||
- print os.path.normpath(os.path.join(cfg.options.enscript_path,'enscript')) + " --color -W html -E"+lang+" -o - -"
|
||||
+ print os.path.normpath(os.path.join(cfg.options.enscript_path,'enscript')) + " --color --language=html -E"+lang+" -o - -"
|
||||
print "</pre>"
|
||||
raise
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= viewcvs
|
||||
PORTVERSION= 0.9.2
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= devel python
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- lib/viewcvs.py.orig Tue Jan 15 10:35:55 2002
|
||||
+++ lib/viewcvs.py Fri Apr 25 19:18:22 2003
|
||||
--- lib/viewcvs.py.orig Tue Jan 15 09:35:55 2002
|
||||
+++ lib/viewcvs.py Sun Jan 9 13:35:45 2005
|
||||
@@ -174,6 +174,10 @@
|
||||
# parse the query params into a dictionary (and use defaults)
|
||||
query_dict = default_settings.copy()
|
||||
@ -11,11 +11,10 @@
|
||||
query_dict[name] = values[0]
|
||||
|
||||
# set up query strings, prefixed by question marks and ampersands
|
||||
@@ -228,6 +232,77 @@
|
||||
self.branch = branch
|
||||
@@ -229,6 +233,77 @@
|
||||
self.taginfo = taginfo
|
||||
|
||||
+
|
||||
|
||||
+def _validate_param(name, value):
|
||||
+ """Validate whether the given value is acceptable for the param name.
|
||||
+
|
||||
@ -86,6 +85,25 @@
|
||||
+ 'rev' : _re_validate_revnum,
|
||||
+ 'content-type' : _re_validate_mimetype,
|
||||
+ }
|
||||
|
||||
+
|
||||
class LogEntry:
|
||||
"Hold state for each revision entry in an 'rlog' output."
|
||||
def __init__(self, rev, date, author, state, changed, log):
|
||||
@@ -478,7 +553,7 @@
|
||||
def markup_stream_enscript(lang, fp):
|
||||
sys.stdout.flush()
|
||||
enscript = popen.pipe_cmds([(os.path.normpath(os.path.join(cfg.options.enscript_path,'enscript')),
|
||||
- '--color', '-W', 'html', '-E' + lang, '-o',
|
||||
+ '--color', '--language=html', '-E' + lang, '-o',
|
||||
'-', '-'),
|
||||
('sed', '-n', '/^<PRE>$/,/<\\/PRE>$/p')])
|
||||
|
||||
@@ -494,7 +569,7 @@
|
||||
except IOError, v:
|
||||
print "<h3>Failure during use of an external program:</h3>"
|
||||
print "<pre>"
|
||||
- print os.path.normpath(os.path.join(cfg.options.enscript_path,'enscript')) + " --color -W html -E"+lang+" -o - -"
|
||||
+ print os.path.normpath(os.path.join(cfg.options.enscript_path,'enscript')) + " --color --language=html -E"+lang+" -o - -"
|
||||
print "</pre>"
|
||||
raise
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user