2009-03-15 08:49:35 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.6 2009/03/15 12:49:35 espie Exp $
|
2007-06-24 18:02:32 -04:00
|
|
|
|
2007-09-15 22:52:56 -04:00
|
|
|
COMMENT= template language for XML based vocabularies
|
2007-06-24 18:02:32 -04:00
|
|
|
|
2008-01-13 12:24:11 -05:00
|
|
|
VERSION= 0.9.6
|
|
|
|
DISTNAME= kid-${VERSION}
|
2009-03-15 08:49:35 -04:00
|
|
|
PKGNAME= py-${DISTNAME}p0
|
2007-06-24 18:02:32 -04:00
|
|
|
|
2007-12-10 16:07:51 -05:00
|
|
|
CATEGORIES= devel
|
2007-06-24 18:02:32 -04:00
|
|
|
|
|
|
|
HOMEPAGE= http://www.kid-templating.org/
|
|
|
|
|
|
|
|
MAINTAINER= Martynas Venckus <martynas@openbsd.org>
|
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2008-01-13 12:24:11 -05:00
|
|
|
MASTER_SITES= http://www.kid-templating.org/dist/${VERSION}/
|
2007-06-24 18:02:32 -04:00
|
|
|
|
|
|
|
MODULES= lang/python
|
|
|
|
|
2008-01-13 12:24:11 -05:00
|
|
|
SUBST_VARS= VERSION
|
|
|
|
|
2007-06-24 18:02:32 -04:00
|
|
|
MODPY_SETUPTOOLS= Yes
|
|
|
|
|
2008-01-13 12:24:11 -05:00
|
|
|
pre-configure:
|
|
|
|
rm -fr ${WRKSRC}/doc/html
|
|
|
|
|
2007-06-24 18:02:32 -04:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-kid
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/doc/py-kid/
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-kid
|
|
|
|
cd ${WRKSRC}/examples && \
|
|
|
|
find . -type d -exec ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-kid/{} \; && \
|
|
|
|
find . ! -type d -exec ${INSTALL_DATA} {} ${PREFIX}/share/examples/py-kid/{} \;
|
|
|
|
|
|
|
|
do-regress:
|
|
|
|
cd ${WRKSRC} && ${MODPY_BIN} run_tests.py
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|