Files
haikuports/dev-lang/ruby/ruby-2.1.5.recipe
2016-02-17 14:39:36 -05:00

103 lines
3.0 KiB
Bash

SUMMARY="A programming language focused on simplicity and productivity"
DESCRIPTION="Ruby is a dynamic, reflective, object-oriented, general-purpose \
programming language. It was designed and developed in the mid-1990s \
by Yukihiro 'Matz' Matsumoto in Japan.
Ruby embodies syntax inspired by Perl with Smalltalk-like features and \
was also influenced by Eiffel and Lisp. It supports multiple \
programming paradigms, including functional, object oriented, and \
imperative. It also has a dynamic type system and automatic memory \
management. Therefore, it is similar in varying degrees to, Smalltalk, \
Python, Perl, Lisp, Dylan, and CLU."
HOMEPAGE="http://www.ruby-lang.org"
COPYRIGHT="1993-2014 Yukihiro Matsumoto"
LICENSE="Ruby
BSD (3-clause)"
REVISION="1"
SOURCE_URI="http://cache.ruby-lang.org/pub/ruby/2.1/ruby-$portVersion.tar.gz"
CHECKSUM_SHA256="4305cc6ceb094df55210d83548dcbeb5117d74eea25196a9b14fa268d354b100"
PATCHES="ruby-$portVersion.patchset"
ARCHITECTURES="!x86_gcc2 ?x86 !x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
ruby$secondaryArchSuffix = $portVersion compat >= 2.1
cmd:ruby = $portVersion compat >= 2.1
cmd:erb = $portVersion compat >= 2.1
cmd:gem = $portVersion compat >= 2.1
cmd:irb = $portVersion compat >= 2.1
cmd:rake = $portVersion compat >= 2.1
cmd:rdoc = $portVersion compat >= 2.1
cmd:ri = $portVersion compat >= 2.1
cmd:testrb = $portVersion compat >= 2.1
lib:libruby$secondaryArchSuffix = $portVersion compat >= 2.1
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libedit$secondaryArchSuffix
lib:libz$secondaryArchSuffix
lib:libcrypto$secondaryArchSuffix
lib:libssl$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libncursesw$secondaryArchSuffix
"
PROVIDES_devel="
ruby${secondaryArchSuffix}_devel = $portVersion
devel:libruby_static$secondaryArchSuffix = $portVersion compat >= 2.1
lib:libruby_static$secondaryArchSuffix = $portVersion compat >= 2.1
devel:libruby$secondaryArchSuffix = $portVersion compat >= 2.1
"
REQUIRES_devel="
ruby$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libedit$secondaryArchSuffix
devel:libz$secondaryArchSuffix
devel:libcrypto$secondaryArchSuffix
devel:libssl$secondaryArchSuffix
devel:libiconv$secondaryArchSuffix
devel:libncursesw$secondaryArchSuffix
devel:libffi$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:g++$secondaryArchSuffix
cmd:autoconf
cmd:bison
cmd:git
cmd:libtoolize
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
libtoolize --force --copy --install
autoconf
runConfigure --omit-dirs binDir ./configure --enable-shared \
--disable-silent-rules \
--bindir=$prefix/bin
# The build process needs to run ruby, and without this it fails to find
# libruby.so.
export LIBRARY_PATH=$LIBRARY_PATH:%A
make $jobArgs Q=''
}
INSTALL()
{
export LIBRARY_PATH=$LIBRARY_PATH:%A
make install
prepareInstalledDevelLibs libruby-static libruby
packageEntries devel $developDir
}
TEST()
{
export LIBRARY_PATH=$LIBRARY_PATH:%A
make check
}