1999-06-02 10:13:25 +00:00
|
|
|
# New ports collection makefile for: python-doc
|
2000-04-06 11:51:25 +00:00
|
|
|
# Version required: 1.5.2p2
|
1999-06-02 10:13:25 +00:00
|
|
|
# Date created: 12 May 1999
|
1999-08-31 06:53:31 +00:00
|
|
|
# Whom: Thomas Gellekum <tg@FreeBSD.org>
|
1999-06-02 10:13:25 +00:00
|
|
|
#
|
1999-08-25 06:35:40 +00:00
|
|
|
# $FreeBSD$
|
1999-06-02 10:13:25 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= ${DOCFORMAT}-${VERSION}
|
1999-08-04 08:20:29 +00:00
|
|
|
PKGNAME= python-doc-${DOCFORMAT}-${VERSION}
|
1999-06-02 10:13:25 +00:00
|
|
|
CATEGORIES= lang python
|
2000-04-06 11:51:25 +00:00
|
|
|
MASTER_SITES= http://www.python.org/ftp/python/doc/ \
|
|
|
|
http://SunSITE.Informatik.RWTH-Aachen.DE/python/ftp/python/doc/1.5.2p2/
|
1999-06-02 10:13:25 +00:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
1999-08-31 06:53:31 +00:00
|
|
|
MAINTAINER= tg@FreeBSD.org
|
1999-06-02 10:13:25 +00:00
|
|
|
|
|
|
|
DIST_SUBDIR= python
|
|
|
|
NO_BUILD= yes
|
|
|
|
PLIST= ${PKGDIR}/PLIST_${DOCFORMAT}
|
|
|
|
|
2000-04-06 11:51:25 +00:00
|
|
|
VERSION= 1.5.2p2
|
1999-06-02 10:13:25 +00:00
|
|
|
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>
|