Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 May 2009 03:00:21 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/134624: Update port: devel/tkcon to 2.5
Message-ID:  <20090518030021.bee98e2f.tkato432@yahoo.com>
Resent-Message-ID: <200905171810.n4HIA1k5057424@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         134624
>Category:       ports
>Synopsis:       Update port: devel/tkcon to 2.5
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 17 18:10:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.2-RELEASE i386
>Organization:
>Environment:
>Description:
- Update to version 2.5

New file:
files/patch-tkcon.tcl

Remove file:
files/patch-aa
pkg-plist

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/devel/tkcon/Makefile devel/tkcon/Makefile
--- /usr/ports/devel/tkcon/Makefile	2008-04-09 23:34:10.000000000 +0900
+++ devel/tkcon/Makefile	2009-05-16 18:39:00.000000000 +0900
@@ -6,32 +6,29 @@
 #
 
 PORTNAME=	tkcon
-PORTVERSION=	2.4
-PORTREVISION=	1
+PORTVERSION=	2.5
 CATEGORIES=	devel tcl tk
-MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
-MASTER_SITE_SUBDIR=${PORTNAME}
+MASTER_SITES=	SF
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Tk console for Tcl
 
-RUN_DEPENDS=	wish8.4:${PORTSDIR}/x11-toolkits/tk84
-
 NO_BUILD=	yes
-REINPLACE_ARGS=	-i.bak -E
+USE_TK_WRAPPER=	yes
+
+PORTDOCS=	*
+PLIST_FILES=	bin/${PORTNAME}
 
 post-patch:
-	@${REINPLACE_CMD} \
-		-e 's,docs\s+"([^"]+)",docs	"file:${PREFIX}/share/doc/tkcon/index.html\\n\1",' ${WRKSRC}/tkcon.tcl
+	@${REINPLACE_CMD} -e \
+		's|%%DOCSDIR%%|${DOCSDIR}|g' ${WRKSRC}/${PORTNAME}.tcl
 
 do-install:
-	${INSTALL_SCRIPT} ${WRKSRC}/tkcon.tcl ${PREFIX}/bin/tkcon
-
+	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.tcl ${PREFIX}/bin/${PORTNAME}
 .if !defined(NOPORTDOCS)
