1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-14 07:43:06 +00:00
freebsd-ports/print/py-reportlab1/Makefile
TAKATSU Tomonari 0cbe65e47c - Repocopy print/py-reportlab to print/py-reportlab1
to preserve version 1.x and to update to 3.0

  print/py-reportlab:
    - Update print/py-reportlab to 3.0 based on print/py-reportlab2
    - Support STAGEDIR
    - Use PYDISTUTILS_AUTOPLIST
      * Remove pkg-plist, accordingly
    - Set CONFLICTS
    - Add PORTSCOUT
    - Replace tab with a single space after WWW: in pkg-descr

  print/py-reportlab1:
    - Support STAGEDIR
    - Add PKGNAMESUFFIX not to duplicate ports with the same name
    - Set CONFLICTS
    - Use PYDISTUTILS_AUTOPLIST
      * Remove pkg-plist, accordingly
    - Make use of PORTDOCS
    - Set OPTIONS_DEFINE explicitly
    - Fix include statement
    - Make docs unconditional to stage
    - Replace tab with a single space after WWW: in pkg-descr

  print/py-reportlab2:
    - Update CONFLICTS
    - Set PORTSCOUT

  dependent ports:
    - Switch dependency from print/py-reportlab to print/py-reportlab1
      * biology/py-biopython
      * deskutils/gourmet
      * deskutils/griffith
      * games/pythonsudoku
      * misc/pdfmap
      * print/py-trml2pdf
      * www/py-satchmo

PR:		ports/186970
Submitted by:	tota (myself)
Approved by:	Muhammad Moinur Rahman (maintainer)
2014-02-25 12:44:10 +00:00

52 lines
1.4 KiB
Makefile

# 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
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
PKGNAMESUFFIX= 1
DISTFILES= reportlab-${PORTVERSION}.tar.gz \
rl_accel-3004.tgz:accel
MAINTAINER= 5u623l20@gmail.com
COMMENT= Library to create PDF documents using the Python language
CONFLICTS= py*-reportlab[^1]-[^1].* \
py*-reportlab-[^1].*
PORTSCOUT= ignore:1 # Last version of 1.X branch
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_AUTOPLIST= yes
PYDISTUTILS_PKGNAME= Reportlab
WRKSRC= ${WRKDIR}/reportlab_${PORTVERSION:S/./_/g}/reportlab
MAKE_ENV= PACKAGE_PATH="${REPORTLABDIR}"
REPORTLABDIR= ${PYTHONPREFIX_SITELIBDIR}/reportlab
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
PORTDOCS= RML_UserGuide.pdf RML_UserGuide_1_0.pdf diagradoc.pdf graphguide.pdf \
graphics_reference.pdf reference.pdf userguide.pdf
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/rl_config.py
@${REINPLACE_CMD} -e 's#with#with26#g' ${WRKSRC}/lib/PyFontify.py
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${PORTDOCS}
${CP} ${WRKSRC}/docs/${i} ${STAGEDIR}${DOCSDIR}
.endfor
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>