2013-05-11 13:37:54 +02:00
|
|
|
# Created by: Thomas Gellekum <tg@FreeBSD.org>
|
1999-08-25 08:35:40 +02:00
|
|
|
# $FreeBSD$
|
1999-06-02 12:13:25 +02:00
|
|
|
|
2000-04-12 08:21:15 +02:00
|
|
|
PORTNAME= python-doc-${DOCFORMAT}
|
2013-05-17 06:17:22 +02:00
|
|
|
#PORTVERSION= ${PYTHON_PORTVERSION}
|
|
|
|
PORTVERSION= 2.7.5
|
1999-06-02 12:13:25 +02:00
|
|
|
CATEGORIES= lang python
|
2013-05-11 13:37:54 +02:00
|
|
|
MASTER_SITES= PYTHON
|
2009-11-26 23:21:20 +01:00
|
|
|
MASTER_SITE_SUBDIR= ftp/python/doc/${PORTVERSION} \
|
|
|
|
ftp/python/doc/current
|
2011-10-10 15:59:57 +02:00
|
|
|
DISTNAME= python-${PORTVERSION}-docs-${DOCFORMAT}
|
|
|
|
DIST_SUBDIR= python
|
1999-06-02 12:13:25 +02:00
|
|
|
|
2008-10-13 10:23:00 +02:00
|
|
|
MAINTAINER= python@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Documentation for the Python programming language
|
1999-06-02 12:13:25 +02:00
|
|
|
|
2011-09-04 18:32:01 +02:00
|
|
|
PORTSCOUT= ignore:1
|
|
|
|
|
1999-06-02 12:13:25 +02:00
|
|
|
NO_BUILD= yes
|
2011-10-10 15:59:57 +02:00
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_PYTHON_BUILD= yes
|
1999-06-02 12:13:25 +02:00
|
|
|
|
2011-10-10 15:59:57 +02:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PYTHON_VERSION}
|
|
|
|
PLIST= ${WRKDIR}/pkg-plist.${DOCFORMAT}
|
1999-06-02 12:13:25 +02:00
|
|
|
|
|
|
|
DOCFORMAT?= html
|
|
|
|
|
2008-10-13 10:23:00 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2011-10-10 15:59:57 +02:00
|
|
|
. if ${DOCFORMAT} == "html" || ${DOCFORMAT} == "text"
|
2009-06-09 00:30:55 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
2011-10-10 15:59:57 +02:00
|
|
|
. else
|
2008-10-13 10:23:00 +02:00
|
|
|
WRKSRC= ${WRKDIR}/docs-pdf
|
2011-10-10 15:59:57 +02:00
|
|
|
. 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
|
1999-06-02 12:13:25 +02:00
|
|
|
|
2001-05-16 13:41:37 +02:00
|
|
|
pre-install:
|
2011-10-10 15:59:57 +02:00
|
|
|
@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}
|
2001-05-16 13:41:37 +02:00
|
|
|
|
1999-06-02 12:13:25 +02:00
|
|
|
do-install:
|
2011-10-10 15:59:57 +02:00
|
|
|
${MKDIR} ${DOCSDIR}/
|
|
|
|
cd ${WRKSRC}/ && ${COPYTREE_SHARE} . ${DOCSDIR}
|
1999-06-02 12:13:25 +02:00
|
|
|
|
2003-06-04 10:38:41 +02:00
|
|
|
.include <bsd.port.post.mk>
|