2008-10-04 04:29:49 +00:00
|
|
|
# Template build file for 'ruby'.
|
2014-12-25 13:52:00 +00:00
|
|
|
_ruby_abiver=2.2.0
|
2014-11-13 19:25:00 +00:00
|
|
|
|
|
|
|
pkgname=ruby
|
2014-12-25 13:52:00 +00:00
|
|
|
version=2.2.0
|
|
|
|
revision=1
|
2013-11-24 07:18:53 +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"
|
2014-12-25 13:52:00 +00:00
|
|
|
make_build_args="all capi"
|
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"
|
2014-12-25 13:52:00 +00:00
|
|
|
distfiles="ftp://ftp.ruby-lang.org/pub/ruby/2.2/${pkgname}-${version}.tar.bz2"
|
|
|
|
checksum=1c031137999f832f86be366a71155113675b72420830ce432b777a0ff4942955
|
2008-10-24 16:32:35 +00:00
|
|
|
|
2013-05-16 06:34:41 +00:00
|
|
|
hostmakedepends="pkg-config bison groff doxygen graphviz"
|
2014-07-14 12:57:39 +00:00
|
|
|
makedepends="zlib-devel readline-devel>=6.3 libffi-devel libressl-devel
|
2013-11-24 07:18:53 +00:00
|
|
|
gdbm-devel libyaml-devel pango-devel"
|
2013-05-16 06:34:41 +00:00
|
|
|
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2014-09-19 06:41:01 +00:00
|
|
|
hostmakedepends+=" ruby"
|
2013-05-16 06:34:41 +00:00
|
|
|
fi
|
|
|
|
|
2014-02-27 15:23:34 +00:00
|
|
|
pre_build() {
|
|
|
|
# Force getaddrinfo detection.
|
|
|
|
sed -e 's,\(checking_for("wide getaddrinfo") {try_\)run,\1link,' -i ext/socket/extconf.rb
|
|
|
|
}
|
2014-11-24 15:45:49 +00:00
|
|
|
post_install() {
|
|
|
|
# Remove references to the cross compiler
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
sed -e "s,${XBPS_CROSS_TRIPLET}-,,g" -i ${DESTDIR}/usr/lib/ruby/${_ruby_abiver}/*/rbconfig.rb
|
|
|
|
fi
|
|
|
|
}
|
2014-02-27 15:23:34 +00:00
|
|
|
|
2013-05-16 07:39:41 +00:00
|
|
|
ruby-devel-docs_package() {
|
|
|
|
short_desc+=" - HTML C API documentation files"
|
|
|
|
noarch=yes
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/share/doc
|
|
|
|
}
|
|
|
|
}
|
2013-04-14 09:53:56 +00:00
|
|
|
ruby-devel_package() {
|
|
|
|
depends="ruby-${version}_${revision}"
|
2013-05-16 06:34:41 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-14 09:53:56 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
2014-07-21 15:02:17 +00:00
|
|
|
vmove usr/lib/ruby/${_ruby_abiver}/mkmf.rb
|
2013-04-14 09:53:56 +00:00
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ruby-ri_package() {
|
2014-07-21 15:02:17 +00:00
|
|
|
depends="ruby-${version}_${revision}"
|
2013-04-14 09:53:56 +00:00
|
|
|
short_desc="Ruby Interactive reference"
|
|
|
|
noarch=yes
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/ri
|
|
|
|
vmove usr/share/ri
|
|
|
|
vmove "usr/share/man/man1/ri*"
|
|
|
|
}
|
|
|
|
}
|