View | Details | Raw Unified | Return to bug 186866
Collapse All | Expand All

(-)Makefile (-32 / +21 lines)
Lines 1-68 Link Here
1
# Created by: Li-Wen Hsu <lwhsu@lwhsu.org>
1
# Created by: Li-Wen Hsu <lwhsu@lwhsu.org>
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	reportlab2
4
PORTNAME=	reportlab
5
PORTVERSION=	2.5
5
PORTVERSION=	2.7
6
CATEGORIES=	print python
6
CATEGORIES=	print python
7
MASTER_SITES=	http://www.reportlab.com/ftp/
7
MASTER_SITES=	http://www.reportlab.com/ftp/
8
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
8
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
9
DISTFILES=	reportlab-${PORTVERSION}${EXTRACT_SUFX} pfbfer-${PFBFER_VERSION}.zip
9
PKGNAMESUFFIX=	2
10
EXTRACT_ONLY=	reportlab-${PORTVERSION}${EXTRACT_SUFX}
10
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} \
11
		pfbfer-${PFBFER_VERSION}.zip
12
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
11
13
12
MAINTAINER=	buganini@gmail.com
14
MAINTAINER=	buganini@gmail.com
13
COMMENT=	Library to create PDF documents using the Python language
15
COMMENT=	Library to create PDF documents using the Python language
14
16
15
LICENSE=	BSD
17
LICENSE=	BSD3CLAUSE
16
18
17
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}imaging>0:${PORTSDIR}/graphics/py-imaging
19
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}imaging>0:${PORTSDIR}/graphics/py-imaging
18
20
19
OPTIONS_DEFINE=	CJK FREETYPE DOCS
21
OPTIONS_DEFINE=	DOCS
20
OPTIONS_DEFAULT=	CJK FREETYPE
21
CJK_DESC=	Adobe CMaps
22
22
23
WRKSRC=		${WRKDIR}/reportlab-${PORTVERSION}
24
25
CONFLICTS=	py2[0-9]-reportlab-[0-9]*
23
CONFLICTS=	py2[0-9]-reportlab-[0-9]*
26
24
27
PFBFER_VERSION=	20070710
25
PFBFER_VERSION=	20070710
28
26
29
USE_PYTHON=	yes
27
USE_PYTHON=	2.5-2.7
30
USE_PYDISTUTILS=	yes
28
USE_PYDISTUTILS=	yes
31
PYDISTUTILS_PKGNAME=	reportlab
29
PYDISTUTILS_AUTOPLIST=	yes
32
30
33
MAKE_ENV=	PACKAGE_PATH="${REPORTLABDIR}"
34
35
REPORTLABDIR=	${PYTHONPREFIX_SITELIBDIR}/reportlab
36
DOCSDIR=	${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
37
DOCS=		reportlab-graphics-reference.pdf \
31
DOCS=		reportlab-graphics-reference.pdf \
38
		reportlab-reference.pdf \
32
		reportlab-reference.pdf \
39
		reportlab-userguide.pdf
33
		reportlab-userguide.pdf
40
34
41
NO_STAGE=	yes
35
DOCS_PLIST_FILES=	${DOCSDIR}/reportlab-graphics-reference.pdf \
36
			${DOCSDIR}/reportlab-reference.pdf \
37
			${DOCSDIR}/reportlab-userguide.pdf
38
DOCS_PLIST_DIRS=	${DOCSDIR}
39
42
post-patch:
40
post-patch:
43
	@${REINPLACE_CMD} -e 's|/usr/ports/distfiles|${DISTDIR}|g' ${WRKSRC}/setup.py
41
	@${REINPLACE_CMD} -e 's|http://www.reportlab.com/ftp|file://${DISTDIR}|g' ${WRKSRC}/setup.py
44
	@${REINPLACE_CMD} -e 's|pfbfer.zip|pfbfer-${PFBFER_VERSION}.zip|g' ${WRKSRC}/setup.py
45
42
46
.include <bsd.port.options.mk>
43
.include <bsd.port.options.mk>
47
.if ${ARCH} == "sparc64"
44
.if ${ARCH} == "sparc64"
48
BROKEN=		Does not install on sparc64
45
BROKEN=	Does not install on sparc64
49
50
.endif
46
.endif
51
47
52
.if ${PORT_OPTIONS:MCJK}
53
RUN_DEPENDS+=	${LOCALBASE}/share/fonts/adobe-cmaps/ac15/cid2code.txt:${PORTSDIR}/print/adobe-cmaps
54
.endif
55
56
.if ${PORT_OPTIONS:MFREETYPE}
57
LIB_DEPENDS+=	freetype.9:${PORTSDIR}/print/freetype2
58
.endif
59
60
post-install:
48
post-install:
61
.if ${PORT_OPTIONS:MDOCS}
49
.if ${PORT_OPTIONS:MDOCS}
62
	@cd ${WRKSRC}/docs && ${PYTHON_CMD} genAll.py
50
	@cd ${WRKSRC}/docs && \
63
	${MKDIR} ${DOCSDIR}
51
	PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR} ${PYTHON_CMD} genAll.py
52
	${MKDIR} ${STAGEDIR}${DOCSDIR}
64
.for i in ${DOCS}
53
.for i in ${DOCS}
65
	${CP} ${WRKSRC}/docs/${i} ${DOCSDIR}
54
	${CP} ${WRKSRC}/docs/${i} ${STAGEDIR}${DOCSDIR}
66
.endfor
55
.endfor
67
.endif
56
.endif
68
57
(-)distinfo (-2 / +2 lines)
Lines 1-4 Link Here
1
SHA256 (reportlab-2.5.tar.gz) = 805152084cc8421104a5e1e705482a1034598ecb4c266670dfba31996de6ff69
1
SHA256 (reportlab-2.7.tar.gz) = 82b56935e4a75641b40eb22050f0b6e46a0f0a9ebfacdf3b24a1e9c0eef2af6d
2
SIZE (reportlab-2.5.tar.gz) = 1917306
2
SIZE (reportlab-2.7.tar.gz) = 1951460
3
SHA256 (pfbfer-20070710.zip) = fb1462ff6ce8efae58a0c496f0537c5ac16d4895c68f1640c2973db574ddb376
3
SHA256 (pfbfer-20070710.zip) = fb1462ff6ce8efae58a0c496f0537c5ac16d4895c68f1640c2973db574ddb376
4
SIZE (pfbfer-20070710.zip) = 677333
4
SIZE (pfbfer-20070710.zip) = 677333
(-)pkg-descr (-1 / +1 lines)
Lines 19-22 Link Here
19
  scientific papers
19
  scientific papers
20
- Going from XML to PDF in one step!
20
- Going from XML to PDF in one step!
21
21
22
WWW:	http://www.reportlab.org/rl_toolkit.html
22
WWW: http://www.reportlab.org/rl_toolkit.html

Return to bug 186866