blob: ecf1fadb032b02a9fab4dab898fdb596a557ddee (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Created by: Thomas Gellekum <tg@FreeBSD.org>
# $FreeBSD$
PORTNAME= python-doc-${DOCFORMAT}
PORTVERSION= ${PYTHON_PORTVERSION}
CATEGORIES= lang python
MASTER_SITES= PYTHON
MASTER_SITE_SUBDIR= ftp/python/doc/${PORTVERSION} \
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_BUILD= yes
USES= tar:bzip2
USE_PYTHON_BUILD= yes
DOCSDIR= ${PREFIX}/share/doc/${PYTHON_VERSION}
PLIST= ${WRKDIR}/pkg-plist.${DOCFORMAT}
DOCFORMAT?= html
.include <bsd.port.pre.mk>
. if ${DOCFORMAT} == "html" || ${DOCFORMAT} == "text"
WRKSRC= ${WRKDIR}/${DISTNAME}
. else
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
pre-install:
@cd ${WRKSRC} && \
(${FIND} . -type f | ${SED} -e 's|^\./|%%DOCSDIR%%/|' | ${SORT}; \
${FIND} * -type d | ${SED} -e 's|^|@dirrm %%DOCSDIR%%/|' | ${SORT} -r; \
${ECHO_CMD} "@dirrmtry %%DOCSDIR%%") > ${PLIST}
do-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}/
cd ${WRKSRC}/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
.include <bsd.port.post.mk>
|