Update lang/p5-signatures to version 0.11
[dports.git] / lang / python-doc-html / Makefile
1 # Created by: Thomas Gellekum <tg@FreeBSD.org>
2 # $FreeBSD$
3
4 PORTNAME=       python-doc-${DOCFORMAT}
5 PORTVERSION=    ${PYTHON_PORTVERSION}
6 CATEGORIES=     lang python
7 MASTER_SITES=   PYTHON
8 MASTER_SITE_SUBDIR=     ftp/python/doc/${PORTVERSION} \
9                         ftp/python/doc/current
10 DISTNAME=       python-${PORTVERSION}-docs-${DOCFORMAT}
11 DIST_SUBDIR=    python
12
13 MAINTAINER=     python@FreeBSD.org
14 COMMENT=        Documentation for the Python programming language
15
16 PORTSCOUT=      ignore:1
17
18 NO_BUILD=       yes
19 USES=           python:build tar:bzip2
20
21 DOCSDIR=        ${PREFIX}/share/doc/${PYTHON_VERSION}
22 PLIST=          ${WRKDIR}/pkg-plist.${DOCFORMAT}
23
24 DOCFORMAT?=     html
25
26 .include <bsd.port.pre.mk>
27
28 .  if ${DOCFORMAT} == "html" || ${DOCFORMAT} == "text"
29 WRKSRC=         ${WRKDIR}/${DISTNAME}
30 .  else
31 WRKSRC=         ${WRKDIR}/docs-pdf
32 .  endif
33 .  if ${DOCFORMAT} != "html" && ${DOCFORMAT} != "pdf-a4" && ${DOCFORMAT} != "pdf-letter" && ${DOCFORMAT} != "text"
34 IGNORE=         invalid value for DOCFORMAT: "${DOCFORMAT}", possible values are: text, html, pdf-a4, pdf-letter
35 .  endif
36
37 pre-install:
38         @cd ${WRKSRC} && \
39                 (${FIND} . -type f | ${SED} -e 's|^\./|%%DOCSDIR%%/|' | ${SORT}; \
40                 ${FIND} * -type d | ${SED} -e 's|^|@dirrm %%DOCSDIR%%/|' | ${SORT} -r; \
41                 ${ECHO_CMD} "@dirrmtry %%DOCSDIR%%") > ${PLIST}
42
43 do-install:
44         ${MKDIR} ${STAGEDIR}${DOCSDIR}/
45         cd ${WRKSRC}/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
46
47 .include <bsd.port.post.mk>