From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Jun 28 12:30:02 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 09429763 for ; Fri, 28 Jun 2013 12:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id E28251733 for ; Fri, 28 Jun 2013 12:30:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r5SCU1Tw000754 for ; Fri, 28 Jun 2013 12:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r5SCU17D000753; Fri, 28 Jun 2013 12:30:01 GMT (envelope-from gnats) Resent-Date: Fri, 28 Jun 2013 12:30:01 GMT Resent-Message-Id: <201306281230.r5SCU17D000753@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, nemysis Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 8FB5C69E for ; Fri, 28 Jun 2013 12:21:50 +0000 (UTC) (envelope-from nemysis@gmx.ch) Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by mx1.freebsd.org (Postfix) with ESMTP id 1FB9416E7 for ; Fri, 28 Jun 2013 12:21:50 +0000 (UTC) Received: from mailout-de.gmx.net ([10.1.76.31]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0MaGNa-1UYfLg38Po-00JvZ6 for ; Fri, 28 Jun 2013 14:21:48 +0200 Received: (qmail invoked by alias); 28 Jun 2013 12:21:47 -0000 Received: from 5-80.77-83.cust.bluewin.ch (EHLO something.email.com) [83.77.80.5] by mail.gmx.net (mp031) with SMTP; 28 Jun 2013 14:21:47 +0200 Received: by something.email.com (sSMTP sendmail emulation); Fri, 28 Jun 2013 14:21:45 +0200 Message-Id: <20130628122150.8FB5C69E@hub.freebsd.org> Date: Fri, 28 Jun 2013 14:21:45 +0200 From: nemysis To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/180057: [PATCH] textproc/py27-sphinx: Fix for creation of manpages with textproc/py-docutils Cc: lwhsu@FreeBSD.org X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Jun 2013 12:30:02 -0000 >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 -# +# Created by: Li-Wen Hsu # $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: