# $FreeBSD: branches/RELEASE_8_4_0/devel/rclint/Makefile 312513 2013-02-18 16:21:01Z crees $

PORTNAME=	rclint
PORTVERSION=	0.0.5
CATEGORIES=	devel textproc python
MASTER_SITES=	http://www.bayofrum.net/dist/rclint/	\
		LOCAL/crees/

MAINTAINER=	crees@FreeBSD.org
COMMENT=	Checks rc scripts for style and common errors

NO_BUILD=	yes
USE_PYTHON=	yes
SUB_FILES=	${PORTNAME}

PLIST_FILES=	bin/${PORTNAME}
PORTDATA=	${PORTNAME}.py errors.en

post-patch:
	${REINPLACE_CMD} -e "s,\(DATADIR = \)'\.',\1'${DATADIR}'," \
		${WRKSRC}/${PORTNAME}.py

do-install:
	${MKDIR} ${DATADIR}
.for f in ${PORTDATA}
	${INSTALL_SCRIPT} ${WRKSRC}/$f ${DATADIR}
.endfor
	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin

.include <bsd.port.mk>
