# New ports collection makefile for:	py-kiwi
# Date created:		2006-05-04
# Whom:			Nicola Vitale	<nivit@email.it>
#
# $FreeBSD: ports/x11-toolkits/py-kiwi/Makefile,v 1.1 2006/06/20 17:29:38 stefan Exp $
#

PORTNAME=	kiwi
PORTVERSION=	1.9.8
CATEGORIES=	x11-toolkits python
MASTER_SITES=	http://www.async.com.br/projects/${PORTNAME}/download/ \
		http://nivi.interfree.it/distfiles/${PORTNAME}/
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	nivit@email.it
COMMENT=	A framework and a set of enhanced widgets based on PyGTK

BUILD_DEPENDS=	pygtk-codegen-2.0:${PORTSDIR}/x11-toolkits/py-gtk2
RUN_DEPENDS=	${BUILD_DEPENDS}

USE_GETTEXT=	yes
USE_GNOME=	libglade2
USE_PYTHON=	yes
USE_PYDISTUTILS=	yes

EXAMPLESDIR=	${PREFIX}/share/examples/py-${PORTNAME}

post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${EXAMPLESDIR}
	cd ${WRKSRC}/examples && ${FIND} . -type d -exec ${MKDIR} ${EXAMPLESDIR}/{} ";"
	cd ${WRKSRC}/examples && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${EXAMPLESDIR}/{} ";"
.endif

.include <bsd.port.mk>
