Bug 86486 - Update devel/tclreadline port for newer version of Tcl
Summary: Update devel/tclreadline port for newer version of Tcl
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Volker Stolz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-23 07:00 UTC by Daniel O'Connor
Modified: 2005-12-02 13:00 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel O'Connor 2005-09-23 07:00:33 UTC

Fix: 

PORTNAME=      tclreadline
 PORTVERSION=   2.1.0
-CATEGORIES=    devel tcl80 tcl82
+CATEGORIES=    devel tcl80 tcl82 tcl83 tcl84
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=    tclreadline

@@ -22,11 +22,24 @@

 .include <bsd.port.pre.mk>

-.if (!defined(WITH_TCL80) && !defined(WITH_TCL82))
+# Try and guess what version of Tcl to build against
+.if (!defined(WITH_TCL80) && !defined(WITH_TCL82) && !defined(WITH_TCL83) && !defined(WITH_TCL84))
+.if exists(${PREFIX}/bin/tclsh8.4)
+WITH_TCL84=    yes
+.else
+.if exists(${PREFIX}/bin/tclsh8.3)
+WITH_TCL83=    yes
+.else
+.if exists(${PREFIX}/bin/tclsh8.2)
+WITH_TCL82=    yes
+.else
 .if exists(${PREFIX}/bin/tclsh8.0)
 WITH_TCL80=    yes
 .else
-WITH_TCL82=    yes
+WITH_TCL84=    yes
+.endif
+.endif
+.endif
 .endif
 .endif

@@ -42,9 +55,22 @@
 TCLVERMSG=     "Building for Tcl 8.2"
 .endif

+.if defined(WITH_TCL83)
+LIB_DEPENDS=   tcl83:${PORTSDIR}/lang/tcl83
+CONFIGURE_ARGS=        --with-tcl=${PREFIX}/lib/tcl8.3 --with-tcl-includes=${PREFIX}/include/tcl8.3
+TCLVERMSG=     "Building for Tcl 8.3"
+.endif
+
+.if defined(WITH_TCL84)
+LIB_DEPENDS=   tcl84:${PORTSDIR}/lang/tcl84
+CONFIGURE_ARGS=        --with-tcl=${PREFIX}/lib/tcl8.4 --with-tcl-includes=${PREFIX}/include/tcl8.4
+TCLVERMSG=     "Building for Tcl 8.4"
+.endif
+
+
 pre-fetch:
        @${ECHO} ${TCLVERMSG}
-       @${ECHO} "Define WITH_TCL80, or WITH_TCL82"
+       @${ECHO} "Define WITH_TCL80, WITH_TCL82, WITH_TCL83 or WITH_TCL84"
        @${ECHO} "To compile against a different version of TCL"

 .include <bsd.port.post.mk>--xmrAozbflgjTe4TfuB3pXKWk6ZHqIiRDPfRMUwYmIhoFgzql
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- /usr/ports/devel/tclreadline/Makefile       Sat Jul 10 03:12:20 2004
+++ Makefile    Fri Sep 23 15:27:04 2005
@@ -7,7 +7,7 @@
Comment 1 Volker Stolz freebsd_committer freebsd_triage 2005-09-23 09:31:10 UTC
State Changed
From-To: open->feedback

Do you know if the static library is useful at all? 
Also, would using the devel/readline-port on 4.x provide 
additional functionality? 


Comment 2 Volker Stolz freebsd_committer freebsd_triage 2005-09-23 09:31:10 UTC
Responsible Changed
From-To: freebsd-ports-bugs->vs

Handle.
Comment 3 Volker Stolz freebsd_committer freebsd_triage 2005-11-15 16:47:20 UTC
Some mailer mangled the whitespacing, could please send me the patch in a  
private mail?

Volker
Comment 4 Volker Stolz freebsd_committer freebsd_triage 2005-12-02 13:00:39 UTC
State Changed
From-To: feedback->closed

Committed, thanks!