aboutsummaryrefslogtreecommitdiff
path: root/lang/python-doc-html
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2003-07-31 19:42:23 +0000
committerHye-Shik Chang <perky@FreeBSD.org>2003-07-31 19:42:23 +0000
commitac9c780edc94acdbed4791e0e5eb4f49f17b57e6 (patch)
tree954587e8a92fde2c729fb9ce94a2efd8b8130303 /lang/python-doc-html
parent47fd1c0b36a7939f60904fcdac86871b1c37077c (diff)
downloadports-ac9c780edc94acdbed4791e0e5eb4f49f17b57e6.tar.gz
ports-ac9c780edc94acdbed4791e0e5eb4f49f17b57e6.zip
Notes
Diffstat (limited to 'lang/python-doc-html')
-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