aboutsummaryrefslogtreecommitdiff
path: root/graphics/py-blockdiag/Makefile
diff options
context:
space:
mode:
authorTAKATSU Tomonari <tota@FreeBSD.org>2011-08-05 14:10:42 +0000
committerTAKATSU Tomonari <tota@FreeBSD.org>2011-08-05 14:10:42 +0000
commitbee972d9b97600fbe88566d0851a3e90488e6caf (patch)
treed094930734cb0cf3ee57adafdb06e5ed9a3b2800 /graphics/py-blockdiag/Makefile
parentab81376f6c4813bad256092e89381ad11aaf496e (diff)
downloadports-bee972d9b97600fbe88566d0851a3e90488e6caf.tar.gz
ports-bee972d9b97600fbe88566d0851a3e90488e6caf.zip
Notes
Diffstat (limited to 'graphics/py-blockdiag/Makefile')
-rw-r--r--graphics/py-blockdiag/Makefile52
1 files changed, 52 insertions, 0 deletions
diff --git a/graphics/py-blockdiag/Makefile b/graphics/py-blockdiag/Makefile
new file mode 100644
index 000000000000..13e9c7aeabfc
--- /dev/null
+++ b/graphics/py-blockdiag/Makefile
@@ -0,0 +1,52 @@
+# New ports collection makefile for: py-blockdiag
+# Date created: 2011-08-02
+# Whom: TAKATSU Tomonari <tota@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= blockdiag
+PORTVERSION= 0.8.4
+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}webcolors>=0:${PORTSDIR}/graphics/py-webcolors
+
+USE_PYTHON= yes
+USE_PYDISTUTILS= easy_install
+
+DOCSDIR= ${PREFIX}/share/doc/${UNIQUENAME}
+EXAMPLESDIR= ${PREFIX}/share/examples/${UNIQUENAME}
+
+PORTDOCS= README.txt
+PORTEXAMPLES= *
+
+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
+
+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>