diff options
Diffstat (limited to 'x11-toolkits/py-gui/Makefile')
-rw-r--r-- | x11-toolkits/py-gui/Makefile | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/x11-toolkits/py-gui/Makefile b/x11-toolkits/py-gui/Makefile new file mode 100644 index 000000000000..866bc3332687 --- /dev/null +++ b/x11-toolkits/py-gui/Makefile @@ -0,0 +1,42 @@ +# Ports collection makefile for: py-gui +# Date created: 21 June 2004 +# Whom: Hye-Shik Chang +# +# $FreeBSD$ + +PORTNAME= gui +PORTVERSION= 1.4 +CATEGORIES= x11-toolkits python +MASTER_SITES= http://www.cosc.canterbury.ac.nz/~greg/python_gui/ +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= PyGUI-${PORTVERSION} + +MAINTAINER= perky@FreeBSD.org +COMMENT= A cross-platform pythonic GUI API + +USE_PYTHON= yes +USE_PYDISTUTILS= yes +USE_REINPLACE= yes +USE_GNOME= pygtk2 + +DOCSDIR= share/doc/${PKGNAMEPREFIX}${PORTNAME} +EXAMPLESDIR= share/examples/${PKGNAMEPREFIX}${PORTNAME} + +post-extract: + ${RM} -rf ${WRKSRC}/GUI/Mac + ${TOUCH} ${WRKSRC}/GUI/Gtk/__init__.py \ + ${WRKSRC}/GUI/Generic/__init__.py + +post-patch: + ${REINPLACE_CMD} -e 's/"GUI.Mac",//g' ${WRKSRC}/setup.py + +post-install: +.if !defined(NOPORTDOCS) + ${MKDIR} ${PREFIX}/${DOCSDIR} + ${TAR} -C ${WRKSRC}/Doc -cf - . | ${TAR} -C ${PREFIX}/${DOCSDIR} -xf - + ${MKDIR} ${PREFIX}/${EXAMPLESDIR} + ${TAR} -C ${WRKSRC}/Demos -cf - . | \ + ${TAR} -C ${PREFIX}/${EXAMPLESDIR} -xf - +.endif + +.include <bsd.port.mk> |