summaryrefslogtreecommitdiff
path: root/devel/tclreadline
diff options
context:
space:
mode:
authorpettai <pettai>2010-03-12 23:18:13 +0000
committerpettai <pettai>2010-03-12 23:18:13 +0000
commit5a24499da28013228afe32d8c8b8e6c96bd34929 (patch)
treee68b782ffc4f26dc276e121d1f82054b85d7ac52 /devel/tclreadline
parentfee92d432577c89cb51eb9837e3461198120003a (diff)
downloadpkgsrc-5a24499da28013228afe32d8c8b8e6c96bd34929.tar.gz
The tclreadline package makes the GNU Readline library available for
interactive tcl shells. This includes history expansion and file/command completion. Command completion for all tcl/tk commands is provided and commmand completers for user defined commands can be easily added. tclreadline can also be used for tcl scripts which want to use a shell like input interface. In this case the ::tclreadline::readline read command has to be called explicitly.
Diffstat (limited to 'devel/tclreadline')
-rw-r--r--devel/tclreadline/DESCR7
-rw-r--r--devel/tclreadline/MESSAGE13
-rw-r--r--devel/tclreadline/Makefile40
-rw-r--r--devel/tclreadline/PLIST9
-rw-r--r--devel/tclreadline/distinfo5
-rw-r--r--devel/tclreadline/files/tclshrc4
6 files changed, 78 insertions, 0 deletions
diff --git a/devel/tclreadline/DESCR b/devel/tclreadline/DESCR
new file mode 100644
index 00000000000..d1b0d8d6624
--- /dev/null
+++ b/devel/tclreadline/DESCR
@@ -0,0 +1,7 @@
+The tclreadline package makes the GNU Readline library available for
+interactive tcl shells. This includes history expansion and file/command
+completion. Command completion for all tcl/tk commands is provided and
+commmand completers for user defined commands can be easily added.
+tclreadline can also be used for tcl scripts which want to use a shell
+like input interface. In this case the ::tclreadline::readline
+read command has to be called explicitly.
diff --git a/devel/tclreadline/MESSAGE b/devel/tclreadline/MESSAGE
new file mode 100644
index 00000000000..7c3db6cde48
--- /dev/null
+++ b/devel/tclreadline/MESSAGE
@@ -0,0 +1,13 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2010/03/12 23:18:13 pettai Exp $
+
+tclreadline is now installed.
+
+A template for the tcl/tk shells (tclsh & wish) is bundled and installed:
+${EGDIR}/tclshrc
+
+Rename the file (put a dot in front) and copy it to your home directory ~
+If you wish that all new users should receive it automatically, copy the
+file to your systems /etc/skel directory.
+
+===========================================================================
diff --git a/devel/tclreadline/Makefile b/devel/tclreadline/Makefile
new file mode 100644
index 00000000000..d1e88248408
--- /dev/null
+++ b/devel/tclreadline/Makefile
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/03/12 23:18:13 pettai Exp $
+#
+
+DISTNAME= tclreadline-2.1.0
+CATEGORIES= devel lang
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tclreadline/}
+
+MAINTAINER= pettai@NetBSD.org
+HOMEPAGE= http://tclreadline.sourceforge.net/
+COMMENT= GNU Readline library for interactive tcl shells
+LICENSE= modified-bsd
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+USE_LIBTOOL= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --with-tcl=${PREFIX}/lib
+
+EGDIR= ${PREFIX}/share/examples/tclreadline
+
+MESSAGE_SUBST+= EGDIR=${EGDIR}
+
+SUBST_CLASSES+= paths
+SUBST_FILES.paths= ${WRKSRC}/pkgIndex.tcl.in
+SUBST_FILES.paths+= ${WRKSRC}/tclreadlineInit.tcl.in
+SUBST_FILES.paths+= ${WRKSRC}/tclreadlineSetup.tcl.in
+SUBST_STAGE.paths= post-patch
+SUBST_SED.paths= -e 's,\/usr\/local,${PREFIX},'
+SUBST_SED.paths+= -e 's,\/usr\/locanl,${PREFIX},'
+
+INSTALLATION_DIRS= include ${PKGMANDIR}/mann lib \
+ lib/tclreadline${PKGVERSION} ${EGDIR}
+
+post-install:
+ ${INSTALL_SCRIPT} ${FILESDIR}/tclshrc ${DESTDIR}${EGDIR}/tclshrc
+
+.include "../../lang/tcl/buildlink3.mk"
+.include "../../devel/ncurses/buildlink3.mk"
+.include "../../devel/readline/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/tclreadline/PLIST b/devel/tclreadline/PLIST
new file mode 100644
index 00000000000..fb2ae80eba2
--- /dev/null
+++ b/devel/tclreadline/PLIST
@@ -0,0 +1,9 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2010/03/12 23:18:13 pettai Exp $
+include/tclreadline.h
+lib/libtclreadline.la
+lib/tclreadline${PKGVERSION}/pkgIndex.tcl
+lib/tclreadline${PKGVERSION}/tclreadlineCompleter.tcl
+lib/tclreadline${PKGVERSION}/tclreadlineInit.tcl
+lib/tclreadline${PKGVERSION}/tclreadlineSetup.tcl
+man/mann/tclreadline.n
+share/examples/tclreadline/tclshrc
diff --git a/devel/tclreadline/distinfo b/devel/tclreadline/distinfo
new file mode 100644
index 00000000000..9b1cfc0d135
--- /dev/null
+++ b/devel/tclreadline/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2010/03/12 23:18:13 pettai Exp $
+
+SHA1 (tclreadline-2.1.0.tar.gz) = 3b44f92ce1921ebccebab9b44d7cda6992cf8923
+RMD160 (tclreadline-2.1.0.tar.gz) = 9967f7d7aa18fcd822f5701306f3a75a6001fdc5
+Size (tclreadline-2.1.0.tar.gz) = 160541 bytes
diff --git a/devel/tclreadline/files/tclshrc b/devel/tclreadline/files/tclshrc
new file mode 100644
index 00000000000..0a5ec0e578a
--- /dev/null
+++ b/devel/tclreadline/files/tclshrc
@@ -0,0 +1,4 @@
+if {$tcl_interactive} {
+ ::tclreadline::Loop
+}
+