void-packages/srcpkgs/ruby/template

61 lines
1.6 KiB
Plaintext
Raw Normal View History

# Template build file for 'ruby'.
2013-11-24 08:18:53 +01:00
pkgname=ruby
version=2.1.2
_ruby_abiver=2.1.0
revision=1
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"
short_desc="Ruby programming language"
2012-02-29 00:26:25 +01:00
homepage="http://www.ruby-lang.org/en/"
maintainer="Juan RP <xtraeme@gmail.com>"
2012-02-29 00:26:25 +01:00
license="BSD"
distfiles="ftp://ftp.ruby-lang.org/pub/ruby/2.1/${pkgname}-${version}.tar.bz2"
checksum=6948b02570cdfb89a8313675d4aa665405900e27423db408401473f30fc6e901
2013-05-16 08:34:41 +02:00
hostmakedepends="pkg-config bison groff doxygen graphviz"
2014-07-14 14:57:39 +02:00
makedepends="zlib-devel readline-devel>=6.3 libffi-devel libressl-devel
2013-11-24 08:18:53 +01:00
gdbm-devel libyaml-devel pango-devel"
replaces="ruby-rdoc>=0 ruby-gems>=0 ruby-irb>=0"
2013-05-16 08:34:41 +02:00
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" ruby>=${version}"
2013-05-16 08:34:41 +02:00
fi
2014-02-27 16:23:34 +01:00
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
pkg_install() {
vmove usr/share/doc
}
}
ruby-devel_package() {
depends="ruby-${version}_${revision}"
2013-05-16 08:34:41 +02:00
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove usr/lib/ruby/${_ruby_abiver}/mkmf.rb
vmove usr/lib/pkgconfig
}
}
ruby-ri_package() {
depends="ruby-${version}_${revision}"
short_desc="Ruby Interactive reference"
noarch=yes
pkg_install() {
vmove usr/bin/ri
vmove usr/share/ri
vmove "usr/share/man/man1/ri*"
}
}