06e1e1c386
- Bump PORTREVISION Feature safe: yes
65 lines
1.9 KiB
Makefile
65 lines
1.9 KiB
Makefile
# New ports collection makefile for: py-blockdiag
|
|
# Date created: 2011-08-02
|
|
# Whom: TAKATSU Tomonari <tota@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= blockdiag
|
|
PORTVERSION= 1.1.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= graphics python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= tota@FreeBSD.org
|
|
COMMENT= A simple block-diagram image generator
|
|
|
|
LICENSE= ASL
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
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 \
|
|
${PKGNAMEPREFIX}webcolors>=0:${PORTSDIR}/graphics/py-webcolors
|
|
|
|
USE_PYTHON= 2.4-2.7
|
|
USE_PYDISTUTILS= easy_install
|
|
|
|
MAN1= ${PORTNAME}.1
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${UNIQUENAME}
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/${UNIQUENAME}
|
|
|
|
PORTDOCS= README.txt
|
|
PORTEXAMPLES= *
|
|
|
|
OPTIONS= PDF "Enable PDF output" On
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if !defined(WITHOUT_PDF)
|
|
RUN_DEPENDS+= ${PKGNAMEPREFIX}reportlab2>0:${PORTSDIR}/print/py-reportlab2
|
|
.endif
|
|
|
|
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>
|