diff --git a/devel/tclreadline/Makefile b/devel/tclreadline/Makefile index cb918c71f387..a95fcd3015e7 100644 --- a/devel/tclreadline/Makefile +++ b/devel/tclreadline/Makefile @@ -1,35 +1,35 @@ PORTNAME= tclreadline PORTVERSION= 2.3.8 DISTVERSIONPREFIX= v -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel tcl MAINTAINER= tcltk@FreeBSD.org COMMENT= GNU readline for TCL WWW= https://tclreadline.sourceforge.net/ LICENSE= BSD3CLAUSE USES= autoreconf libtool tcl readline GNU_CONFIGURE= yes GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share CONFIGURE_ARGS+=--with-tcl=${TCL_LIBDIR} \ --with-tcl-includes=${TCL_INCLUDEDIR} \ --with-readline-includes=${LOCALBASE}/include \ --with-readline-library="-L${LOCALBASE}/lib -lreadline" \ --with-tk=no \ --enable-tclstub INSTALL_TARGET= install-strip USE_GITHUB= yes GH_ACCOUNT= flightaware USE_LDCONFIG= yes TCL_PKG= ${PORTNAME}${PORTVERSION} PLIST_SUB+= PORTVERSION=${PORTVERSION} TCL_PKG=${TCL_PKG} post-patch: @${RM} ${WRKSRC}/INSTALL .include diff --git a/devel/tclreadline/files/patch-tclreadlineInit.tcl.in b/devel/tclreadline/files/patch-tclreadlineInit.tcl.in new file mode 100644 index 000000000000..b3b047d78b82 --- /dev/null +++ b/devel/tclreadline/files/patch-tclreadlineInit.tcl.in @@ -0,0 +1,13 @@ +--- tclreadlineInit.tcl.in.orig 2024-07-08 12:20:49 UTC ++++ tclreadlineInit.tcl.in +@@ -17,8 +17,8 @@ proc ::tclreadline::Init {} { + uplevel #0 { + if {![info exists tclreadline::library]} { + set msg "" +- foreach dirname {@TCLRL_LIBDIR@ [file dirname [info script]]} { +- if {[catch {load [file join $dirname libtclreadline[info sharedlibextension]]} msg] == 0} { ++ foreach dirname [list @TCLRL_LIBDIR@ [file dirname [info script]]] { ++ if {[catch {load [file join $dirname libtclreadline[info sharedlibextension]] tclreadline} msg] == 0} { + set msg "" + break + }