Update python documentation ports to Python-2.3's.
This commit is contained in:
parent
47fd1c0b36
commit
ac9c780edc
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=86072
2 changed files with 22 additions and 3 deletions
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue