Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Mar 2006 15:15:00 -0500
From:      Serge Gagnon <serge.gagnon@b2b2c.ca>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        edwin@mavetju.org
Subject:   ports/94371: Patch port: lang/tcltutor make it usable
Message-ID:  <E1FIAUO-00025C-OZ@quenix1.dyndns.org>
Resent-Message-ID: <200603112020.k2BKKaX9028017@freefall.freebsd.org>

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

>Number:         94371
>Category:       ports
>Synopsis:       Patch port: lang/tcltutor make it usable
>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:   Sat Mar 11 20:20:35 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Serge Gagnon
>Release:        FreeBSD 6.0-STABLE i386
>Organization:
me
>Environment:
System: FreeBSD quenix1.dyndns.org 6.0-STABLE FreeBSD 6.0-STABLE #0: Sat Jan 28 18:10:46 EST 2006 root@quenix1.dyndns.org:/usr/obj/usr/src/sys/QUENIX1 i386

>Description:
- Tell TclTutor where its lesson_files.lsn are located
- s/wish/wish8.4
- Bump PORTREVISION

maintainer is cc'ed
>How-To-Repeat:
>Fix:


--- patch-tcltutor.diff begins here ---
diff -urN lang/tcltutor.orig/Makefile lang/tcltutor/Makefile
--- lang/tcltutor.orig/Makefile	Sat Oct 22 20:26:53 2005
+++ lang/tcltutor/Makefile	Sun Mar  5 20:01:27 2006
@@ -7,7 +7,7 @@
 
 PORTNAME=	tcltutor
 PORTVERSION=	2.b.4
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	lang tk84 tcl84
 MASTER_SITES=	http://www.msen.com/~clif/
 DISTNAME=	Tutor2b4
@@ -18,9 +18,17 @@
 RUN_DEPENDS=	wish8.4:${PORTSDIR}/x11-toolkits/tk84 \
 		tkman:${PORTSDIR}/misc/tkman
 
+REINPLACE_ARGS=	-i ""
 WRKSRC=		${WRKDIR}/TclTutor
 NO_BUILD=	yes
 DOCSDIR=	${PREFIX}/share/doc/${PORTNAME:S/tcltutor/TclTutor/}
+
+post-patch:
+	${REINPLACE_CMD} -e "s|wish|wish8.4|" \
+	-e "s|scaler.tcl|${PREFIX}/bin/scaler.tcl|" \
+	-e "s|htmllib.tcl|${PREFIX}/bin/htmllib.tcl|" \
+	-e "s|set Tutor(lessonHome).*|set Tutor(lessonHome) \"${DOCSDIR}/\"|" \
+	${WRKSRC}/TclTutor.tcl
 
 post-install:
 	${INSTALL_DATA} ${WRKSRC}/help.html ${DOCSDIR}
--- patch-tcltutor.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1FIAUO-00025C-OZ>