2008-10-04 06:29:49 +02:00
|
|
|
# Template build file for 'ruby'.
|
2013-11-24 08:18:53 +01:00
|
|
|
_ruby_ver=2.0.0
|
|
|
|
_ruby_distpatchver=p353
|
2011-02-27 14:53:02 +01:00
|
|
|
_ruby_distver="${_ruby_ver}-${_ruby_distpatchver}"
|
2013-11-24 08:18:53 +01:00
|
|
|
|
|
|
|
pkgname=ruby
|
|
|
|
version="${_ruby_ver}${_ruby_distpatchver}"
|
2014-02-17 10:36:48 +01:00
|
|
|
revision=2
|
2011-02-27 14:53:02 +01:00
|
|
|
wrksrc="${pkgname}-${_ruby_distver}"
|
2013-11-24 08:18:53 +01:00
|
|
|
build_style=gnu-configure
|
|
|
|
configure_args="--enable-shared --disable-rpath
|
|
|
|
DOXYGEN=/usr/bin/doxygen DOT=/usr/bin/dot PKG_CONFIG=/usr/bin/pkg-config"
|
2008-09-30 05:58:50 +02:00
|
|
|
short_desc="Ruby programming language"
|
2012-02-29 00:26:25 +01:00
|
|
|
homepage="http://www.ruby-lang.org/en/"
|
2009-03-03 00:05:47 +01:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2012-02-29 00:26:25 +01:00
|
|
|
license="BSD"
|
2013-05-16 08:34:41 +02:00
|
|
|
distfiles="ftp://ftp.ruby-lang.org/pub/ruby/2.0/$pkgname-${_ruby_distver}.tar.bz2"
|
2013-11-24 08:18:53 +01:00
|
|
|
checksum=3de4e4d9aff4682fa4f8ed2b70bd0d746fae17452fc3d3a8e8f505ead9105ad9
|
2008-10-24 18:32:35 +02:00
|
|
|
|
2013-05-16 08:34:41 +02:00
|
|
|
hostmakedepends="pkg-config bison groff doxygen graphviz"
|
2013-11-24 08:18:53 +01:00
|
|
|
makedepends="zlib-devel readline-devel libffi-devel openssl-devel
|
|
|
|
gdbm-devel libyaml-devel pango-devel"
|
2013-05-16 08:34:41 +02:00
|
|
|
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2013-05-16 09:19:02 +02:00
|
|
|
hostmakedepends+=" ruby>=${version} ruby-rdoc>=${version} ruby-ri>=${version}"
|
2013-05-16 10:36:05 +02:00
|
|
|
pre_build() {
|
|
|
|
# Force getaddrinfo detection.
|
|
|
|
sed -e 's,\(checking_for("wide getaddrinfo") {try_\)run,\1link,' -i ext/socket/extconf.rb
|
2013-05-16 09:19:02 +02:00
|
|
|
}
|
2013-05-16 08:34:41 +02:00
|
|
|
fi
|
|
|
|
|
2013-05-16 09:39:41 +02:00
|
|
|
ruby-devel-docs_package() {
|
|
|
|
short_desc+=" - HTML C API documentation files"
|
|
|
|
noarch=yes
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/share/doc
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-04-14 11:53:56 +02:00
|
|
|
ruby-devel_package() {
|
|
|
|
depends="ruby-${version}_${revision}"
|
2013-05-16 08:34:41 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-14 11:53:56 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
2013-05-16 08:34:41 +02:00
|
|
|
vmove usr/lib/ruby/2.0.0/mkmf.rb
|
2013-04-14 11:53:56 +02:00
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ruby-gems_package() {
|
2013-05-16 08:34:41 +02:00
|
|
|
depends="ruby-rdoc>=${version}"
|
2013-04-14 11:53:56 +02:00
|
|
|
short_desc="Package management framework for Ruby libraries/applications"
|
|
|
|
noarch=yes
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/gem
|
|
|
|
vmove usr/lib/ruby/gems
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ruby-irb_package() {
|
|
|
|
depends="ruby"
|
|
|
|
short_desc="Interactive Ruby"
|
|
|
|
noarch=yes
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/irb
|
2013-05-16 08:34:41 +02:00
|
|
|
vmove usr/lib/ruby/2.0.0/irb
|
2013-04-14 11:53:56 +02:00
|
|
|
vmove "usr/share/man/man1/irb*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ruby-rdoc_package() {
|
2013-05-16 08:34:41 +02:00
|
|
|
depends="ruby-irb>=${version}"
|
2013-04-14 11:53:56 +02:00
|
|
|
short_desc="Generate documentation from Ruby source files"
|
|
|
|
noarch=yes
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/rdoc
|
2013-05-16 08:34:41 +02:00
|
|
|
vmove usr/lib/ruby/2.0.0/rdoc
|
2013-04-14 11:53:56 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ruby-ri_package() {
|
2013-05-16 08:34:41 +02:00
|
|
|
depends="ruby-rdoc>=${version}"
|
2013-04-14 11:53:56 +02:00
|
|
|
short_desc="Ruby Interactive reference"
|
|
|
|
noarch=yes
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/ri
|
|
|
|
vmove usr/share/ri
|
|
|
|
vmove "usr/share/man/man1/ri*"
|
|
|
|
}
|
|
|
|
}
|