Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jun 2013 14:21:45 +0200
From:      nemysis <nemysis@gmx.ch>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        lwhsu@FreeBSD.org
Subject:   ports/180057: [PATCH] textproc/py27-sphinx: Fix for creation of manpages with textproc/py-docutils
Message-ID:  <20130628122150.8FB5C69E@hub.freebsd.org>
Resent-Message-ID: <201306281230.r5SCU17D000753@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         180057
>Category:       ports
>Synopsis:       [PATCH] textproc/py27-sphinx: Fix for creation of manpages with textproc/py-docutils
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 28 12:30:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     nemysis
>Release:        FreeBSD 9.1-RELEASE-p8 amd64
>Organization:
>Environment:
System: FreeBSD FreeBSD_Ports 9.1-RELEASE-p8 FreeBSD 9.1-RELEASE-p8 #0: Tue Jun 18 15:25:28 UTC 2013
>Description:

- Fix for creation of manpages with textproc/py-docutils
- Shorten header
- Add files/patch-sphinx-writers-manpage.py

Port maintainer (lwhsu@FreeBSD.org) is cc'd.

Generated and tested manually, tested with port test and with RedPorts, sent with FreeBSD Port Tools 0.99_8 (mode: change, diff: ports)
>How-To-Repeat:

Build log

https://redports.org/buildarchive/20130628114101-39745/

>Fix:

--- py27-sphinx-1.1.3_2.patch begins here ---
diff -ruN /usr/ports/textproc/py-sphinx/Makefile ./Makefile
--- /usr/ports/textproc/py-sphinx/Makefile	2013-06-02 19:00:49.000000000 +0200
+++ ./Makefile	2013-06-28 13:36:07.000000000 +0200
@@ -1,13 +1,9 @@
-# New ports collection makefile for:	py-sphinx
-# Date created:		2008-09-08
-# Whom:			Li-Wen Hsu <lwhsu@FreeBSD.org>
-#
+# Created by: Li-Wen Hsu <lwhsu@FreeBSD.org>
 # $FreeBSD: head/textproc/py-sphinx/Makefile 301002 2012-07-17 12:46:02Z nivit $
-#
 
 PORTNAME=	sphinx
 PORTVERSION=	1.1.3
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	textproc python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
diff -ruN /usr/ports/textproc/py-sphinx/files/patch-sphinx-writers-manpage.py ./files/patch-sphinx-writers-manpage.py
--- /usr/ports/textproc/py-sphinx/files/patch-sphinx-writers-manpage.py	1970-01-01 01:00:00.000000000 +0100
+++ ./files/patch-sphinx-writers-manpage.py	2013-06-28 13:30:20.000000000 +0200
@@ -0,0 +1,27 @@
+--- sphinx/writers/manpage.py.orig	2011-11-01 08:38:44.000000000 +0100
++++ sphinx/writers/manpage.py	2013-06-28 13:27:48.000000000 +0200
+@@ -72,6 +72,11 @@
+         # since self.append_header() is never called, need to do this here
+         self.body.append(MACRO_DEF)
+ 
++        # Overwrite admonition label translations with our own
++        for label, translation in admonitionlabels.items():
++            self.language.labels[label] = self.deunicode(translation)
++
++
+     # overwritten -- added quotes around all .TH arguments
+     def header(self):
+         tmpl = (".TH \"%(title_upper)s\" \"%(manual_section)s\""
+@@ -193,12 +198,6 @@
+     def depart_seealso(self, node):
+         self.depart_admonition(node)
+ 
+-    # overwritten -- use our own label translations
+-    def visit_admonition(self, node, name=None):
+-        if name:
+-            self.body.append('.IP %s\n' %
+-                             self.deunicode(admonitionlabels.get(name, name)))
+-
+     def visit_productionlist(self, node):
+         self.ensure_eol()
+         names = []
--- py27-sphinx-1.1.3_2.patch ends here ---

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130628122150.8FB5C69E>