1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/print/py-trml2pdf/Makefile
Muhammad Moinur Rahman f6f0b2f805 print/py-trml2pdf: Change RUN_DEPENDS to print/py-reportlab
- Add LICENSE LGPL21

PR:		237081
Approved by:	ports@caomhin.org
2019-04-09 19:39:49 +00:00

46 lines
1.1 KiB
Makefile

# Created by: Kevin Golding <ports@caomhin.org>
# $FreeBSD$
PORTNAME= trml2pdf
PORTVERSION= 1.2
PORTREVISION= 5
CATEGORIES= print python
MASTER_SITES= SF/kraft/${PORTNAME}/${PORTVERSION}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= ports@caomhin.org
COMMENT= Tiny RML2PDF easily creates PDF documents
LICENSE= LGPL21
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}reportlab>=0:print/py-reportlab@${PY_FLAVOR}
USES= python:2.7 shebangfix tar:bzip2
USE_PYTHON= flavors
NO_BUILD= yes
NO_ARCH= yes
SHEBANG_FILES= trml2pdf/trml2pdf.py
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
OPTIONS_DEFINE= DOCS EXAMPLES
do-install:
@${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/trml2pdf
${INSTALL_SCRIPT} ${WRKSRC}/trml2pdf/* \
${STAGEDIR}${PYTHON_SITELIBDIR}/trml2pdf
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR}
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${CP} -R ${WRKSRC}/rmls/ ${STAGEDIR}${EXAMPLESDIR}/rmls
.include <bsd.port.mk>