summaryrefslogtreecommitdiff
path: root/lang/python15/Makefile
diff options
context:
space:
mode:
authorThomas Gellekum <tg@FreeBSD.org>2001-05-03 11:34:13 +0000
committerThomas Gellekum <tg@FreeBSD.org>2001-05-03 11:34:13 +0000
commit1c56f8190baefb2945995d65f876dbdcb81ab49f (patch)
treeea06202e649c536d6966c746d18b4c37bf977051 /lang/python15/Makefile
parentUpgrade to 2.0.1. (diff)
Minor cleanup.
Notes
Notes: svn path=/head/; revision=42213
Diffstat (limited to 'lang/python15/Makefile')
-rw-r--r--lang/python15/Makefile16
1 files changed, 7 insertions, 9 deletions
diff --git a/lang/python15/Makefile b/lang/python15/Makefile
index cfc83c25e70f..e635546b303d 100644
--- a/lang/python15/Makefile
+++ b/lang/python15/Makefile
@@ -11,8 +11,7 @@ PORTREVISION= 1
CATEGORIES= lang python
MASTER_SITES= ftp://www.python.org/pub/python/src/ \
ftp://ftp.cwi.nl/pub/python/src/
-DISTNAME= py152
-EXTRACT_SUFX= .tgz
+DISTFILES= ${PYTHON_DISTFILE}
MAINTAINER= tg@FreeBSD.org
@@ -90,22 +89,21 @@ PLATFORMS=plat-freebsd3 plat-freebsd4 plat-freebsd5
pre-install:
.for platform in ${PLATFORMS}
- ${MKDIR} ${PREFIX}/lib/python1.5/${platform}
+ ${MKDIR} ${PYTHON_LIBDIR}/${platform}
${INSTALL_DATA} ${WRKSRC}/Lib/${platform}/* \
- ${PREFIX}/lib/python1.5/${platform}/
+ ${PYTHON_LIBDIR}/${platform}
.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/doc/${PYTHON_VERSION}
@${MKDIR} ${PREFIX}/share/emacs/site-lisp
${INSTALL_DATA} ${WRKSRC}/Misc/python-mode.el ${PREFIX}/share/emacs/site-lisp
- ${INSTALL_DATA} ${WRKSRC}/Misc/COPYRIGHT ${PREFIX}/share/doc/python
- @${MKDIR} ${PREFIX}/lib/python1.5/site-packages
+ ${INSTALL_DATA} ${WRKSRC}/Misc/COPYRIGHT ${PREFIX}/share/doc/${PYTHON_VERSION}
+ @${MKDIR} ${PYTHON_SITELIBDIR}
.if !defined(WITHOUT_TOOLS)
- @cd ${WRKSRC}; tar cf - Tools | \
- (cd ${PREFIX}/lib/python1.5; tar xf -)
+ @cd ${WRKSRC}; tar cf - Tools | (cd ${PYTHON_LIBDIR}; tar xf -)
.endif
.include <bsd.port.post.mk>