aboutsummaryrefslogtreecommitdiffstats
path: root/print/py-trml2pdf/Makefile
blob: 20f4a83b538de99ddbf6e95eb90716e7a9171a26 (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
# New ports collection makefile for:    py-trml2pdf
# Date created:             22 November 2009
# Whom:                 Kevin Golding <ports@caomhin.org>
#
# $FreeBSD$
#

PORTNAME=   trml2pdf
PORTVERSION=    1.2
PORTREVISION=   1
CATEGORIES= print python
MASTER_SITES=   SF/kraft/${PORTNAME}/${PORTVERSION}
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= ports@caomhin.org
COMMENT=    Tiny RML2PDF easily creates PDF documents.

RUN_DEPENDS=    ${LOCALBASE}/bin/pildriver.py:${PORTSDIR}/graphics/py-imaging \
        ${PYTHON_SITELIBDIR}/reportlab/__init__.py:${PORTSDIR}/print/py-reportlab

NO_BUILD=   yes

USE_BZIP2=  yes
USE_PYTHON= yes

DOCSDIR=    ${PREFIX}/share/doc/py-${PORTNAME}
EXAMPLESDIR=    ${PREFIX}/share/examples/py-${PORTNAME}

do-install:
    @${MKDIR} ${PYTHON_SITELIBDIR}/trml2pdf
    @${INSTALL_SCRIPT} ${WRKSRC}/trml2pdf/* ${PYTHON_SITELIBDIR}/trml2pdf

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR}
.endif

.if !defined(NOPORTEXAMPLES)
    @${MKDIR} ${EXAMPLESDIR}
    ${CP} -R ${WRKSRC}/rmls/ ${EXAMPLESDIR}/rmls
.endif

.include <bsd.port.mk>