Patchwork tcllib: new package

login
register
mail settings
Submitter Davide Viti
Date Dec. 6, 2012, 10:46 p.m.
Message ID <1354833972-17700-2-git-send-email-zinosat@tiscali.it>
Download mbox | patch
Permalink /patch/204333/
State Superseded
Headers show

Comments

Davide Viti - Dec. 6, 2012, 10:46 p.m.
Signed-off-by: Davide Viti <zinosat@tiscali.it>
---
 package/Config.in        |    5 +++++
 package/tcllib/Config.in |   11 +++++++++++
 package/tcllib/tcllib.mk |   13 +++++++++++++
 3 files changed, 29 insertions(+), 0 deletions(-)
 create mode 100644 package/tcllib/Config.in
 create mode 100644 package/tcllib/tcllib.mk
Yann E. MORIN - Dec. 6, 2012, 11:09 p.m.
Davide, All,

On Thursday 06 December 2012 Davide Viti wrote:
[--SNIP--]
> diff --git a/package/tcllib/tcllib.mk b/package/tcllib/tcllib.mk
> new file mode 100644
> index 0000000..471720d
> --- /dev/null
> +++ b/package/tcllib/tcllib.mk
> @@ -0,0 +1,13 @@
> +#############################################################
> +#
> +# tcllib
> +#
> +#############################################################
> +TCLLIB_VERSION       = 1.13
> +TCLLIB_SOURCE        = tcllib-$(TCLLIB_VERSION).tar.bz2
> +TCLLIB_SITE          = http://downloads.sourceforge.net/project/tcllib/tcllib/$(TCLLIB_VERSION)
> +TCLLIB_LICENSE       = tcllib license
> +TCLLIB_LICENSE_FILES = license.terms
> +TCLLIB_DEPENDENCIES  = host-tcl

On my machine, tcllib uses /usr/bin/tclsh8.4 instead of our own,
newly-built host-tcl:

>>> tcllib 1.13 Installing to target
PATH="/home/ymorin/dev/buildroot/O.tcl/host/bin:/home/ymorin/dev/buildroot/O.tcl/host/usr/bin:/home/ymorin/dev/buildroot/O.tcl/host/usr/sbin/:/home/ymorin/bin:/opt/zbar/bin:/opt/stgit/bin:/opt/qemu/bin:/opt/pkg++/bin:/opt/hg/bin:/opt/firefox/bin:/opt/bencode/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games" PERLLIB="/home/ymorin/dev/buildroot/O.tcl/host/usr/lib/perl"  /usr/bin/make -j24 DESTDIR=/home/ymorin/dev/buildroot/O.tcl/target  install -C /home/ymorin/dev/buildroot/O.tcl/build/tcllib-1.13/
/usr/bin/tclsh8.4 `echo ./installer.tcl` \
                -no-examples -no-html \
                -pkg-path   /home/ymorin/dev/buildroot/O.tcl/target/usr/lib/tcllib1.13 \
                -app-path   /home/ymorin/dev/buildroot/O.tcl/target/usr/bin \
                -nroff-path /home/ymorin/dev/buildroot/O.tcl/target/usr/man/mann \
                -no-wait -no-gui

We really want tcllib to use our newly-built host-tcl's tclsh, in case
tcllib is not compatible with the host tclsh.

Regards,
Yann E. MORIN.
Arnout Vandecappelle - Dec. 6, 2012, 11:36 p.m.
On 06/12/12 23:46, Davide Viti wrote:
[snip]
> diff --git a/package/tcllib/tcllib.mk b/package/tcllib/tcllib.mk
> new file mode 100644
> index 0000000..471720d
> --- /dev/null
> +++ b/package/tcllib/tcllib.mk
> @@ -0,0 +1,13 @@
> +#############################################################
> +#
> +# tcllib
> +#
> +#############################################################
> +TCLLIB_VERSION       = 1.13
> +TCLLIB_SOURCE        = tcllib-$(TCLLIB_VERSION).tar.bz2
> +TCLLIB_SITE          =http://downloads.sourceforge.net/project/tcllib/tcllib/$(TCLLIB_VERSION)
> +TCLLIB_LICENSE       = tcllib license

  Since it's the same as the tcl license, I'd call it "tcl license".


  Regards,
  Arnout

> +TCLLIB_LICENSE_FILES = license.terms
> +TCLLIB_DEPENDENCIES  = host-tcl
> +
> +$(eval $(autotools-package))

Patch

diff --git a/package/Config.in b/package/Config.in
index 74e439e..cad1221 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -313,6 +313,11 @@  endmenu
 endif
 source "package/ruby/Config.in"
 source "package/tcl/Config.in"
+if BR2_PACKAGE_TCL
+menu "tcl libraries/modules"
+source "package/tcllib/Config.in"
+endmenu
+endif
 endmenu
 
 menu "Libraries"
diff --git a/package/tcllib/Config.in b/package/tcllib/Config.in
new file mode 100644
index 0000000..b0a4ad0
--- /dev/null
+++ b/package/tcllib/Config.in
@@ -0,0 +1,11 @@ 
+config BR2_PACKAGE_TCLLIB
+	bool "tcllib"
+	help
+	  Tcllib is a collection of utility modules for Tcl. These
+	  modules provide a wide variety of functionality, from
+	  implementations of standard data structures to
+	  implementations of common networking protocols. The intent
+	  is to collect commonly used function into a single library,
+	  which users can rely on to be available and stable
+
+	  http://tcl.activestate.com/software/tcllib/
diff --git a/package/tcllib/tcllib.mk b/package/tcllib/tcllib.mk
new file mode 100644
index 0000000..471720d
--- /dev/null
+++ b/package/tcllib/tcllib.mk
@@ -0,0 +1,13 @@ 
+#############################################################
+#
+# tcllib
+#
+#############################################################
+TCLLIB_VERSION       = 1.13
+TCLLIB_SOURCE        = tcllib-$(TCLLIB_VERSION).tar.bz2
+TCLLIB_SITE          = http://downloads.sourceforge.net/project/tcllib/tcllib/$(TCLLIB_VERSION)
+TCLLIB_LICENSE       = tcllib license
+TCLLIB_LICENSE_FILES = license.terms
+TCLLIB_DEPENDENCIES  = host-tcl
+
+$(eval $(autotools-package))