2011-08-07 06:02:49 +00:00
|
|
|
PORTNAME= nwdiag
|
2022-05-06 10:37:51 +00:00
|
|
|
PORTVERSION= 3.0.0
|
2024-03-09 12:39:47 +00:00
|
|
|
PORTREVISION= 1
|
2011-08-07 06:02:49 +00:00
|
|
|
CATEGORIES= graphics python
|
2023-01-11 15:47:15 +00:00
|
|
|
MASTER_SITES= PYPI
|
2011-08-07 06:02:49 +00:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
|
|
|
|
MAINTAINER= tota@FreeBSD.org
|
2014-04-26 21:18:44 +00:00
|
|
|
COMMENT= Simple network-diagram image generator
|
2022-09-07 21:06:12 +00:00
|
|
|
WWW= http://blockdiag.com/en/nwdiag/
|
2011-08-07 06:02:49 +00:00
|
|
|
|
2013-12-30 20:55:18 +00:00
|
|
|
LICENSE= APACHE20
|
2014-09-26 07:40:21 +00:00
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
2011-08-07 06:02:49 +00:00
|
|
|
|
2020-04-27 13:54:38 +00:00
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}blockdiag>=1.5.0:graphics/py-blockdiag@${PY_FLAVOR}
|
2020-02-23 15:25:53 +00:00
|
|
|
|
2023-06-14 22:00:28 +00:00
|
|
|
USES= python
|
2014-09-26 07:40:21 +00:00
|
|
|
USE_PYTHON= autoplist distutils
|
2011-08-07 06:02:49 +00:00
|
|
|
|
2015-08-17 14:20:40 +00:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PKGBASE}
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGBASE}
|
2011-08-07 06:02:49 +00:00
|
|
|
|
2014-09-26 07:40:21 +00:00
|
|
|
PORTDOCS= README.rst
|
2011-08-07 06:02:49 +00:00
|
|
|
PORTEXAMPLES= *
|
|
|
|
|
2014-04-26 21:18:44 +00:00
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
|
|
|
|
post-install:
|
2016-04-10 09:39:02 +00:00
|
|
|
.for f in ${PORTNAME} rackdiag
|
2024-03-09 12:39:47 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/${f}.1 ${STAGEDIR}${PREFIX}/share/man/man1/
|
|
|
|
@${ECHO_CMD} share/man/man1/${f}.1.gz >> ${TMPPLIST}
|
2016-04-10 09:39:02 +00:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
post-install-DOCS-on:
|
2014-04-26 21:18:44 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2014-09-26 07:40:21 +00:00
|
|
|
${INSTALL_DATA} ${INSTALL_WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
2016-04-10 09:39:02 +00:00
|
|
|
|
|
|
|
post-install-EXAMPLES-on:
|
2014-04-26 21:18:44 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
2012-12-16 15:57:24 +00:00
|
|
|
.for d in ${PORTNAME} packetdiag
|
2014-09-26 07:40:21 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/${d}
|
2014-04-26 21:18:44 +00:00
|
|
|
${INSTALL_DATA} \
|
2012-12-16 15:57:24 +00:00
|
|
|
${INSTALL_WRKSRC}/examples/${d}/${PORTEXAMPLES} \
|
2014-09-26 07:40:21 +00:00
|
|
|
${STAGEDIR}${EXAMPLESDIR}/${d}
|
2012-12-16 15:57:24 +00:00
|
|
|
.endfor
|
2011-08-07 06:02:49 +00:00
|
|
|
|
2016-04-10 09:39:02 +00:00
|
|
|
.include <bsd.port.mk>
|