2000-08-22 13:45:41 +02:00
|
|
|
# New ports collection makefile for: reportlab
|
|
|
|
# Date created: 17 August 2000
|
|
|
|
# Whom: Thomas Gellekum <tg@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= reportlab
|
2002-03-28 20:38:58 +01:00
|
|
|
PORTVERSION= 1.13
|
2000-08-22 13:45:41 +02:00
|
|
|
CATEGORIES= print python
|
|
|
|
MASTER_SITES= ftp://ftp.reportlab.com/
|
2000-10-17 14:12:37 +02:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
2002-01-10 12:24:57 +01:00
|
|
|
DISTNAME= ReportLab_${PORTVERSION:S/./_/}
|
|
|
|
EXTRACT_SUFX= .tgz
|
2000-08-22 13:45:41 +02:00
|
|
|
|
2002-01-10 12:24:57 +01:00
|
|
|
MAINTAINER= perky@fallin.lv
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ${PYDISTUTILS}
|
2002-03-23 08:46:07 +01:00
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/_imaging.so:${PORTSDIR}/graphics/py-imaging
|
2000-08-22 13:45:41 +02:00
|
|
|
|
2000-09-12 13:54:11 +02:00
|
|
|
USE_PYTHON= yes
|
2000-12-22 13:49:54 +01:00
|
|
|
WRKSRC= ${WRKDIR}/reportlab
|
2000-10-17 14:12:37 +02:00
|
|
|
CONFIGURE_ENV= PYTHON=${PYTHON_CMD}
|
|
|
|
ALL_TARGET= sharedmods
|
|
|
|
MAKE_FLAGS= OPT="${CFLAGS}"
|
2000-08-22 13:45:41 +02:00
|
|
|
|
2002-03-23 08:46:07 +01:00
|
|
|
REPORTLABDIR= ${PREFIX}/lib/${PYTHON_VERSION}/site-packages/reportlab
|
2000-08-22 13:45:41 +02:00
|
|
|
DOCDIR= ${PREFIX}/share/doc/reportlab
|
|
|
|
EXAMPLEDIR= ${PREFIX}/share/examples/reportlab
|
|
|
|
|
2002-01-10 12:24:57 +01:00
|
|
|
post-patch:
|
|
|
|
${MV} ${WRKSRC}/lib/setup.py ${WRKDIR}
|
2000-10-17 14:12:37 +02:00
|
|
|
|
|
|
|
do-build:
|
2002-01-10 12:24:57 +01:00
|
|
|
@(cd ${WRKDIR}; \
|
|
|
|
${PYTHON_CMD} setup.py build)
|
2000-10-17 14:12:37 +02:00
|
|
|
|
2000-08-22 13:45:41 +02:00
|
|
|
do-install:
|
2002-01-10 12:24:57 +01:00
|
|
|
@(cd ${WRKDIR}; \
|
2002-03-23 08:46:07 +01:00
|
|
|
${PYTHON_CMD} setup.py install -c -O1 --prefix="${PREFIX}")
|
|
|
|
|
|
|
|
${MKDIR} ${REPORTLABDIR}/fonts
|
|
|
|
.for fontfile in LeERC___.AFM LeERC___.PFB
|
|
|
|
(cd ${WRKDIR}/reportlab/fonts; \
|
|
|
|
${INSTALL_DATA} ${fontfile} ${REPORTLABDIR}/fonts)
|
|
|
|
.endfor
|
2000-08-22 13:45:41 +02:00
|
|
|
|
2002-01-10 12:24:57 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2000-08-22 13:45:41 +02:00
|
|
|
@${MKDIR} ${EXAMPLEDIR}
|
|
|
|
cd ${WRKSRC}/demos; tar cpf - * | (cd ${EXAMPLEDIR}; tar xpf -)
|
|
|
|
|
|
|
|
@${MKDIR} ${DOCDIR}
|
2002-01-10 12:24:57 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/*.pdf ${DOCDIR}
|
2000-08-22 13:45:41 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|