2008-10-04 04:29:49 +00:00
|
|
|
# Template build file for 'ruby'.
|
|
|
|
pkgname=ruby
|
2011-11-17 16:15:10 +00:00
|
|
|
_ruby_ver="1.9.3"
|
2012-11-13 10:01:59 +00:00
|
|
|
_ruby_distpatchver="p327"
|
2011-02-27 13:53:02 +00:00
|
|
|
_ruby_distver="${_ruby_ver}-${_ruby_distpatchver}"
|
|
|
|
version=${_ruby_ver}${_ruby_distpatchver}
|
2012-11-13 10:01:59 +00:00
|
|
|
revision=1
|
2011-02-27 13:53:02 +00:00
|
|
|
wrksrc="${pkgname}-${_ruby_distver}"
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2011-11-17 16:15:10 +00:00
|
|
|
configure_args="--enable-shared --disable-rpath
|
2012-11-13 10:01:59 +00:00
|
|
|
DOXYGEN=/usr/bin/doxygen DOT=/usr/bin/dot PKG_CONFIG=/usr/bin/pkg-config"
|
|
|
|
makedepends="pkg-config bison groff doxygen graphviz ncurses-devel \
|
|
|
|
readline-devel libffi-devel openssl-devel gdbm-devel libyaml-devel pango-devel"
|
2008-09-30 03:58:50 +00:00
|
|
|
short_desc="Ruby programming language"
|
2012-02-28 23:26:25 +00:00
|
|
|
homepage="http://www.ruby-lang.org/en/"
|
2009-03-02 23:05:47 +00:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2012-02-28 23:26:25 +00:00
|
|
|
license="BSD"
|
2012-11-13 10:01:59 +00:00
|
|
|
distfiles="ftp://ftp.ruby-lang.org/pub/ruby/1.9/$pkgname-${_ruby_distver}.tar.bz2"
|
|
|
|
checksum=d989465242f9b11a8a3aa8cbd2c75a9b3a8c0ec2f14a087a0c7b51abf164e488
|
2008-09-30 03:58:50 +00:00
|
|
|
long_desc="
|
2009-04-18 23:23:01 +00:00
|
|
|
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."
|
2008-10-24 16:32:35 +00:00
|
|
|
|
2013-04-14 09:53:56 +00:00
|
|
|
ruby-devel_package() {
|
|
|
|
depends="ruby-${version}_${revision}"
|
|
|
|
short_desc="ruby development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
|
|
|
vmove usr/lib/ruby/1.9.1/mkmf.rb
|
|
|
|
vmove usr/share/doc
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ruby-gems_package() {
|
|
|
|
depends="ruby-rdoc ruby"
|
|
|
|
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
|
|
|
|
vmove usr/lib/ruby/1.9.1/irb
|
|
|
|
vmove "usr/share/man/man1/irb*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ruby-rdoc_package() {
|
|
|
|
depends="ruby-irb ruby"
|
|
|
|
short_desc="Generate documentation from Ruby source files"
|
|
|
|
noarch=yes
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/rdoc
|
|
|
|
vmove usr/lib/ruby/1.9.1/rdoc
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ruby-ri_package() {
|
|
|
|
depends="ruby-rdoc ruby"
|
|
|
|
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() {
|
|
|
|
vmove usr
|
|
|
|
}
|
|
|
|
}
|