ruby: update to 2.0.0p451.

This commit is contained in:
Juan RP 2014-02-27 16:23:34 +01:00
parent bed68ba418
commit b9b24c68ae
1 changed files with 10 additions and 7 deletions

View File

@ -1,11 +1,11 @@
# Template build file for 'ruby'.
_ruby_ver=2.0.0
_ruby_distpatchver=p353
_ruby_distpatchver=p451
_ruby_distver="${_ruby_ver}-${_ruby_distpatchver}"
pkgname=ruby
version="${_ruby_ver}${_ruby_distpatchver}"
revision=3
revision=1
wrksrc="${pkgname}-${_ruby_distver}"
build_style=gnu-configure
configure_args="--enable-shared --disable-rpath
@ -15,7 +15,7 @@ homepage="http://www.ruby-lang.org/en/"
maintainer="Juan RP <xtraeme@gmail.com>"
license="BSD"
distfiles="ftp://ftp.ruby-lang.org/pub/ruby/2.0/$pkgname-${_ruby_distver}.tar.bz2"
checksum=3de4e4d9aff4682fa4f8ed2b70bd0d746fae17452fc3d3a8e8f505ead9105ad9
checksum=5bf8a1c7616286b9dbc962912c3f58e67bc3a70306ca90b0882ef0bd442e02f5
hostmakedepends="pkg-config bison groff doxygen graphviz"
makedepends="zlib-devel readline-devel>=6.3 libffi-devel openssl-devel
@ -23,11 +23,14 @@ makedepends="zlib-devel readline-devel>=6.3 libffi-devel openssl-devel
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" ruby>=${version} ruby-rdoc>=${version} ruby-ri>=${version}"
pre_build() {
fi
pre_build() {
# Force getaddrinfo detection.
sed -e 's,\(checking_for("wide getaddrinfo") {try_\)run,\1link,' -i ext/socket/extconf.rb
}
fi
# Fix for readline>=6.3
sed -e 's,(Function \*),,g' -i ext/readline/readline.c
}
ruby-devel-docs_package() {
short_desc+=" - HTML C API documentation files"