From 8dcd93dcfb70bbcaeeafbfaddb7aa6a300d11570 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Fri, 25 Jan 2013 17:23:45 +0400 Subject: Use help2man to produce 2to3 man page --- python2.7/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/python2.7/Makefile b/python2.7/Makefile index 50e7c2c..806ebac 100644 --- a/python2.7/Makefile +++ b/python2.7/Makefile @@ -34,6 +34,8 @@ build-depends += \ library/readline \ library/tinfo \ library/zlib \ + text/help2man \ + configure-options += \ --without-gcc \ @@ -71,12 +73,18 @@ postinst-stamp: install-default-stamp ln -sf ../lib/python$(VER)/pdb.py $(d)/usr/bin/pdb$(VER) : # versioned install only rm -f $(d)/usr/bin/python-config - mv $(d)/usr/bin/2to3 $(d)/usr/bin/2to3-$(VER) mv $(d)/usr/bin/pydoc $(d)/usr/bin/pydoc$(VER) : # Remove version information from the egg-info file mv $(d)/$(scriptdir)/lib-dynload/Python-$(VER)*.egg-info \ $(d)/$(scriptdir)/lib-dynload/Python-$(VER).egg-info cp -p $(sourcedir)/Tools/i18n/pygettext.py $(d)/usr/bin/pygettext$(VER) + mv $(d)/usr/bin/2to3 $(d)/usr/bin/2to3-$(VER) + PYTHONPATH=$(d)/$(scriptdir) \ + help2man --no-info --version-string=$(VER) --no-discard-stderr \ + --name 'Python2 to Python3 converter' \ + $(d)/usr/bin/2to3-$(VER) \ + > $(d)/usr/share/man/man1/2to3-$(VER).1 + touch $@ -- cgit v1.2.3