aboutsummaryrefslogtreecommitdiff
path: root/lang/python24/Makefile
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2003-07-31 19:34:54 +0000
committerHye-Shik Chang <perky@FreeBSD.org>2003-07-31 19:34:54 +0000
commitd6fb067853c11afb8796aa09ef04b3a5e3c1b72e (patch)
tree2069a2f20a15715d41d2b894e3e2a57f8ceff9e8 /lang/python24/Makefile
parente56fbbbb5c3ec0a1310dccba4bc33174aa11cd68 (diff)
downloadports-d6fb067853c11afb8796aa09ef04b3a5e3c1b72e.tar.gz
ports-d6fb067853c11afb8796aa09ef04b3a5e3c1b72e.zip
- Update to Python-2.3
- 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]
Notes
Notes: svn path=/head/; revision=86069
Diffstat (limited to 'lang/python24/Makefile')
-rw-r--r--lang/python24/Makefile56
1 files changed, 39 insertions, 17 deletions
diff --git a/lang/python24/Makefile b/lang/python24/Makefile
index 31dfb94e9e8c..b0ce40ccf8e9 100644
--- a/lang/python24/Makefile
+++ b/lang/python24/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= python
-PORTVERSION= 2.2.3
-PORTREVISION= 2
+PORTVERSION= 2.3
CATEGORIES= lang python ipv6
MASTER_SITES= ${MASTER_SITE_PYTHON}
MASTER_SITE_SUBDIR= ftp/python/${PORTVERSION}
@@ -25,8 +24,9 @@ INSTALL_TARGET= install
MAN1= python.1
USE_PYTHON= yes
-PYTHON_VERSION= python2.2
+PYTHON_VERSION= python2.3
PYTHON_NO_DEPENDS= yes
+USE_REINPLACE= yes
#
# If you don't want to use Python's thread module, you need to set
@@ -39,7 +39,7 @@ CFLAGS+= ${PTHREAD_CFLAGS}
CFLAGS+= -DTHREAD_STACK_SIZE=0x20000
.else
CFLAGS+= -DTHREAD_STACK_SIZE=0x100000
-.endif
+.endif # !defined(WANT_HUGE_STACK_SIZE)
CONFIGURE_ENV+= LDFLAGS="${PTHREAD_LIBS} ${LDFLAGS}"
.else
CONFIGURE_ARGS+= --without-threads
@@ -48,10 +48,29 @@ CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}"
.endif # defined(LDFLAGS)
.endif # !defined(WITHOUT_THREADS)
+.if !defined(WITH_UCS2)
+CONFIGURE_ARGS+= --enable-unicode=ucs4
+.endif
+
+.if !defined(BUILD_STATIC)
+CONFIGURE_ARGS+= --enable-shared
+INSTALLS_SHLIB= yes
+PLIST_SUB+= SHARED_ONLY=""
+.else
+PLIST_SUB+= SHARED_ONLY="@comment "
+.endif
+
DEMODIR= ${PREFIX}/share/examples/${PYTHON_VERSION}
+TOOLSDIR= ${PREFIX}/share/${PYTHON_VERSION}
.include <bsd.port.pre.mk>
+.if ${ARCH} == i386
+PLIST_SUB+= X86_ONLY=""
+.else
+PLIST_SUB+= X86_ONLY="@comment "
+.endif
+
.if ${OSVERSION} < 400000
LIB_DEPENDS+= ncurses.5:${PORTSDIR}/devel/ncurses
CFLAGS+= -I${LOCALBASE}/include/ncurses -I${LOCALBASE}/include
@@ -81,6 +100,17 @@ PLATFORMS=plat-freebsd2 plat-freebsd4 plat-freebsd5
PLATFORMS=plat-freebsd3 plat-freebsd4 plat-freebsd5
.endif
+post-extract:
+ ${SED} -e '1s,^.*$$,#!${PREFIX}/bin/${PYTHON_VERSION},' \
+ ${WRKSRC}/Tools/scripts/pydoc > ${WRKDIR}/pydoc2.3
+ ${SED} -e '1s,^.*$$,#!${PREFIX}/bin/${PYTHON_VERSION},' \
+ ${WRKSRC}/Tools/scripts/idle > ${WRKDIR}/idle2.3
+
+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}
@@ -90,27 +120,19 @@ pre-install:
.endfor
.endfor
-post-extract:
- ${SED} -e '1s,^.*$$,#!${PREFIX}/bin/${PYTHON_VERSION},' \
- ${WRKSRC}/Tools/scripts/pydoc > ${WRKDIR}/pydoc2.2
-
post-install:
- ${INSTALL_SCRIPT} ${WRKDIR}/pydoc2.2 ${PREFIX}/bin/
${INSTALL_DATA} ${WRKSRC}/Misc/python-mode.el \
${PREFIX}/share/emacs/site-lisp
- @${MKDIR} ${PYTHONPREFIX_SITELIBDIR}
+ ${INSTALL_SCRIPT} ${WRKDIR}/pydoc2.3 ${WRKDIR}/idle2.3 \
+ ${PREFIX}/bin
+
.if !defined(NOPORTDOCS)
+ @${MKDIR} ${TOOLSDIR}
@cd ${WRKSRC}; tar -c --exclude='*CVS*' -f - Tools | \
- (cd ${PYTHONPREFIX_LIBDIR}; tar xf -)
+ (cd ${TOOLSDIR}; tar xf -)
@${MKDIR} ${DEMODIR}
@cd ${WRKSRC}/Demo; tar -c --exclude='*CVS*' -f - * | \
(cd ${DEMODIR}; tar xf -)
.endif
-.if ${ARCH} == i386
-PLIST_SUB+= X86_ONLY=""
-.else
-PLIST_SUB+= X86_ONLY="@comment "
-.endif
-
.include <bsd.port.post.mk>