void-packages/srcpkgs/ruby/template
2014-10-27 14:27:52 +01:00

56 lines
1.5 KiB
Text

# Template build file for 'ruby'.
pkgname=ruby
version=2.1.4
_ruby_abiver=2.1.0
revision=1
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"
homepage="http://www.ruby-lang.org/en/"
maintainer="Juan RP <xtraeme@gmail.com>"
license="BSD"
distfiles="ftp://ftp.ruby-lang.org/pub/ruby/2.1/${pkgname}-${version}.tar.bz2"
checksum=f37f11a8c75ab9215bb9f61246ef98e0e57e1409f0872e5cf59033edcf5b8d2a
hostmakedepends="pkg-config bison groff doxygen graphviz"
makedepends="zlib-devel readline-devel>=6.3 libffi-devel libressl-devel
gdbm-devel libyaml-devel pango-devel"
replaces="ruby-rdoc>=0 ruby-gems>=0 ruby-irb>=0"
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" ruby"
fi
pre_build() {
# Force getaddrinfo detection.
sed -e 's,\(checking_for("wide getaddrinfo") {try_\)run,\1link,' -i ext/socket/extconf.rb
}
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}"
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*"
}
}