Index: head/lang/python-doc-html/Makefile
===================================================================
--- head/lang/python-doc-html/Makefile (revision 404969)
+++ head/lang/python-doc-html/Makefile (revision 404970)
@@ -1,44 +1,41 @@
# Created by: Thomas Gellekum
# $FreeBSD$
PORTNAME= python-doc-${DOCFORMAT}
PORTVERSION= ${PYTHON_PORTVERSION}
CATEGORIES= lang python
MASTER_SITES= PYTHON/ftp/python/doc/${PORTVERSION} \
PYTHON/ftp/python/doc/current
DISTNAME= python-${PORTVERSION}-docs-${DOCFORMAT}
DIST_SUBDIR= python
MAINTAINER= python@FreeBSD.org
COMMENT= Documentation for the Python programming language
PORTSCOUT= ignore:1
+NO_ARCH= yes
NO_BUILD= yes
USES= python:build tar:bzip2
DOCSDIR= ${PREFIX}/share/doc/${PYTHON_VERSION}
PLIST= ${WRKDIR}/pkg-plist.${DOCFORMAT}
DOCFORMAT?= html
-.include
+.if ${DOCFORMAT} != "html" && ${DOCFORMAT} != "pdf-a4" && ${DOCFORMAT} != "pdf-letter" && ${DOCFORMAT} != "text"
+IGNORE= invalid value for DOCFORMAT: "${DOCFORMAT}", possible values are: text, html, pdf-a4, pdf-letter
+.endif
-. if ${DOCFORMAT} == "html" || ${DOCFORMAT} == "text"
-WRKSRC= ${WRKDIR}/${DISTNAME}
-. else
+.if ${DOCFORMAT} != "html" && ${DOCFORMAT} != "text"
WRKSRC= ${WRKDIR}/docs-pdf
-. endif
-. if ${DOCFORMAT} != "html" && ${DOCFORMAT} != "pdf-a4" && ${DOCFORMAT} != "pdf-letter" && ${DOCFORMAT} != "text"
-IGNORE= invalid value for DOCFORMAT: "${DOCFORMAT}", possible values are: text, html, pdf-a4, pdf-letter
-. endif
+.endif
pre-install:
- @cd ${WRKSRC} && \
- (${FIND} . -type f | ${SED} -e 's|^\./|%%DOCSDIR%%/|' | ${SORT}) > ${PLIST}
+ @${FIND} ${WRKSRC} -type f | ${SED} -e 's|^${WRKSRC}|%%DOCSDIR%%|' | ${SORT} > ${PLIST}
do-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}/
cd ${WRKSRC}/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
-.include
+.include