diff options
author | perky <perky@FreeBSD.org> | 2003-08-01 03:38:54 +0800 |
---|---|---|
committer | perky <perky@FreeBSD.org> | 2003-08-01 03:38:54 +0800 |
commit | bda57df86e8fb2504d834a90043ff538b19062a1 (patch) | |
tree | 7e2dc71fad7160bffd5d6ab7e6e310a075e0db26 /lang | |
parent | c62fb30caf5bc415034ef48d4683171ff5a98922 (diff) | |
download | freebsd-ports-gnome-bda57df86e8fb2504d834a90043ff538b19062a1.tar.gz freebsd-ports-gnome-bda57df86e8fb2504d834a90043ff538b19062a1.tar.zst freebsd-ports-gnome-bda57df86e8fb2504d834a90043ff538b19062a1.zip |
- Add python22 as an alternative version.
- Correct pydoc search path to lang/python-doc-html port's [1]
PR: 43036 [1]
Submitted by: Emil Sit <sit@amsterdam.lcs.mit.edu> [1]
Diffstat (limited to 'lang')
-rw-r--r-- | lang/Makefile | 1 | ||||
-rw-r--r-- | lang/python22/Makefile | 18 | ||||
-rw-r--r-- | lang/python22/files/patch-setup.py | 17 | ||||
-rw-r--r-- | lang/python22/pkg-plist | 3 |
4 files changed, 26 insertions, 13 deletions
diff --git a/lang/Makefile b/lang/Makefile index 27e93057be8c..ea5f1c46b293 100644 --- a/lang/Makefile +++ b/lang/Makefile @@ -177,6 +177,7 @@ SUBDIR += python15 SUBDIR += python20 SUBDIR += python21 + SUBDIR += python22 SUBDIR += qscheme SUBDIR += ratfor SUBDIR += rexx-imc diff --git a/lang/python22/Makefile b/lang/python22/Makefile index 31dfb94e9e8c..83ecea188674 100644 --- a/lang/python22/Makefile +++ b/lang/python22/Makefile @@ -7,7 +7,7 @@ PORTNAME= python PORTVERSION= 2.2.3 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= lang python ipv6 MASTER_SITES= ${MASTER_SITE_PYTHON} MASTER_SITE_SUBDIR= ftp/python/${PORTVERSION} @@ -21,12 +21,13 @@ WRKSRC= ${PYTHON_WRKSRC} GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-fpectl CONFIGURE_ENV= OPT="${CFLAGS}" -INSTALL_TARGET= install -MAN1= python.1 +INSTALL_TARGET= altinstall +MAN1= ${PYTHON_VERSION}.1 USE_PYTHON= yes PYTHON_VERSION= python2.2 PYTHON_NO_DEPENDS= yes +USE_REINPLACE= yes # # If you don't want to use Python's thread module, you need to set @@ -81,6 +82,11 @@ PLATFORMS=plat-freebsd2 plat-freebsd4 plat-freebsd5 PLATFORMS=plat-freebsd3 plat-freebsd4 plat-freebsd5 .endif +post-patch: + ${REINPLACE_CMD} -e \ + 's,/usr/doc/python-docs-,${PREFIX}/share/doc/python,g' \ + ${WRKSRC}/Lib/pydoc.py + pre-install: .for platform in ${PLATFORMS} ${MKDIR} ${PYTHONPREFIX_LIBDIR}/${platform} @@ -96,9 +102,9 @@ post-extract: post-install: ${INSTALL_SCRIPT} ${WRKDIR}/pydoc2.2 ${PREFIX}/bin/ - ${INSTALL_DATA} ${WRKSRC}/Misc/python-mode.el \ - ${PREFIX}/share/emacs/site-lisp - @${MKDIR} ${PYTHONPREFIX_SITELIBDIR} + @${MKDIR} ${MANPREFIX}/man/man1 + ${INSTALL_MAN} ${WRKSRC}/Misc/python.man \ + ${MANPREFIX}/man/man1/${PYTHON_VERSION}.1 .if !defined(NOPORTDOCS) @cd ${WRKSRC}; tar -c --exclude='*CVS*' -f - Tools | \ (cd ${PYTHONPREFIX_LIBDIR}; tar xf -) diff --git a/lang/python22/files/patch-setup.py b/lang/python22/files/patch-setup.py index f3cef489fa8f..f0d1164206fb 100644 --- a/lang/python22/files/patch-setup.py +++ b/lang/python22/files/patch-setup.py @@ -1,7 +1,7 @@ ---- setup.py.orig Fri Mar 2 07:24:14 2001 -+++ setup.py Mon Mar 5 15:26:17 2001 -@@ -14,7 +14,7 @@ - from distutils.command.build_ext import build_ext +--- setup.py.orig Fri May 23 02:36:54 2003 ++++ setup.py Fri Aug 1 03:23:45 2003 +@@ -12,7 +12,7 @@ + from distutils.command.install import install # This global variable is used to hold the list of modules to be disabled. -disabled_module_list = [] @@ -9,3 +9,12 @@ def find_file(filename, std_dirs, paths): """Searches for the directory where a given file is located, +@@ -808,7 +808,7 @@ + ext_modules=[Extension('struct', ['structmodule.c'])], + + # Scripts to install +- scripts = ['Tools/scripts/pydoc'] ++ scripts = [] + ) + + # --install-platlib diff --git a/lang/python22/pkg-plist b/lang/python22/pkg-plist index 654d269f1cc3..5efd2d259c53 100644 --- a/lang/python22/pkg-plist +++ b/lang/python22/pkg-plist @@ -1,6 +1,4 @@ -bin/pydoc bin/pydoc2.2 -bin/python bin/%%PYTHON_VERSION%% include/%%PYTHON_VERSION%%/Python.h include/%%PYTHON_VERSION%%/abstract.h @@ -2299,7 +2297,6 @@ lib/%%PYTHON_VERSION%%/xmlrpclib.pyo lib/%%PYTHON_VERSION%%/zipfile.py lib/%%PYTHON_VERSION%%/zipfile.pyc lib/%%PYTHON_VERSION%%/zipfile.pyo -share/emacs/site-lisp/python-mode.el %%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/README %%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/classes/Complex.py %%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/classes/Dates.py |