aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorperky <perky@FreeBSD.org>2003-08-01 03:42:23 +0800
committerperky <perky@FreeBSD.org>2003-08-01 03:42:23 +0800
commit464bf4aafb54ff361f0d1d5a8ddbebdc373a47d9 (patch)
tree9c004d03473b258e86ff42d11ec3efcecbad26f4 /lang
parentec31aeadf525b73620fa22ed76df1eb2d6697212 (diff)
downloadfreebsd-ports-gnome-464bf4aafb54ff361f0d1d5a8ddbebdc373a47d9.tar.gz
freebsd-ports-gnome-464bf4aafb54ff361f0d1d5a8ddbebdc373a47d9.tar.zst
freebsd-ports-gnome-464bf4aafb54ff361f0d1d5a8ddbebdc373a47d9.zip
Update python documentation ports to Python-2.3's.
Diffstat (limited to 'lang')
-rw-r--r--lang/python-doc-html/Makefile20
-rw-r--r--lang/python-doc-html/distinfo5
2 files changed, 22 insertions, 3 deletions
diff --git a/lang/python-doc-html/Makefile b/lang/python-doc-html/Makefile
index 583aac444c34..3ba67737be47 100644
--- a/lang/python-doc-html/Makefile
+++ b/lang/python-doc-html/Makefile
@@ -8,8 +8,8 @@
PORTNAME= python-doc-${DOCFORMAT}
PORTVERSION= ${PYTHON_PORTVERSION}
CATEGORIES= lang python
-MASTER_SITES= http://www.python.org/ftp/python/doc/${PORTVERSION}/ \
- http://SunSITE.Informatik.RWTH-Aachen.DE/python/ftp/python/doc/${PORTVERSION}/
+MASTER_SITES= ${MASTER_SITE_PYTHON}
+MASTER_SITE_SUBDIR= ftp/python/doc/${PORTVERSION}
DISTNAME= ${DOCFORMAT}-${PORTVERSION}
MAINTAINER= perky@FreeBSD.org
@@ -21,6 +21,7 @@ USE_BZIP2= yes
NO_BUILD= yes
PLIST= ${WRKDIR}/pkg-plist_${DOCFORMAT}
+WRKSRC= ${WRKDIR}/Python-Docs-${PORTVERSION}
DOCDIR= ${PREFIX}/share/doc/${PYTHON_VERSION}
PLIST_DIFF= ${FILESDIR}/plist-${DOCFORMAT}-${PORTVERSION}.diff
@@ -42,20 +43,33 @@ PLIST_SUB+= PYTHON22_ONLY="@comment "
PLIST_SUB+= PYTHON22_ONLY=""
.endif
+.if ${PYTHON_REL} < 230
do-extract:
@${RM} -rf ${WRKDIR}
@${MKDIR} ${WRKDIR}
+.endif
pre-install:
+.if ${PYTHON_REL} < 230
@${CP} ${PKGDIR}/pkg-plist_${DOCFORMAT} ${WRKDIR}
@if [ -f ${PLIST_DIFF} ]; then \
cd ${WRKDIR} && patch -p --quiet < ${PLIST_DIFF}; \
fi
+.else
+ @cd ${WRKSRC} && (${FIND} . -type f | \
+ ${SED} -e 's,^\.,share/doc/${PYTHON_VERSION},' | sort > ${PLIST})
+ @cd ${WRKSRC} && (${FIND} * -type d | \
+ ${SED} -e 's,^,@dirrm share/doc/${PYTHON_VERSION}/,' | \
+ sort -r) >> ${PLIST}
+ @${ECHO_CMD} "@unexec rmdir %D/share/doc/%%PYTHON_VERSION%% 2>/dev/null || true" >> ${PLIST}
+.endif
do-install:
-.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCDIR}
+.if ${PYTHON_REL} < 230
@(cd ${DOCDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/${DISTFILES} ${EXTRACT_AFTER_ARGS})
+.else
+ @${TAR} -C ${WRKSRC} -cf - . | ${TAR} -C ${DOCDIR} -xf -
.endif
.include <bsd.port.post.mk>
diff --git a/lang/python-doc-html/distinfo b/lang/python-doc-html/distinfo
index 37320f34ae42..b710bfa629dd 100644
--- a/lang/python-doc-html/distinfo
+++ b/lang/python-doc-html/distinfo
@@ -44,3 +44,8 @@ MD5 (python/pdf-a4-2.2.3.tar.bz2) = 665eb1ea816f0dd421e6f51ffe9880c7
MD5 (python/pdf-letter-2.2.3.tar.bz2) = 405c6e36dc1346b06260fdb832d2618c
MD5 (python/postscript-a4-2.2.3.tar.bz2) = 3d8dd82fc5d4e72fea0e090f3e8f7a07
MD5 (python/postscript-letter-2.2.3.tar.bz2) = b90b56af162a19a1ea288546c3ffe4e6
+MD5 (python/html-2.3.tar.bz2) = 382a934e0943a24f44ed161e78ff8347
+MD5 (python/pdf-a4-2.3.tar.bz2) = 0556201159879872acdc3eeb170de59e
+MD5 (python/pdf-letter-2.3.tar.bz2) = 7894638799efe17916143b4b1f9f581a
+MD5 (python/postscript-a4-2.3.tar.bz2) = 59255ce295650103aaf59b9dea7729dc
+MD5 (python/postscript-letter-2.3.tar.bz2) = 73fab7f4ffbf4f18afd533ea951dbb98