freebsd-ports/print/py-reportlab/Makefile

50 lines
1.3 KiB
Makefile
Raw Normal View History

# Created by: Thomas Gellekum <tg@FreeBSD.org>
# $FreeBSD$
PORTNAME= reportlab
PORTVERSION= 1.21.2
PORTREVISION= 3
CATEGORIES= print python
MASTER_SITES= http://www.reportlab.com/ftp/ \
${MASTER_SITE_LOCAL:S/$/:accel/} \
http://www.cs.nctu.edu.tw/~lwhsu/ports/distfiles/:accel
MASTER_SITE_SUBDIR= erwin/:accel
2000-10-17 14:12:37 +02:00
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTFILES= reportlab-${PORTVERSION}.tar.gz \
rl_accel-3004.tgz:accel
MAINTAINER= 5u623l20@gmail.com
2003-02-25 07:25:35 +01:00
COMMENT= Library to create PDF documents using the Python language
PORTSCOUT= ignore:1 # Last version of 1.X branch
USE_PYTHON= yes
2002-04-29 20:37:38 +02:00
USE_PYDISTUTILS= yes
PYDISTUTILS_PKGNAME= Reportlab
WRKSRC= ${WRKDIR}/reportlab_${PORTVERSION:S/./_/g}/reportlab
2003-03-03 08:15:10 +01:00
MAKE_ENV= PACKAGE_PATH="${REPORTLABDIR}"
2002-11-19 17:45:45 +01:00
REPORTLABDIR= ${PYTHONPREFIX_SITELIBDIR}/reportlab
2003-09-27 19:26:00 +02:00
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
DOCS= RML_UserGuide.pdf RML_UserGuide_1_0.pdf diagradoc.pdf graphguide.pdf \
graphics_reference.pdf reference.pdf userguide.pdf
NO_STAGE= yes
post-patch:
2003-09-27 19:26:00 +02:00
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/rl_config.py
@${REINPLACE_CMD} -e 's#with#with26#g' ${WRKSRC}/lib/PyFontify.py
.include <bsd.port.pre.mk>
2002-04-29 20:37:38 +02:00
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for i in ${DOCS}
${CP} ${WRKSRC}/docs/${i} ${DOCSDIR}
.endfor
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>