diff options
Diffstat (limited to 'graphics/py-blockdiag/Makefile')
-rw-r--r-- | graphics/py-blockdiag/Makefile | 60 |
1 files changed, 26 insertions, 34 deletions
diff --git a/graphics/py-blockdiag/Makefile b/graphics/py-blockdiag/Makefile index 26260f59fab6..b22c40d0b377 100644 --- a/graphics/py-blockdiag/Makefile +++ b/graphics/py-blockdiag/Makefile @@ -2,69 +2,61 @@ # $FreeBSD$ PORTNAME= blockdiag -PORTVERSION= 1.2.4 +PORTVERSION= 1.3.3 CATEGORIES= graphics python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= tota@FreeBSD.org -COMMENT= A simple block-diagram image generator +COMMENT= Simple block-diagram image generator LICENSE= APACHE20 -RUN_DEPENDS= ${PKGNAMEPREFIX}imaging>=1.1.5:${PORTSDIR}/graphics/py-imaging \ - ${PKGNAMEPREFIX}funcparserlib>=0.3.4:${PORTSDIR}/devel/py-funcparserlib \ - ${PKGNAMEPREFIX}ordereddict>0:${PORTSDIR}/devel/py-ordereddict \ +RUN_DEPENDS= ${PKGNAMEPREFIX}pillow>=2.2.1:${PORTSDIR}/graphics/py-pillow \ + ${PKGNAMEPREFIX}funcparserlib>=0.3.6:${PORTSDIR}/devel/py-funcparserlib \ ${PKGNAMEPREFIX}webcolors>=0:${PORTSDIR}/graphics/py-webcolors UNIQUENAME= py-${PORTNAME} -USE_PYTHON= 2 -USE_PYDISTUTILS= easy_install - -MAN1= ${PORTNAME}.1 +USE_PYTHON= yes +USE_PYDISTUTILS= yes +PYDISTUTILS_AUTOPLIST= yes DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME} -PORTDOCS= README.txt +PORTDOCS= README.rst PORTEXAMPLES= * -OPTIONS_DEFINE= IPAFONT PDF +OPTIONS_DEFINE= DOCS EXAMPLES IPAFONT PDF IPAFONT_DESC= Use IPA Font as default PDF_DESC= Enable PDF output OPTIONS_DEFAULT= PDF -NO_STAGE= yes -.include <bsd.port.options.mk> +.include <bsd.port.pre.mk> + +.if ${PYTHON_VER} == 3.1 +IGNORE= does not support in ${PYTHON_VERSION} +.endif .if ${PORT_OPTIONS:MPDF} -RUN_DEPENDS+= ${PKGNAMEPREFIX}reportlab2>0:${PORTSDIR}/print/py-reportlab2 +RUN_DEPENDS+= ${PKGNAMEPREFIX}reportlab>0:${PORTSDIR}/print/py-reportlab .endif .if ${PORT_OPTIONS:MIPAFONT} RUN_DEPENDS+= ${LOCALBASE}/share/font-ipa/ipag.otf:${PORTSDIR}/japanese/font-ipa .endif +post-patch: + ${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/src/blockdiag/utils/bootstrap.py + post-install: -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - @${INSTALL_DATA} ${INSTALL_WRKSRC}/src/${PORTDOCS} ${DOCSDIR} -.endif -.if !defined(NOPORTEXAMPLES) - @${MKDIR} ${EXAMPLESDIR} - @${INSTALL_DATA} ${INSTALL_WRKSRC}/examples/${PORTEXAMPLES} ${EXAMPLESDIR} -.endif - @${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MAN1PREFIX}/man/man1/ - -x-generate-plist: - ${ECHO} bin/blockdiag > pkg-plist.new - ${FIND} ${PYTHON_SITELIBDIR}/${PYEASYINSTALL_EGG} -type f | ${SORT} | \ - ${SED} -e 's,${PYTHON_SITELIBDIR},%%PYTHON_SITELIBDIR%%,' \ - -e 's,${PYEASYINSTALL_EGG},%%PYEASYINSTALL_EGG%%,' >> pkg-plist.new - ${FIND} ${PYTHON_SITELIBDIR}/${PYEASYINSTALL_EGG} -type d -depth | ${SORT} -r | \ - ${SED} -e 's,${PYTHON_SITELIBDIR},@dirrm %%PYTHON_SITELIBDIR%%,' \ - -e 's,${PYEASYINSTALL_EGG},%%PYEASYINSTALL_EGG%%,' >> pkg-plist.new - -.include <bsd.port.mk> + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${INSTALL_WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR} + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${INSTALL_WRKSRC}/examples/${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/man/man1/ + @${ECHO_CMD} man/man1/${PORTNAME}.1.gz >> ${TMPPLIST} + +.include <bsd.port.post.mk> |