# Created by: Joseph Koshy # $FreeBSD$ PORTNAME= fonttools PORTVERSION= 2.4 PORTREVISION= 1 CATEGORIES= print python MASTER_SITES= SF/${PORTNAME}/${PORTVERSION} PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= ports@FreeBSD.org COMMENT= Open source library for manipulating fonts, written in Python BUILD_DEPENDS= ${PYNUMPY} ${PYXML} RUN_DEPENDS= ${PYNUMPY} ${PYXML} OPTIONS_DEFINE= DOCS USE_PYTHON= yes USE_PYDISTUTILS= yes PYDISTUTILS_AUTOPLIST= yes DOCSDIR= ${PREFIX}/share/doc/py-fonttools PORTDOCS= * post-patch: @${REINPLACE_CMD} -e 's|share/man/man1|man/man1|g' ${WRKSRC}/setup.py post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/Doc/ChangeLog ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/Doc/*.html ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/Doc/*.txt ${STAGEDIR}${DOCSDIR} .include