Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Apr 2013 13:07:07 +0000 (UTC)
From:      Pietro Cerutti <gahr@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r316428 - in head/devel/tclcheck: . files
Message-ID:  <201304241307.r3OD77Ip038020@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gahr
Date: Wed Apr 24 13:07:06 2013
New Revision: 316428
URL: http://svnweb.freebsd.org/changeset/ports/316428

Log:
  - Take maintainership (tcltk@)
  - Trim Makefile headers
  - Use the port's build infrastructure instead of providing a custom Makefile

Deleted:
  head/devel/tclcheck/files/
  head/devel/tclcheck/pkg-plist
Modified:
  head/devel/tclcheck/Makefile   (contents, props changed)

Modified: head/devel/tclcheck/Makefile
==============================================================================
--- head/devel/tclcheck/Makefile	Wed Apr 24 12:59:36 2013	(r316427)
+++ head/devel/tclcheck/Makefile	Wed Apr 24 13:07:06 2013	(r316428)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	TclCheck
-# Date created:			28 June 1997
-# Whom:				Sander Vesik <sander@haldjas.folklore.ee>
-#
+# Created by: Sander Vesik <sander@haldjas.folklore.ee>
 # $FreeBSD$
-#
 
 PORTNAME=	tclcheck
 PORTVERSION=	1.1.13
@@ -12,19 +8,34 @@ CATEGORIES=	devel
 MASTER_SITES=	ftp://catless.ncl.ac.uk/pub/
 DISTNAME=	tclCheck-${PORTVERSION}
 
-MAINTAINER=	ports@FreeBSD.org
-COMMENT=	A program to check the nesting of parenthesis in tcl scripts
+MAINTAINER=	tcltk@FreeBSD.org
+COMMENT=	Program to check the nesting of parenthesis in tcl scripts
+
+LICENSE_FILE=	${WRKSRC}/COPYRIGHT
+LICENSE_PERMS=	 dist-mirror dist-sell pkg-mirror pkg-sell auto-accept	
 
 MAN1=		tclCheck.1
-MANCOMPRESSED=	yes
+PLIST_FILES=	bin/tclCheck
+PORTDOCS=	*
 
-pre-build:
-	@${CP} -f ${FILESDIR}/Makefile ${WRKSRC}/Makefile
+.include <bsd.port.options.mk>
 
-post-install:
-.if !defined(NOPORTDOCS)
+post-patch:
+	${REINPLACE_CMD} \
+	    -e '/^BIN/s|=.*|=${PREFIX}/bin|' \
+	    -e '/^CC/s|=.*|=${CC}|' \
+	    -e '/^CFLAGS/s|=.*|=${CFLAGS}|' \
+	    ${WRKSRC}/Makefile
+	${REINPLACE_CMD} \
+	    -e '25s|^|#include <unistd.h>|' \
+	    ${WRKSRC}/tclCheck.c
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/tclCheck ${PREFIX}/bin
+	${INSTALL_MAN} ${WRKSRC}/tclCheck.1 ${MANPREFIX}/man/man1/
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/COPYRIGHT ${WRKSRC}/README ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
 .endif
 
 .include <bsd.port.mk>



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