* [Buildroot] [PATCH] jimsh: new package
@ 2012-09-04 17:00 Gustavo Zacarias
2012-09-06 6:06 ` Arnout Vandecappelle
0 siblings, 1 reply; 3+ messages in thread
From: Gustavo Zacarias @ 2012-09-04 17:00 UTC (permalink / raw)
To: buildroot
Add new jimsh package - a lightweight tclsh alternative.
Useful for a lighter footprint usb_modeswitch installation.
tclsh size is ~700kB for ARM compared to ~200kB for jimsh.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
package/Config.in | 1 +
package/jimsh/Config.in | 6 ++++++
package/jimsh/jimsh.mk | 33 +++++++++++++++++++++++++++++++++
3 files changed, 40 insertions(+), 0 deletions(-)
create mode 100644 package/jimsh/Config.in
create mode 100644 package/jimsh/jimsh.mk
diff --git a/package/Config.in b/package/Config.in
index e129522..01e29e9 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -249,6 +249,7 @@ endmenu
menu "Interpreter languages and scripting"
source "package/erlang/Config.in"
source "package/haserl/Config.in"
+source "package/jimsh/Config.in"
source "package/lua/Config.in"
source "package/luajit/Config.in"
if BR2_PACKAGE_LUA || BR2_PACKAGE_LUAJIT
diff --git a/package/jimsh/Config.in b/package/jimsh/Config.in
new file mode 100644
index 0000000..edae414
--- /dev/null
+++ b/package/jimsh/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_JIMSH
+ bool "jimsh"
+ help
+ A small footprint implementation of the Tcl programming language.
+
+ http://jim.tcl.tk
diff --git a/package/jimsh/jimsh.mk b/package/jimsh/jimsh.mk
new file mode 100644
index 0000000..7193036
--- /dev/null
+++ b/package/jimsh/jimsh.mk
@@ -0,0 +1,33 @@
+#############################################################
+#
+# jimsh
+#
+#############################################################
+
+JIMSH_VERSION = 0.73
+JIMSH_SITE = $(BR2_DEBIAN_MIRROR)/debian/pool/main/j/jimtcl
+JIMSH_SOURCE = jimtcl_$(JIMSH_VERSION).orig.tar.bz2
+
+ifneq ($(BR2_PACKAGE_TCL),y)
+define JIMSH_LINK_TCLSH
+ ln -sf jimsh $(TARGET_DIR)/usr/bin/tclsh
+endef
+endif
+
+define JIMSH_CONFIGURE_CMDS
+ (cd $(@D); \
+ $(TARGET_CONFIGURE_OPTS) \
+ ./configure --prefix=/usr \
+ )
+endef
+
+define JIMSH_BUILD_CMDS
+ $(MAKE) -C $(@D)
+endef
+
+define JIMSH_INSTALL_TARGET_CMDS
+ $(INSTALL) -D $(@D)/jimsh $(TARGET_DIR)/usr/bin/jimsh
+ $(JIMSH_LINK_TCLSH)
+endef
+
+$(eval $(generic-package))
--
1.7.8.6
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] jimsh: new package
2012-09-04 17:00 [Buildroot] [PATCH] jimsh: new package Gustavo Zacarias
@ 2012-09-06 6:06 ` Arnout Vandecappelle
2012-09-06 11:37 ` Gustavo Zacarias
0 siblings, 1 reply; 3+ messages in thread
From: Arnout Vandecappelle @ 2012-09-06 6:06 UTC (permalink / raw)
To: buildroot
On 09/04/12 19:00, Gustavo Zacarias wrote:
> Add new jimsh package - a lightweight tclsh alternative.
> Useful for a lighter footprint usb_modeswitch installation.
I guess a patch that installs usb_modeswitch's tcl script will follow
then?
You'll probably want to add a hidden BR2_NEEDS_TCLSH which selects
JIMSH if TCL is not defined. And/or a HAS_TCLSH that is selected by
jimsh and tcl. Or should those symbols only be introduced when a
package actually selects or depends on them?
Regards,
Arnout
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286540
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] jimsh: new package
2012-09-06 6:06 ` Arnout Vandecappelle
@ 2012-09-06 11:37 ` Gustavo Zacarias
0 siblings, 0 replies; 3+ messages in thread
From: Gustavo Zacarias @ 2012-09-06 11:37 UTC (permalink / raw)
To: buildroot
On 09/06/12 03:06, Arnout Vandecappelle wrote:
> I guess a patch that installs usb_modeswitch's tcl script will follow
> then?
>
> You'll probably want to add a hidden BR2_NEEDS_TCLSH which selects
> JIMSH if TCL is not defined. And/or a HAS_TCLSH that is selected by
> jimsh and tcl. Or should those symbols only be introduced when a
> package actually selects or depends on them?
I'm on the HAS_TCLSH side since there aren't many tclsh-using packages
at the moment, and there may be some (sick) valid reason for both with
jimsh not being as complete as full Tcl.
But that's for another patch when (if) jimsh gets in, it's not the first
iteration, there was one last year that went by silently :)
Regards.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-09-06 11:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-04 17:00 [Buildroot] [PATCH] jimsh: new package Gustavo Zacarias
2012-09-06 6:06 ` Arnout Vandecappelle
2012-09-06 11:37 ` Gustavo Zacarias
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox