openbsd-ports/www/py-nevow/Makefile

53 lines
1.3 KiB
Makefile
Raw Normal View History

2010-11-22 03:36:47 -05:00
# $OpenBSD: Makefile,v 1.11 2010/11/22 08:36:53 espie Exp $
COMMENT= web application construction kit
2009-12-31 07:34:45 -05:00
VERSION= 0.10.0
DISTNAME= Nevow-${VERSION}
2010-08-30 18:02:33 -04:00
PKGNAME= py-nevow-${VERSION}
2010-09-16 04:18:31 -04:00
REVISION= 2
CATEGORIES= www
HOMEPAGE= http://divmod.org/trac/wiki/DivmodNevow
MAINTAINER= Eric Faurot <eric@openbsd.org>
# MIT
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://ekyo.nerim.net/distfiles/
MODULES= lang/python
2010-09-16 04:18:31 -04:00
MODPY_SETUPTOOLS= Yes
2010-11-22 03:36:47 -05:00
RUN_DEPENDS= devel/py-twisted/web \
devel/py-epsilon
2009-11-19 12:16:34 -05:00
BUILD_DEPENDS= ${RUN_DEPENDS} \
2010-11-22 03:36:47 -05:00
devel/py-twisted/lore
2009-11-19 12:16:34 -05:00
MODPY_EGG_VERSION= ${VERSION}
2009-11-19 12:16:34 -05:00
MODPY_DISTUTILS_INSTALLARGS= --install-data=/usr/local/share/doc
2010-10-19 04:02:53 -04:00
USE_GROFF = Yes
2009-11-19 12:16:34 -05:00
pre-configure:
perl -pi -e 's/h3>/h2>/g' ${WRKSRC}/doc/howto/glossary.xhtml
cd ${WRKSRC}/doc/howto && lore
2009-11-19 12:16:34 -05:00
mv ${WRKSRC}/doc/howto ${WRKSRC}/py-nevow
post-install:
2009-11-19 12:16:34 -05:00
${INSTALL_MAN} ${WRKSRC}/doc/man/nevow-xmlgettext.1 ${PREFIX}/man/man1
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-nevow
cp -r ${WRKSRC}/examples/* ${PREFIX}/share/examples/py-nevow
TRIALDIR= ${WRKDIR}/trial
do-regress: install
mkdir -m 0777 ${TRIALDIR} && cd ${TRIALDIR} && ${SUDO} su -m nobody -c \
"${LOCALBASE}/bin/trial ${MODPY_SITEPKG}/nevow/test \
${MODPY_SITEPKG}/formless/test"
.include <bsd.port.mk>