pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/tclreadline The tclreadline package makes the GN...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6704970cea72
branches:  trunk
changeset: 573119:6704970cea72
user:      pettai <pettai%pkgsrc.org@localhost>
date:      Fri Mar 12 23:18:13 2010 +0000

description:
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:

 devel/tclreadline/DESCR         |   7 +++++++
 devel/tclreadline/MESSAGE       |  13 +++++++++++++
 devel/tclreadline/Makefile      |  40 ++++++++++++++++++++++++++++++++++++++++
 devel/tclreadline/PLIST         |   9 +++++++++
 devel/tclreadline/distinfo      |   5 +++++
 devel/tclreadline/files/tclshrc |   4 ++++
 6 files changed, 78 insertions(+), 0 deletions(-)

diffs (102 lines):

diff -r faf844f5926b -r 6704970cea72 devel/tclreadline/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/tclreadline/DESCR   Fri Mar 12 23:18:13 2010 +0000
@@ -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 -r faf844f5926b -r 6704970cea72 devel/tclreadline/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/tclreadline/MESSAGE Fri Mar 12 23:18:13 2010 +0000
@@ -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 -r faf844f5926b -r 6704970cea72 devel/tclreadline/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/tclreadline/Makefile        Fri Mar 12 23:18:13 2010 +0000
@@ -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@localhost
+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 -r faf844f5926b -r 6704970cea72 devel/tclreadline/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/tclreadline/PLIST   Fri Mar 12 23:18:13 2010 +0000
@@ -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 -r faf844f5926b -r 6704970cea72 devel/tclreadline/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/tclreadline/distinfo        Fri Mar 12 23:18:13 2010 +0000
@@ -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 -r faf844f5926b -r 6704970cea72 devel/tclreadline/files/tclshrc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/tclreadline/files/tclshrc   Fri Mar 12 23:18:13 2010 +0000
@@ -0,0 +1,4 @@
+if {$tcl_interactive} {
+   ::tclreadline::Loop
+}
+



Home | Main Index | Thread Index | Old Index