openbsd-ports/devel/py-Checker/Makefile

47 lines
1.0 KiB
Makefile
Raw Normal View History

2004-07-26 17:04:24 -04:00
# $OpenBSD: Makefile,v 1.22 2004/07/26 21:04:24 xsa Exp $
2004-07-26 17:04:24 -04:00
COMMENT= "Python codes checker"
VERSION= 0.8.13
2001-11-28 02:39:34 -05:00
DISTNAME= pychecker-${VERSION}
PKGNAME= py-Checker-${VERSION}
CATEGORIES= devel
2001-11-28 02:39:34 -05:00
HOMEPAGE= http://pychecker.sourceforge.net/
2001-11-28 02:39:34 -05:00
MAINTAINER= Shell Hung <shell@openbsd.org>
# BSD
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2002-05-13 14:50:36 -04:00
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pychecker/}
MODULES= python
MODPY_DISTUTILS_INSTALLARGS= -O1
2001-11-28 02:39:34 -05:00
DOC_DIR= ${PREFIX}/share/doc/py-Checker/
DOC_FILE= CHANGELOG KNOWN_BUGS TODO MAINTAINERS README
EXAMPLESDIR= ${PREFIX}/share/examples/py-Checker/
post-build:
@perl -pi -e 's,%%PYTHON%%,${LOCALBASE}/bin/python${MODPY_VERSION},g' \
${WRKSRC}/test_check.sh
post-install:
2001-11-28 02:39:34 -05:00
${INSTALL_DATA_DIR} ${DOC_DIR}
.for i in ${DOC_FILE}
${INSTALL_DATA} ${WRKSRC}/$i ${DOC_DIR}
.endfor
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/pycheckrc ${EXAMPLESDIR}
do-regress:
@cd ${WRKSRC} && sh ./test_check.sh
.include <bsd.port.mk>