aboutsummaryrefslogtreecommitdiffstats
path: root/print/py-reportlab/Makefile
blob: 3a6e60737ea652b5a4cc4b2a04dab8a7cb3558fb (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
# New ports collection makefile for:    reportlab
# Date created:     17 August 2000
# Whom:         Thomas Gellekum <tg@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   reportlab
PORTVERSION=    1.14
CATEGORIES= print python
MASTER_SITES=   ftp://ftp.reportlab.com/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   ReportLab_${PORTVERSION:S/./_/}
EXTRACT_SUFX=   .tgz

MAINTAINER= perky@FreeBSD.org

RUN_DEPENDS=    ${PYTHON_SITELIBDIR}/_imaging.so:${PORTSDIR}/graphics/py-imaging

USE_PYTHON= yes
USE_PYDISTUTILS=    yes
NO_WRKSUBDIR=   yes

REPORTLABDIR=   ${PREFIX}/lib/${PYTHON_VERSION}/site-packages/reportlab
DOCDIR=     ${PREFIX}/share/doc/reportlab
EXAMPLEDIR= ${PREFIX}/share/examples/reportlab

post-patch:
    ${MV} ${WRKSRC}/reportlab/lib/setup.py ${WRKDIR}

post-install:
    ${MKDIR} ${REPORTLABDIR}/fonts
.for fontfile in LeERC___.AFM LeERC___.PFB
    (cd ${WRKDIR}/reportlab/fonts; \
        ${INSTALL_DATA} ${fontfile} ${REPORTLABDIR}/fonts)
.endfor

.if !defined(NOPORTDOCS)
    @${MKDIR} ${EXAMPLEDIR}
    cd ${WRKSRC}/reportlab/demos; tar cpf - * | (cd ${EXAMPLEDIR}; tar xpf -)

    @${MKDIR} ${DOCDIR}
    ${INSTALL_DATA} ${WRKSRC}/reportlab/docs/*.pdf ${DOCDIR}
.endif

.include <bsd.port.mk>