void-packages/srcpkgs/ruby/template

101 lines
2.5 KiB
Text
Raw Normal View History

# Template build file for 'ruby'.
pkgname=ruby
2013-05-16 06:34:41 +00:00
_ruby_ver="2.0.0"
_ruby_distpatchver="p195"
_ruby_distver="${_ruby_ver}-${_ruby_distpatchver}"
version=${_ruby_ver}${_ruby_distpatchver}
revision=3
wrksrc="${pkgname}-${_ruby_distver}"
short_desc="Ruby programming language"
2012-02-28 23:26:25 +00:00
homepage="http://www.ruby-lang.org/en/"
maintainer="Juan RP <xtraeme@gmail.com>"
2012-02-28 23:26:25 +00:00
license="BSD"
2013-05-16 06:34:41 +00:00
distfiles="ftp://ftp.ruby-lang.org/pub/ruby/2.0/$pkgname-${_ruby_distver}.tar.bz2"
checksum=0be32aef7a7ab6e3708cc1d65cd3e0a99fa801597194bbedd5799c11d652eb5b
long_desc="
Ruby is the interpreted scripting language for quick and easy object
oriented programming. It has many features to process text files and to
do system management tasks (as in Perl). It is simple, straight-forward
and extensible."
2013-05-16 06:34:41 +00: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"
hostmakedepends="pkg-config bison groff doxygen graphviz"
makedepends="readline-devel libffi-devel openssl-devel gdbm-devel libyaml-devel pango-devel"
if [ "$CROSS_BUILD" ]; then
2013-05-16 07:19:02 +00:00
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
2013-05-16 07:19:02 +00:00
}
2013-05-16 06:34:41 +00:00
fi
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 06:34:41 +00:00
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
2013-05-16 06:34:41 +00:00
vmove usr/lib/ruby/2.0.0/mkmf.rb
vmove usr/lib/pkgconfig
}
}
ruby-gems_package() {
2013-05-16 06:34:41 +00:00
depends="ruby-rdoc>=${version}"
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 06:34:41 +00:00
vmove usr/lib/ruby/2.0.0/irb
vmove "usr/share/man/man1/irb*"
}
}
ruby-rdoc_package() {
2013-05-16 06:34:41 +00:00
depends="ruby-irb>=${version}"
short_desc="Generate documentation from Ruby source files"
noarch=yes
pkg_install() {
vmove usr/bin/rdoc
2013-05-16 06:34:41 +00:00
vmove usr/lib/ruby/2.0.0/rdoc
}
}
ruby-ri_package() {
2013-05-16 06:34:41 +00:00
depends="ruby-rdoc>=${version}"
short_desc="Ruby Interactive reference"
noarch=yes
pkg_install() {
vmove usr/bin/ri
vmove usr/share/ri
vmove "usr/share/man/man1/ri*"
}
}
ruby_package() {
pkg_install() {
2013-05-16 06:34:41 +00:00
vmove all
}
}