diff options
author | Thomas Gellekum <tg@FreeBSD.org> | 2000-10-18 11:58:50 +0000 |
---|---|---|
committer | Thomas Gellekum <tg@FreeBSD.org> | 2000-10-18 11:58:50 +0000 |
commit | 78f16e0bfd85835b5dd9daec9da8e598e4b4f7a4 (patch) | |
tree | 041e57f8b4b390901ce0d3a35c39d41f2234e3cd /lang/python21/Makefile | |
parent | Python 2.0 is the new default version. 1.6 is history. (diff) |
Upgrade to 2.0.
Notes
Notes:
svn path=/head/; revision=33960
Diffstat (limited to 'lang/python21/Makefile')
-rw-r--r-- | lang/python21/Makefile | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/lang/python21/Makefile b/lang/python21/Makefile index ea43fb19929e..44a654b5a30b 100644 --- a/lang/python21/Makefile +++ b/lang/python21/Makefile @@ -6,14 +6,15 @@ # PORTNAME= python -PORTVERSION= 1.6 +PORTVERSION= 2.0 CATEGORIES= lang python -MASTER_SITES= http://www.python.org/1.6/ -DISTNAME= Python-${PORTVERSION} +MASTER_SITES= http://www.pythonlabs.com/products/python2.0/downloads/ +DISTFILES= ${PYTHON_DISTFILE} MAINTAINER= tg@FreeBSD.org DIST_SUBDIR= python +WRKSRC= ${PYTHON_WRKSRC} GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-fpectl CONFIGURE_ENV= OPT="${CFLAGS}" @@ -22,7 +23,7 @@ PLIST= ${WRKDIR}/PLIST MAN1= python.1 USE_PYTHON= yes -PYTHON_VERSION= python1.6 +PYTHON_VERSION= python2.0 PYTHON_NO_DEPENDS= yes # @@ -36,9 +37,11 @@ SETUP_FILE= Setup # LIBC_R!= /sbin/ldconfig -r | grep c_r || true .if (${LIBC_R} != "") && !defined(WITHOUT_THREADS) -CONFIGURE_ARGS+= --with-thread +CONFIGURE_ARGS+= --with-threads CFLAGS+= -D_THREAD_SAFE CONFIGURE_ENV+= LDFLAGS="-pthread ${LDFLAGS}" +.else +CONFIGURE_ARGS+= --without-threads .endif # @@ -65,10 +68,6 @@ PLIST_GMP= ${PKGDIR}/pkg-plist.gmp PLIST_TOOLS= ${PKGDIR}/pkg-plist.Tools .endif -post-extract: - cd ${WRKSRC}/Lib && ${SH} ${FILESDIR}/plat-freebsd4.sh - cd ${WRKSRC}/Lib && ${SH} ${FILESDIR}/plat-freebsd5.sh - post-configure: ${CP} ${FILESDIR}/${SETUP_FILE} ${WRKSRC}/Modules/Setup .for file in ${SETUP_LOCAL} @@ -97,20 +96,20 @@ PLATFORMS=plat-freebsd3 plat-freebsd4 plat-freebsd5 pre-install: .for platform in ${PLATFORMS} ${MKDIR} ${PREFIX}/lib/${PYTHON_VERSION}/${platform} - ${INSTALL_DATA} ${WRKSRC}/Lib/${platform}/* \ +.for file in FCNTL.py IN.py SOCKET.py TERMIOS.py regen + ${INSTALL_DATA} ${WRKSRC}/Lib/${platform}/${file} \ ${PREFIX}/lib/${PYTHON_VERSION}/${platform}/ .endfor +.endfor @sort -r -o ${PLIST} ${PLIST_GMP} ${PLIST_TOOLS} ${PKGDIR}/pkg-plist post-install: strip ${PREFIX}/bin/python - @${MKDIR} ${PREFIX}/share/doc/python @${MKDIR} ${PREFIX}/share/emacs/site-lisp ${INSTALL_DATA} ${WRKSRC}/Misc/python-mode.el ${PREFIX}/share/emacs/site-lisp - ${INSTALL_DATA} ${WRKSRC}/LICENSE ${PREFIX}/share/doc/python @${MKDIR} ${PREFIX}/lib/${PYTHON_VERSION}/site-packages .if !defined(WITHOUT_TOOLS) - @cd ${WRKSRC}; tar cf - Tools | \ + @cd ${WRKSRC}; tar -c --exclude='*CVS*' -f - Tools | \ (cd ${PREFIX}/lib/${PYTHON_VERSION}; tar xf -) .endif |