aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python-doc-html/Makefile
blob: 6f65c18afca02d1c55e664d9d280c95f52f30caa (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
# New ports collection makefile for:    python-doc
# Version required:     1.5.2
# Date created:         12 May 1999
# Whom:                 Thomas Gellekum <tg@FreeBSD.ORG>
#
# $FreeBSD$
#

DISTNAME=   ${DOCFORMAT}-${VERSION}
PKGNAME=        python-doc-${DOCFORMAT}-${VERSION}
CATEGORIES= lang python
MASTER_SITES=   ftp://www.python.org/pub/python/doc/1.5.2/ \
        ftp://ftp.cwi.nl/pub/python/doc/1.5.2/
EXTRACT_SUFX=   .tgz

MAINTAINER= tg@FreeBSD.ORG

DIST_SUBDIR=    python
NO_BUILD=   yes
PLIST=      ${PKGDIR}/PLIST_${DOCFORMAT}

VERSION=    1.5.2
DOCDIR=     ${PREFIX}/share/doc/python

DOCFORMAT?= html

.if ${DOCFORMAT} != "html" && ${DOCFORMAT} != "pdf-a4" && ${DOCFORMAT} != "pdf-letter" && ${DOCFORMAT} != "postscript-a4" && ${DOCFORMAT} != "postscript-letter"
.BEGIN:
    @${ECHO} "ERROR: invalid value for DOCFORMAT: \"${DOCFORMAT}\""
    @${ECHO} "Possible values are:  html, pdf-a4, pdf-letter,"
    @${ECHO} "postscript-a4, postscript-letter."
    @${FALSE}
.endif

do-extract:
    @${RM} -rf ${WRKDIR}
    @${MKDIR} ${WRKDIR}

do-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCDIR}
    @(cd ${DOCDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/${DISTFILES} ${EXTRACT_AFTER_ARGS})
.endif

.include <bsd.port.mk>