ports/181419: [UPDATE] www/trac: Fix wiki bracketed link with Genshi 0.7

Hung-Yi Chen gaod at hychen.org
Tue Aug 20 06:50:02 UTC 2013


>Number:         181419
>Category:       ports
>Synopsis:       [UPDATE] www/trac: Fix wiki bracketed link with Genshi 0.7
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 20 06:50:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Hung-Yi Chen
>Release:        FreeBSD 9.1-RELEASE-p5 amd64
>Organization:
>Environment:
System: FreeBSD cse.tw 9.1-RELEASE-p5 FreeBSD 9.1-RELEASE-p5 #0: Sat Jul 27 01:14:23 UTC 2013 root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64


	
>Description:
	 Fix wiki bracketed link with Genshi 0.7.
         Ref: http://trac.edgewall.org/changeset/11683

         Port maintainer (clsung <at> FreeBSD.org) is cc'd.
>How-To-Repeat:
>Fix:


--- www_trac.diff begins here ---
Index: www/trac/Makefile
===================================================================
--- www/trac/Makefile	(revision 324754)
+++ www/trac/Makefile	(working copy)
@@ -3,6 +3,7 @@
 
 PORTNAME=	trac
 PORTVERSION=	1.0.1
+PORTREVISION=	1
 CATEGORIES=	www devel python
 MASTER_SITES=	http://ftp.edgewall.com/pub/trac/ \
 		ftp://ftp.edgewall.com/pub/trac/
Index: www/trac/files/patch-trac_wiki_formatter.py
===================================================================
--- www/trac/files/patch-trac_wiki_formatter.py	(revision 0)
+++ www/trac/files/patch-trac_wiki_formatter.py	(working copy)
@@ -0,0 +1,11 @@
+--- trac/wiki/formatter.py.orig	2013-02-01 08:47:41.000000000 +0800
++++ trac/wiki/formatter.py	2013-08-20 14:24:46.982232000 +0800
+@@ -575,7 +575,7 @@
+         ns = fullmatch.group('snsbr')
+         target = unquote_label(fullmatch.group('stgtbr'))
+         match = match[1:-1]
+-        return '<%s>' % \
++        return u'<%s>' % \
+                 self._make_link(ns, target, match, match, fullmatch)
+ 
+     def _shref_formatter(self, match, fullmatch):
Index: www/trac/files/patch-trac_wiki_tests_wiki-tests.txt
===================================================================
--- www/trac/files/patch-trac_wiki_tests_wiki-tests.txt	(revision 0)
+++ www/trac/files/patch-trac_wiki_tests_wiki-tests.txt	(working copy)
@@ -0,0 +1,16 @@
+--- trac/wiki/tests/wiki-tests.txt.orig	2013-08-20 14:02:43.308222000 +0800
++++ trac/wiki/tests/wiki-tests.txt	2013-08-20 14:01:18.000000000 +0800
+@@ -314,6 +314,13 @@
+ ------------------------------
+ <p>
+ nolink:"<blink>"
++</p> 
++------------------------------ 
++============================== Bracketed links 
++See <http://en.wikipedia.org/wiki/Mornington_Crescent_(game)> 
++------------------------------ 
++<p> 
++See <<a class="ext-link" href="http://en.wikipedia.org/wiki/Mornington_Crescent_(game)"><span class="icon"></span>http://en.wikipedia.org/wiki/Mornington_Crescent_(game)</a>> 
+ </p>
+ ------------------------------
+ ============================================================
--- www_trac.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list