freebsd-ports/print/py-reportlab/Makefile
Patrick Li 130ccd4f45 Update to 1.13
PR:		36419
Submitted by:	maintainer
2002-03-28 19:38:58 +00:00

56 lines
1.3 KiB
Makefile

# New ports collection makefile for: reportlab
# Date created: 17 August 2000
# Whom: Thomas Gellekum <tg@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= reportlab
PORTVERSION= 1.13
CATEGORIES= print python
MASTER_SITES= ftp://ftp.reportlab.com/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ReportLab_${PORTVERSION:S/./_/}
EXTRACT_SUFX= .tgz
MAINTAINER= perky@fallin.lv
BUILD_DEPENDS= ${PYDISTUTILS}
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/_imaging.so:${PORTSDIR}/graphics/py-imaging
USE_PYTHON= yes
WRKSRC= ${WRKDIR}/reportlab
CONFIGURE_ENV= PYTHON=${PYTHON_CMD}
ALL_TARGET= sharedmods
MAKE_FLAGS= OPT="${CFLAGS}"
REPORTLABDIR= ${PREFIX}/lib/${PYTHON_VERSION}/site-packages/reportlab
DOCDIR= ${PREFIX}/share/doc/reportlab
EXAMPLEDIR= ${PREFIX}/share/examples/reportlab
post-patch:
${MV} ${WRKSRC}/lib/setup.py ${WRKDIR}
do-build:
@(cd ${WRKDIR}; \
${PYTHON_CMD} setup.py build)
do-install:
@(cd ${WRKDIR}; \
${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
.if !defined(NOPORTDOCS)
@${MKDIR} ${EXAMPLEDIR}
cd ${WRKSRC}/demos; tar cpf - * | (cd ${EXAMPLEDIR}; tar xpf -)
@${MKDIR} ${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/docs/*.pdf ${DOCDIR}
.endif
.include <bsd.port.mk>