# ex:ts=8
# Ports collection makefile for:	py-SciParam
# Date created:			Mar 23, 2004
# Whom:				ijliao
#
# $FreeBSD: ports/x11-toolkits/py-SciParam/Makefile,v 1.1 2004/03/23 06:04:30 ijliao Exp $
#

PORTNAME=	SciParam
PORTVERSION=	1.0.1
CATEGORIES=	x11-toolkits python
MASTER_SITES=	ftp://ftp.intevation.de/great-er/sciparam/ \
		http://ftp.intevation.de/great-er/sciparam/ \
		ftp://ftp.gwdg.de/pub/misc/freegis/intevation/great-er/sciparam/ \
		http://ftp.gwdg.de/pub/misc/freegis/intevation/great-er/sciparam/
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Scientific Parameter Dialogs in wxPython based user interfaces

RUN_DEPENDS=	${PYTHON_SITELIBDIR}/wx/__init__.py:${PORTSDIR}/x11-toolkits/py-wxPython

USE_BZIP2=	yes
USE_PYTHON=	yes
USE_PYDISTUTILS=	yes

.if !defined(NOPORTDOCS)
DOCSDIR=	${PREFIX}/share/doc/py-${PORTNAME}
PORTDOCS=	*
.endif

post-install:
	@${FIND} ${PYTHON_SITELIBDIR}/${PORTNAME} -type f | \
		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
	@${FIND} ${PYTHON_SITELIBDIR}/${PORTNAME} -type d | ${SORT} -r | \
		${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	@${CP} -R ${WRKSRC}/doc/ ${DOCSDIR}
.endif

.include <bsd.port.mk>
