From 2d4b1aa7633e1ebefaf64173262043fdc612d91e Mon Sep 17 00:00:00 2001 From: tnn Date: Wed, 17 Jun 2009 14:07:35 +0000 Subject: patch-aa: Since the 'roman' module is unconditionally present in the PLIST, it must be unconditionally built and installed. (when building the py-docutils package while already having it installed, setup.py excluded the module, causing PLIST breakage with USE_DESTDIR=yes) --- textproc/py-docutils/distinfo | 3 ++- textproc/py-docutils/patches/patch-aa | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 textproc/py-docutils/patches/patch-aa (limited to 'textproc/py-docutils') diff --git a/textproc/py-docutils/distinfo b/textproc/py-docutils/distinfo index c0767e176cc..61ed3914a60 100644 --- a/textproc/py-docutils/distinfo +++ b/textproc/py-docutils/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.8 2009/02/23 11:33:44 wiz Exp $ +$NetBSD: distinfo,v 1.9 2009/06/17 14:07:35 tnn Exp $ SHA1 (docutils-0.5.tar.gz) = 70ca2dd94969ddf76217e5fe907b0b23f16cc199 RMD160 (docutils-0.5.tar.gz) = 3e8dfd2923528bbeac0ca33ccfe6f576c74f1886 Size (docutils-0.5.tar.gz) = 1271981 bytes +SHA1 (patch-aa) = 3a9a8d897ad74edcc8b3e01e0247af62ceef6bfb diff --git a/textproc/py-docutils/patches/patch-aa b/textproc/py-docutils/patches/patch-aa new file mode 100644 index 00000000000..0b41e8fcb96 --- /dev/null +++ b/textproc/py-docutils/patches/patch-aa @@ -0,0 +1,22 @@ +$NetBSD: patch-aa,v 1.1 2009/06/17 14:07:35 tnn Exp $ + +--- setup.py.orig 2007-03-22 00:00:23.000000000 +0100 ++++ setup.py +@@ -148,14 +148,13 @@ classifiers = [ + Python 2.3 and up.""" + + extra_modules = [('optparse', '1.4.1', None), +- ('textwrap', None, None), +- ('roman', '1.4', ['toRoman', 'fromRoman', +- 'InvalidRomanNumeralError'])] ++ ('textwrap', None, None)] ++ + """Third-party modules to install if they're not already present. + List of (module name, minimum __version__ string, [attribute names]).""" + + def get_extras(): +- extras = [] ++ extras = ['roman'] + for module_name, version, attributes in extra_modules: + try: + module = __import__(module_name) -- cgit v1.2.3