summaryrefslogtreecommitdiff
path: root/package/ruby/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/ruby/Makefile')
-rw-r--r--package/ruby/Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/package/ruby/Makefile b/package/ruby/Makefile
new file mode 100644
index 000000000..f3dcde488
--- /dev/null
+++ b/package/ruby/Makefile
@@ -0,0 +1,38 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+# == Doc
+# * http://wiki.rubygarden.org/Ruby/page/show/RubyOnUCLinux
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= ruby
+PKG_VERSION:= 1.8.7
+PKG_RELEASE:= 1
+PKG_MD5SUM:= de906850f9a012c12ffc6e9f56fb1b66
+MASTER_SITES:= http://ftp.ruby-lang.org/pub/ruby/stable/
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,RUBY,ruby,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+CONFIGURE_STYLE:= gnu
+CONFIGURE_ENV+= ac_cv_func_setpgrp_void=yes
+BUILD_STYLE:= auto
+INSTALL_STYLE:= auto
+
+# Enable some ruby extension / options
+post-configure:
+ echo "option nodynamic" >> ${WRKBUILD}/ext/Setup
+ echo "socket" >> ${WRKBUILD}/ext/Setup
+
+# Remove the /usr/lib/libruby.so and keep the static (~1M) ?
+post-install:
+ rm -rf ${WRKINST}/usr/lib/site_ruby
+ find ${WRKINST}/usr -name "*.h" -delete
+ cp -a ${WRKINST}/usr ${IDIR_RUBY}
+
+include ${TOPDIR}/mk/pkg-bottom.mk
+