Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Oct 2012 20:31:59 +0000 (UTC)
From:      Chris Rees <crees@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r306288 - in head/devel: . rclint rclint/files
Message-ID:  <201210222031.q9MKVxXe000620@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: crees
Date: Mon Oct 22 20:31:59 2012
New Revision: 306288
URL: http://svn.freebsd.org/changeset/ports/306288

Log:
  Long have there been calls for an rc analog to portlint.
  
  This script allows people to make a quick pre-commit check of rc files.
  
  Try using the -v flag if the error messages are too terse.
  
  Feature safe:	yes

Added:
  head/devel/rclint/
  head/devel/rclint/Makefile   (contents, props changed)
  head/devel/rclint/distinfo   (contents, props changed)
  head/devel/rclint/files/
  head/devel/rclint/files/rclint.in   (contents, props changed)
  head/devel/rclint/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Mon Oct 22 20:29:54 2012	(r306287)
+++ head/devel/Makefile	Mon Oct 22 20:31:59 2012	(r306288)
@@ -3709,6 +3709,7 @@
     SUBDIR += raknet
     SUBDIR += rapidsvn
     SUBDIR += rbtools
+    SUBDIR += rclint
     SUBDIR += rcs
     SUBDIR += re2
     SUBDIR += re2c

Added: head/devel/rclint/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/rclint/Makefile	Mon Oct 22 20:31:59 2012	(r306288)
@@ -0,0 +1,30 @@
+# $FreeBSD$
+
+PORTNAME=	rclint
+PORTVERSION=	0.0.0
+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>

Added: head/devel/rclint/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/rclint/distinfo	Mon Oct 22 20:31:59 2012	(r306288)
@@ -0,0 +1,2 @@
+SHA256 (rclint-0.0.0.tar.gz) = 3b542867c85d5b9e461cb75ff7ff85ce8a087f63138ff996b7f7e9f8a7a69c13
+SIZE (rclint-0.0.0.tar.gz) = 5190

Added: head/devel/rclint/files/rclint.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/rclint/files/rclint.in	Mon Oct 22 20:31:59 2012	(r306288)
@@ -0,0 +1,6 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+/usr/bin/env python %%DATADIR%%/rclint.py ${1+"$@"}

Added: head/devel/rclint/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/rclint/pkg-descr	Mon Oct 22 20:31:59 2012	(r306288)
@@ -0,0 +1,5 @@
+Long have there been calls for an rc analog to portlint.
+
+This script allows people to make a quick pre-commit check of rc files.
+
+Try using the -v flag if the error messages are too terse.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210222031.q9MKVxXe000620>