Changeset View
Changeset View
Standalone View
Standalone View
lang/python-doc-html/Makefile
# Created by: Thomas Gellekum <tg@FreeBSD.org> | # Created by: Thomas Gellekum <tg@FreeBSD.org> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= python-doc-${DOCFORMAT} | PORTNAME= python-doc-${DOCFORMAT} | ||||
PORTVERSION= ${PYTHON_PORTVERSION} | PORTVERSION= ${PYTHON_DOCVERSION} | ||||
CATEGORIES= lang python | CATEGORIES= lang python | ||||
MASTER_SITES= PYTHON/ftp/python/doc/${PORTVERSION} \ | MASTER_SITES= PYTHON/ftp/python/doc/${PORTVERSION} \ | ||||
PYTHON/ftp/python/doc/current | PYTHON/ftp/python/doc/current | ||||
DISTNAME= python-${PORTVERSION}-docs-${DOCFORMAT} | DISTNAME= python-${PORTVERSION}${DISTVERSIONSUFFIX}-docs-${DOCFORMAT} | ||||
DIST_SUBDIR= python | DIST_SUBDIR= python | ||||
MAINTAINER= python@FreeBSD.org | MAINTAINER= python@FreeBSD.org | ||||
COMMENT= Documentation for the Python programming language | COMMENT= Documentation for the Python programming language | ||||
# Only set these when the docversion is not in line with latest pythonXY | |||||
PYTHON34_DOCVERSION= 3.4.3 | |||||
PYTHON35_DOCVERSION= 3.5.0 | |||||
PORTSCOUT= ignore:1 | PORTSCOUT= ignore:1 | ||||
NO_ARCH= yes | NO_ARCH= yes | ||||
NO_BUILD= yes | NO_BUILD= yes | ||||
USES= python:build tar:bzip2 | USES= python:build tar:bzip2 | ||||
DOCSDIR= ${PREFIX}/share/doc/${PYTHON_VERSION} | DOCSDIR= ${PREFIX}/share/doc/${PYTHON_VERSION} | ||||
PLIST= ${WRKDIR}/pkg-plist.${DOCFORMAT} | PLIST= ${WRKDIR}/pkg-plist.${DOCFORMAT} | ||||
DOCFORMAT?= html | DOCFORMAT?= html | ||||
.if ${DOCFORMAT} != "html" && ${DOCFORMAT} != "pdf-a4" && ${DOCFORMAT} != "pdf-letter" && ${DOCFORMAT} != "text" | .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 | IGNORE= invalid value for DOCFORMAT: "${DOCFORMAT}", possible values are: text, html, pdf-a4, pdf-letter | ||||
.endif | .endif | ||||
.if ${DOCFORMAT} != "html" && ${DOCFORMAT} != "text" | .if ${DOCFORMAT} != "html" && ${DOCFORMAT} != "text" | ||||
WRKSRC= ${WRKDIR}/docs-pdf | WRKSRC= ${WRKDIR}/docs-pdf | ||||
.endif | .endif | ||||
.include <bsd.port.pre.mk> | |||||
.if defined(PYTHON${PYTHON_SUFFIX}_DOCVERSION) | |||||
PYTHON_DOCVERSION= ${PYTHON${PYTHON_SUFFIX}_DOCVERSION} | |||||
.else | |||||
PYTHON_DOCVERSION= ${PYTHON_PORTVERSION} | |||||
.endif | |||||
.if ${PYTHON_SUFFIX} == "35" | |||||
DISTVERSIONSUFFIX= a3 | |||||
.endif | |||||
pre-install: | pre-install: | ||||
@${FIND} ${WRKSRC} -type f | ${SED} -e 's|^${WRKSRC}|%%DOCSDIR%%|' | ${SORT} > ${PLIST} | @${FIND} ${WRKSRC} -type f | ${SED} -e 's|^${WRKSRC}|%%DOCSDIR%%|' | ${SORT} > ${PLIST} | ||||
do-install: | do-install: | ||||
${MKDIR} ${STAGEDIR}${DOCSDIR}/ | ${MKDIR} ${STAGEDIR}${DOCSDIR}/ | ||||
cd ${WRKSRC}/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} | cd ${WRKSRC}/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} | ||||
.include <bsd.port.mk> | .include <bsd.port.post.mk> |