* [Buildroot] [PATCH 1/3] ruby: add psych/libyaml support
@ 2014-05-20 13:44 Gustavo Zacarias
2014-05-20 13:44 ` [Buildroot] [PATCH 2/3] ruby: add gdbm support Gustavo Zacarias
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Gustavo Zacarias @ 2014-05-20 13:44 UTC (permalink / raw)
To: buildroot
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
package/ruby/ruby.mk | 3 +++
1 file changed, 3 insertions(+)
diff --git a/package/ruby/ruby.mk b/package/ruby/ruby.mk
index 0ea352d..1185323 100644
--- a/package/ruby/ruby.mk
+++ b/package/ruby/ruby.mk
@@ -29,6 +29,9 @@ RUBY_CONF_ENV = CFLAGS="$(RUBY_CFLAGS)"
ifeq ($(BR2_PACKAGE_BERKELEYDB),y)
RUBY_DEPENDENCIES += berkeleydb
endif
+ifeq ($(BR2_PACKAGE_LIBYAML),y)
+ RUBY_DEPENDENCIES += libyaml
+endif
ifeq ($(BR2_PACKAGE_NCURSES),y)
RUBY_DEPENDENCIES += ncurses
endif
--
1.8.5.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 2/3] ruby: add gdbm support
2014-05-20 13:44 [Buildroot] [PATCH 1/3] ruby: add psych/libyaml support Gustavo Zacarias
@ 2014-05-20 13:44 ` Gustavo Zacarias
2014-05-20 13:44 ` [Buildroot] [PATCH 3/3] ruby: remove rubygems Gustavo Zacarias
2014-06-09 10:07 ` [Buildroot] [PATCH 1/3] ruby: add psych/libyaml support Thomas Petazzoni
2 siblings, 0 replies; 4+ messages in thread
From: Gustavo Zacarias @ 2014-05-20 13:44 UTC (permalink / raw)
To: buildroot
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
package/ruby/ruby.mk | 3 +++
1 file changed, 3 insertions(+)
diff --git a/package/ruby/ruby.mk b/package/ruby/ruby.mk
index 1185323..86d0089 100644
--- a/package/ruby/ruby.mk
+++ b/package/ruby/ruby.mk
@@ -29,6 +29,9 @@ RUBY_CONF_ENV = CFLAGS="$(RUBY_CFLAGS)"
ifeq ($(BR2_PACKAGE_BERKELEYDB),y)
RUBY_DEPENDENCIES += berkeleydb
endif
+ifeq ($(BR2_PACKAGE_GDBM),y)
+ RUBY_DEPENDENCIES += gdbm
+endif
ifeq ($(BR2_PACKAGE_LIBYAML),y)
RUBY_DEPENDENCIES += libyaml
endif
--
1.8.5.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 3/3] ruby: remove rubygems
2014-05-20 13:44 [Buildroot] [PATCH 1/3] ruby: add psych/libyaml support Gustavo Zacarias
2014-05-20 13:44 ` [Buildroot] [PATCH 2/3] ruby: add gdbm support Gustavo Zacarias
@ 2014-05-20 13:44 ` Gustavo Zacarias
2014-06-09 10:07 ` [Buildroot] [PATCH 1/3] ruby: add psych/libyaml support Thomas Petazzoni
2 siblings, 0 replies; 4+ messages in thread
From: Gustavo Zacarias @ 2014-05-20 13:44 UTC (permalink / raw)
To: buildroot
It's currently in a non-working state since it requires a couple of
extensions that don't build at the moment (they try to execute tests in
configure) and also requires a target compiler.
So remove it to avoid false expectations and reclaim target space back
of about 1.5 MiB.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
package/ruby/ruby.mk | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/package/ruby/ruby.mk b/package/ruby/ruby.mk
index 86d0089..7359cf1 100644
--- a/package/ruby/ruby.mk
+++ b/package/ruby/ruby.mk
@@ -6,6 +6,8 @@
RUBY_VERSION_MAJOR = 1.9
RUBY_VERSION = $(RUBY_VERSION_MAJOR).3-p545
+# 1.9.1 directory used for exts
+RUBY_VERSION_EXT = 1.9.1
RUBY_SITE = ftp://ftp.ruby-lang.org/pub/ruby/$(RUBY_VERSION_MAJOR)
RUBY_DEPENDENCIES = host-pkgconf host-ruby
HOST_RUBY_DEPENDENCIES = host-pkgconf
@@ -48,5 +50,16 @@ ifeq ($(BR2_PACKAGE_ZLIB),y)
RUBY_DEPENDENCIES += zlib
endif
+# Remove rubygems & friends
+# Needs exts that aren't built and a target compiler
+RUBY_EXTENSIONS_REMOVE = rake* rdoc* rubygems*
+define RUBY_REMOVE_RUBYGEMS
+ rm -f $(addprefix $(TARGET_DIR)/usr/bin/, gem rdoc ri rake)
+ rm -rf $(TARGET_DIR)/usr/lib/ruby/gems
+ rm -rf $(addprefix $(TARGET_DIR)/usr/lib/ruby/$(RUBY_VERSION_EXT)/, \
+ $(RUBY_EXTENSIONS_REMOVE))
+endef
+RUBY_POST_INSTALL_TARGET_HOOKS += RUBY_REMOVE_RUBYGEMS
+
$(eval $(autotools-package))
$(eval $(host-autotools-package))
--
1.8.5.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 1/3] ruby: add psych/libyaml support
2014-05-20 13:44 [Buildroot] [PATCH 1/3] ruby: add psych/libyaml support Gustavo Zacarias
2014-05-20 13:44 ` [Buildroot] [PATCH 2/3] ruby: add gdbm support Gustavo Zacarias
2014-05-20 13:44 ` [Buildroot] [PATCH 3/3] ruby: remove rubygems Gustavo Zacarias
@ 2014-06-09 10:07 ` Thomas Petazzoni
2 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2014-06-09 10:07 UTC (permalink / raw)
To: buildroot
Dear Gustavo Zacarias,
On Tue, 20 May 2014 10:44:20 -0300, Gustavo Zacarias wrote:
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
> ---
> package/ruby/ruby.mk | 3 +++
> 1 file changed, 3 insertions(+)
All three patches applied, with a few minor fixes in the comments of
PATCH 3/3.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-06-09 10:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-20 13:44 [Buildroot] [PATCH 1/3] ruby: add psych/libyaml support Gustavo Zacarias
2014-05-20 13:44 ` [Buildroot] [PATCH 2/3] ruby: add gdbm support Gustavo Zacarias
2014-05-20 13:44 ` [Buildroot] [PATCH 3/3] ruby: remove rubygems Gustavo Zacarias
2014-06-09 10:07 ` [Buildroot] [PATCH 1/3] ruby: add psych/libyaml support Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox