mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-01 01:17:02 +00:00
eaedf20abc
* Switch run-time dependency from PIL to Pillow - Remove indefinate article from COMMENT - Use USE_PYDISTUTILS= yes instead of USE_PYDISTUTILS= easy_install - Use PYDISTUTILS_AUTOPLIST * Remove pkg-plist, accordingly - Make use of UNIQUENAME - Add DOCS and EXAMPLES to OPTIONS_DEFINE to fix options default - Support STAGEDIR * Make DOCS and EXAMPLES unconditional to stage - Unmute INSTALL_DATA and INSTALL_MAN in post-install target
52 lines
1.3 KiB
Makefile
52 lines
1.3 KiB
Makefile
# Created by: TAKATSU Tomonari <tota@FreeBSD.org>
|
|
# $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 <bsd.port.pre.mk>
|
|
|
|
.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 <bsd.port.post.mk>
|