From b9b24c68ae6b4891860ec0b5338d5f0c179d4f95 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 27 Feb 2014 16:23:34 +0100 Subject: [PATCH] ruby: update to 2.0.0p451. --- srcpkgs/ruby/template | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/srcpkgs/ruby/template b/srcpkgs/ruby/template index 6f1b1281419..8f3af5a377e 100644 --- a/srcpkgs/ruby/template +++ b/srcpkgs/ruby/template @@ -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 " 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,12 +23,15 @@ 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() { - # Force getaddrinfo detection. - sed -e 's,\(checking_for("wide getaddrinfo") {try_\)run,\1link,' -i ext/socket/extconf.rb - } fi +pre_build() { + # Force getaddrinfo detection. + sed -e 's,\(checking_for("wide getaddrinfo") {try_\)run,\1link,' -i ext/socket/extconf.rb + # 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" noarch=yes