# Created by: TAKATSU Tomonari # $FreeBSD$ PORTNAME= nwdiag PORTVERSION= 1.0.0 CATEGORIES= graphics python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= tota@FreeBSD.org COMMENT= Simple network-diagram image generator LICENSE= APACHE20 RUN_DEPENDS= ${PKGNAMEPREFIX}pillow>=2.2.1:${PORTSDIR}/graphics/py-pillow \ ${PKGNAMEPREFIX}funcparserlib>=0.3.6:${PORTSDIR}/devel/py-funcparserlib \ ${PKGNAMEPREFIX}blockdiag>=1.3.0:${PORTSDIR}/graphics/py-blockdiag USE_PYTHON= yes USE_PYDISTUTILS= yes PYDISTUTILS_AUTOPLIST= yes DOCSDIR= ${PREFIX}/share/doc/${UNIQUENAME} EXAMPLESDIR= ${PREFIX}/share/examples/${UNIQUENAME} PORTDOCS= README.txt PORTEXAMPLES= * OPTIONS_DEFINE= DOCS EXAMPLES .include .if ${PYTHON_VER} == 3.1 IGNORE= does not support in ${PYTHON_VERSION} .endif post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${INSTALL_WRKSRC}/src/${PORTDOCS} ${STAGEDIR}${DOCSDIR} @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} .for d in ${PORTNAME} packetdiag ${INSTALL_DATA} \ ${INSTALL_WRKSRC}/examples/${d}/${PORTEXAMPLES} \ ${STAGEDIR}${EXAMPLESDIR} .endfor .for f in ${PORTNAME} rackdiag ${INSTALL_MAN} ${WRKSRC}/${f}.1 ${STAGEDIR}${PREFIX}/man/man1/ @${ECHO_CMD} man/man1/${f}.1.gz >> ${TMPPLIST} .endfor .include