-post-install:
-	${MKDIR} ${PREFIX}/share/doc/tkcon
-	${INSTALL_DATA} ${WRKSRC}/README.txt $(PREFIX)/share/doc/tkcon/README.tkcon
-	${INSTALL_DATA} ${WRKSRC}/docs/* $(PREFIX)/share/doc/tkcon
+	@${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR}/README.${PORTNAME}
+	${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCSDIR}
 .endif
 
 .include <bsd.port.mk>
diff -urN /usr/ports/devel/tkcon/distinfo devel/tkcon/distinfo
--- /usr/ports/devel/tkcon/distinfo	2006-01-22 17:30:07.000000000 +0900
+++ devel/tkcon/distinfo	2009-05-16 18:26:04.000000000 +0900
@@ -1,3 +1,3 @@
-MD5 (tkcon-2.4.tar.gz) = 415905fe3d81aa957f9c4424c219784e
-SHA256 (tkcon-2.4.tar.gz) = ebfa18474216d7df856fadf5778f66371dae8a79be1ca57200b7f5ba22920c6a
-SIZE (tkcon-2.4.tar.gz) = 107436
+MD5 (tkcon-2.5.tar.gz) = 7d8e83727b8f9630d1b7e233cda145af
+SHA256 (tkcon-2.5.tar.gz) = 3ff3eb7198b060d2c3bdc195c1f7d8532e63742447179fbb6091a3886bab42a9
+SIZE (tkcon-2.5.tar.gz) = 139834
diff -urN /usr/ports/devel/tkcon/files/patch-aa devel/tkcon/files/patch-aa
--- /usr/ports/devel/tkcon/files/patch-aa	2003-08-17 10:51:48.000000000 +0900
+++ devel/tkcon/files/patch-aa	1970-01-01 09:00:00.000000000 +0900
@@ -1,10 +0,0 @@
---- tkcon.tcl	Thu Apr  1 05:49:22 1999
-+++ tkcon.tcl	Mon Jun 28 21:35:52 1999
-@@ -1,6 +1,6 @@
- #!/bin/sh
- # \
--exec wish "$0" ${1+"$@"}
-+if [ X$WISH != X ]; then exec $WISH "$0" -- "$@"; else exec wish8.4 "$0" -- "$@"; fi;
- 
- #
- ## tkcon.tcl
diff -urN /usr/ports/devel/tkcon/files/patch-tkcon.tcl devel/tkcon/files/patch-tkcon.tcl
--- /usr/ports/devel/tkcon/files/patch-tkcon.tcl	1970-01-01 09:00:00.000000000 +0900
+++ devel/tkcon/files/patch-tkcon.tcl	2009-05-16 18:41:11.000000000 +0900
@@ -0,0 +1,22 @@
+--- tkcon.tcl.orig	2009-02-27 09:17:21.000000000 +0900
++++ tkcon.tcl	2009-05-16 18:38:23.000000000 +0900
+@@ -194,7 +194,7 @@
+ 	RCS		{RCS: @(#) $Id: tkcon.tcl,v 1.102 2008/02/07 21:02:53 hobbs Exp $}
+ 	HEADURL		{http://tkcon.cvs.sourceforge.net/tkcon/tkcon/tkcon.tcl?rev=HEAD}
+ 
+-	docs		"http://tkcon.sourceforge.net/"
++	docs		"file:%%DOCSDIR%%/index.html"
+ 	email		{jeff(a)hobbs(.)org}
+ 	root		.
+ 	uid		0
+@@ -1586,8 +1586,8 @@
+     foreach m [list [menu $w.help] [menu $w.pop.help]] {
+ 	$m add command -label "About " -underline 0 -accel Ctrl-A \
+ 		-command ::tkcon::About
+-	$m add command -label "Retrieve Latest Version" -underline 0 \
+-		-command ::tkcon::Retrieve
++	# $m add command -label "Retrieve Latest Version" -underline 0 \
++	# 	-command ::tkcon::Retrieve
+ 	if {![catch {package require ActiveTcl} ver]} {
+ 	    set cmd ""
+ 	    if {$tcl_platform(platform) == "windows"} {
diff -urN /usr/ports/devel/tkcon/pkg-plist devel/tkcon/pkg-plist
--- /usr/ports/devel/tkcon/pkg-plist	2001-06-21 03:18:24.000000000 +0900
+++ devel/tkcon/pkg-plist	1970-01-01 09:00:00.000000000 +0900
@@ -1,21 +0,0 @@
-bin/tkcon
-%%PORTDOCS%%share/doc/tkcon/README.tkcon
-%%PORTDOCS%%share/doc/tkcon/bindings.html
-%%PORTDOCS%%share/doc/tkcon/changes.txt
-%%PORTDOCS%%share/doc/tkcon/demopic.gif
-%%PORTDOCS%%share/doc/tkcon/dump.html
-%%PORTDOCS%%share/doc/tkcon/idebug.html
-%%PORTDOCS%%share/doc/tkcon/index.html
-%%PORTDOCS%%share/doc/tkcon/license.terms
-%%PORTDOCS%%share/doc/tkcon/limits.html
-%%PORTDOCS%%share/doc/tkcon/nontcl.html
-%%PORTDOCS%%share/doc/tkcon/observe.html
-%%PORTDOCS%%share/doc/tkcon/perl.txt
-%%PORTDOCS%%share/doc/tkcon/plugin.html
-%%PORTDOCS%%share/doc/tkcon/procs.html
-%%PORTDOCS%%share/doc/tkcon/purpose.html
-%%PORTDOCS%%share/doc/tkcon/start.html
-%%PORTDOCS%%share/doc/tkcon/tkcon.html
-%%PORTDOCS%%share/doc/tkcon/todo.html
-%%PORTDOCS%%share/doc/tkcon/style.css
-%%PORTDOCS%%@dirrm share/doc/tkcon
>Release-Note:
>Audit-Trail:
>Unformatted:



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