Stuart Henderson wrote:
> On 2009/04/24 10:21, Stuart Cassoff wrote:
>   
>> I can has update?
>>
>>     
>
> sure, I just need a diff that applies ;-)
>
>
>
>   
I haz make updaytz.


Index: x11/tkcon/Makefile
===================================================================
RCS file: /cvs/ports/x11/tkcon/Makefile,v
retrieving revision 1.2
diff -N -u -p x11/tkcon/Makefile
--- x11/tkcon/Makefile  11 Mar 2009 21:40:22 -0000      1.2
+++ x11/tkcon/Makefile  24 Apr 2009 16:05:15 -0000
@@ -2,13 +2,9 @@
 
 COMMENT =              enhanced Tk console
 
-DISTNAME =             tkcon-2.4
-PKGNAME =              ${DISTNAME}p0
-
+DISTNAME =             tkcon-2.5
 CATEGORIES =           x11 x11/tk
-
 HOMEPAGE =             http://sourceforge.net/projects/tkcon/
-
 MAINTAINER =           Stuart Cassoff <[email protected]>
 
 # BSD-like
@@ -18,28 +14,35 @@ PERMIT_DISTFILES_CDROM =Yes
 PERMIT_DISTFILES_FTP = Yes
 
 MODULES =              x11/tk
-
 MASTER_SITES =         ${MASTER_SITE_SOURCEFORGE:=tkcon/}
-
+BUILD_DEPENDS =                :tcllib->=1.11.1:devel/tcllib
 RUN_DEPENDS =          ${MODTK_RUN_DEPENDS}
-
 NO_BUILD =             Yes
 NO_REGRESS =           Yes
 
 DOCDIR =               ${PREFIX}/share/doc/tkcon
+TCL_MODULES_DIR =      ${PREFIX}/lib/tcl8/${MODTCL_VERSION}
 
-post-configure:
-       @perl -pi -e \
-       '$$. == 3 && s!exec wish.*$$!exec wish${MODTK_VERSION} "\$$0" 
\$${1+"\$$@"}!' \
-       ${WRKSRC}/tkcon.tcl
+do-configure:
+       @${MODTCL_WISH_ADJ} ${WRKSRC}/tkcon.tcl
 
 do-install:
        ${INSTALL_SCRIPT} ${WRKSRC}/tkcon.tcl ${PREFIX}/bin/tkcon
+       # Enable loading as a 'Tcl Module' via [package require]
+       ${INSTALL_DATA_DIR} ${TCL_MODULES_DIR}
+       ln -sf ${TRUEPREFIX}/bin/tkcon ${TCL_MODULES_DIR}/tkcon-2.5.tm
        ${INSTALL_DATA_DIR} ${DOCDIR}
 .for i in README.txt index.html
        ${INSTALL_DATA} ${WRKSRC}/$i ${DOCDIR}/$i
 .endfor
        ${INSTALL_DATA_DIR} ${DOCDIR}/docs
        ${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCDIR}/docs/
+       rm -f ${DOCDIR}/docs/*.man
+.for s in 1 5 n
+       for i in ${WRKSRC}/docs/*.$s.man ; do \
+               ofn=`basename $$i | sed -e 's/\..*$$/.$s/'` ; \
+               dtplite -o ${PREFIX}/man/man$s/$$ofn nroff $$i ; \
+       done
+.endfor
 
 .include <bsd.port.mk>
Index: x11/tkcon/distinfo
===================================================================
RCS file: /cvs/ports/x11/tkcon/distinfo,v
retrieving revision 1.1.1.1
diff -N -u -p x11/tkcon/distinfo
--- x11/tkcon/distinfo  7 Jan 2009 11:16:56 -0000       1.1.1.1
+++ x11/tkcon/distinfo  24 Apr 2009 16:05:15 -0000
@@ -1,5 +1,5 @@
-MD5 (tkcon-2.4.tar.gz) = QVkF/j2BqpV/nEQkwhl4Tg==
-RMD160 (tkcon-2.4.tar.gz) = 0zcCwI5Abiib0PWb+MB2gFiFy5k=
-SHA1 (tkcon-2.4.tar.gz) = TnbYL1c4p/EDzMHVt7beTbpoaQM=
-SHA256 (tkcon-2.4.tar.gz) = 6/oYR0IW19+Fb631d49mNx2uinm+HKVyALf1uiKSDGo=
-SIZE (tkcon-2.4.tar.gz) = 107436
+MD5 (tkcon-2.5.tar.gz) = fY6DcnuPljDRt+IzzaFFrw==
+RMD160 (tkcon-2.5.tar.gz) = d3uq5k9qP5l5A6eSCHL4uzlrb2w=
+SHA1 (tkcon-2.5.tar.gz) = dZ36nPct0qIZqfPvzmdFB1bjV7E=
+SHA256 (tkcon-2.5.tar.gz) = P/PrcZiwYNLDvcGVwffYUy5jdCRHF5+7YJGjiGurQqk=
+SIZE (tkcon-2.5.tar.gz) = 139834
Index: x11/tkcon/patches/patch-tkcon_tcl
===================================================================
RCS file: /cvs/ports/x11/tkcon/patches/patch-tkcon_tcl,v
retrieving revision 1.1.1.1
diff -N -u -p x11/tkcon/patches/patch-tkcon_tcl
--- x11/tkcon/patches/patch-tkcon_tcl   7 Jan 2009 11:16:56 -0000       1.1.1.1
+++ /dev/null   28 Sep 2008 10:50:08 -0000
@@ -1,12 +0,0 @@
-$OpenBSD: patch-tkcon_tcl,v 1.1.1.1 2009/01/07 11:16:56 sthen Exp $
---- tkcon.tcl.orig     Mon Jul 26 17:55:56 2004
-+++ tkcon.tcl  Tue Sep 30 09:32:44 2008
-@@ -41,7 +41,7 @@ exec wish "$0" ${1+"$@"}
- if {$tcl_version < 8.0} {
-     return -code error "tkcon requires at least Tcl/Tk8"
- } else {
--    package require -exact Tk $tcl_version
-+    package require Tk
- }
- 
- catch {package require bogus-package-name}
Index: x11/tkcon/pkg/PLIST
===================================================================
RCS file: /cvs/ports/x11/tkcon/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -N -u -p x11/tkcon/pkg/PLIST
--- x11/tkcon/pkg/PLIST 7 Jan 2009 11:16:56 -0000       1.1.1.1
+++ x11/tkcon/pkg/PLIST 24 Apr 2009 16:05:15 -0000
@@ -1,11 +1,18 @@
 @comment $OpenBSD: PLIST,v 1.1.1.1 2009/01/07 11:16:56 sthen Exp $
 bin/tkcon
+lib/tcl8/${MODTK_VERSION}/tkcon-2.5.tm
+...@man man/man1/tkcon.1
+...@man man/man5/tkconrc.5
+...@man man/mann/dump.n
+...@man man/mann/idebug.n
+...@man man/mann/observe.n
+...@man man/mann/tkcon.n
 share/doc/tkcon/
 share/doc/tkcon/README.txt
 share/doc/tkcon/docs/
 share/doc/tkcon/docs/bindings.html
 share/doc/tkcon/docs/changes.txt
-share/doc/tkcon/docs/demopic.gif
+share/doc/tkcon/docs/demopic.png
 share/doc/tkcon/docs/dump.html
 share/doc/tkcon/docs/idebug.html


 share/doc/tkcon/docs/index.html


Reply via email to