mirror of
https://git.freebsd.org/ports.git
synced 2025-05-04 23:47:37 -04:00
The logic in USES=python will automatically convert this to 3.8+ by itself. Adjust two ports that only had Python 3.7 mentioned but build fine on Python 3.8 too. finance/quickfix: mark BROKEN with PYTHON libtool: compile: c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++ -DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable -Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi -Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings -Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x -MT _quickfix_la-QuickfixPython.lo -MD -MP -MF .deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp -fPIC -DPIC -o .libs/_quickfix_la-QuickfixPython.o warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Wunknown-warning-option] QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found ^~~~~~~~~~ 1 warning and 1 error generated. Reviewed by: portmgr, vishwin, yuri Differential Revision: <https://reviews.freebsd.org/D40568>
65 lines
1.7 KiB
Makefile
65 lines
1.7 KiB
Makefile
PORTNAME= reportlab
|
|
PORTVERSION= 3.6.13
|
|
CATEGORIES= print python
|
|
MASTER_SITES= PYPI \
|
|
https://www.reportlab.com/ftp/
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
|
${PFBFER}
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= bofh@FreeBSD.org
|
|
COMMENT= Library to create PDF documents using the Python language
|
|
WWW= https://www.reportlab.com/
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
RUN_DEPENDS= ${PY_PILLOW}
|
|
|
|
USES= cpe python
|
|
USE_PYTHON= autoplist distutils
|
|
|
|
CONFLICTS= py*-reportlab[^3]-[^3].* \
|
|
py*-reportlab-[^3].*
|
|
|
|
PFBFER_VERSION= 20180109
|
|
PFBFER= pfbfer-${PFBFER_VERSION}.zip
|
|
|
|
MAKE_ENV= PACKAGE_PATH="${REPORTLABDIR}"
|
|
|
|
REPORTLABDIR= ${PYTHONPREFIX_SITELIBDIR}/reportlab
|
|
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
|
|
PORTDOCS= reportlab-userguide.pdf
|
|
|
|
OPTIONS_DEFINE= CJK FREETYPE DOCS
|
|
OPTIONS_DEFAULT=CJK FREETYPE
|
|
CJK_DESC= Adobe CMaps
|
|
CJK_RUN_DEPENDS= ${LOCALBASE}/share/fonts/adobe-cmaps/ac15/cid2code.txt:print/adobe-cmaps
|
|
FREETYPE_LIB_DEPENDS= libfreetype.so:print/freetype2
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|%%DISTDIR%%|${DISTDIR}|' \
|
|
-e 's|%%PFBFER%%|${PFBFER}|' \
|
|
${WRKSRC}/setup.py
|
|
|
|
post-patch-DOCS-on:
|
|
.for f in genAll.py userguide/genuserguide.py
|
|
@${REINPLACE_CMD} -e 's|%%STAGEDIR%%|${STAGEDIR}|' \
|
|
-e 's|%%PYTHON_SITELIBDIR%%|${PYTHON_SITELIBDIR}|' \
|
|
${WRKSRC}/docs/${f}
|
|
.endfor
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/reportlab/*/*.so
|
|
|
|
post-install-DOCS-on:
|
|
@cd ${WRKSRC}/docs && ${PYTHON_CMD} genAll.py
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for i in ${PORTDOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/docs/${i} ${STAGEDIR}${DOCSDIR}
|
|
.endfor
|
|
|
|
do-test:
|
|
@(cd ${WRKSRC}/tests && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} ./runAll.py)
|
|
|
|
.include <bsd.port.mk>
|