Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Jan 2014 10:58:52 +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: r340598 - in head/misc/tkcron: . files
Message-ID:  <201401211058.s0LAwqLa018522@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gahr
Date: Tue Jan 21 10:58:52 2014
New Revision: 340598
URL: http://svnweb.freebsd.org/changeset/ports/340598
QAT: https://qat.redports.org/buildarchive/r340598/

Log:
  - Convert to USES=tk
  - STAGE-clean
  - Simplify install procedure

Deleted:
  head/misc/tkcron/files/Makefile
Modified:
  head/misc/tkcron/Makefile   (contents, props changed)
  head/misc/tkcron/files/patch-aa   (contents, props changed)

Modified: head/misc/tkcron/Makefile
==============================================================================
--- head/misc/tkcron/Makefile	Tue Jan 21 10:53:40 2014	(r340597)
+++ head/misc/tkcron/Makefile	Tue Jan 21 10:58:52 2014	(r340598)
@@ -15,16 +15,19 @@ EXTRACT_SUFX=	.tcl.gz
 MAINTAINER=	cy@FreeBSD.org
 COMMENT=	A frontend to crontab
 
-USE_TK_RUN=	85
+USES=		tk:85,run
 
 EXTRACT_CMD=	${GZIP_CMD}
 EXTRACT_BEFORE_ARGS= -cd
 EXTRACT_AFTER_ARGS= > tkcron.tcl
+NO_BUILD=	yes
 NO_WRKSUBDIR=	yes
 PLIST_FILES=	bin/tkcron
 
-NO_STAGE=	yes
-post-extract:
-	@${CP} ${FILESDIR}/Makefile ${WRKSRC}
+post-patch:
+	${REINPLACE_CMD} -e 's|%%WISH%%|${WISH}|' ${WRKSRC}/tkcron.tcl
+
+do-install:
+	${INSTALL_SCRIPT} ${WRKSRC}/tkcron.tcl ${STAGEDIR}${PREFIX}/bin/tkcron
 
 .include <bsd.port.mk>

Modified: head/misc/tkcron/files/patch-aa
==============================================================================
--- head/misc/tkcron/files/patch-aa	Tue Jan 21 10:53:40 2014	(r340597)
+++ head/misc/tkcron/files/patch-aa	Tue Jan 21 10:58:52 2014	(r340598)
@@ -4,7 +4,7 @@
 -#!/usr/local/bin/wish
 +#! /bin/sh
 +# the next line restarts using wish \
-+exec /usr/local/bin/wish8.5 $0 ${1+"$@"}
++exec %%WISH%% $0 ${1+"$@"}
  
  # A simple interface to ease the creation of crontab jobs
  # Cedric BEUST (beust@sophia.inria.fr)



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