(Mostly) Fixed ruby recipe

Base package works fine but we need to look into adding vendor dir
support and changing the gem install/lookup locations
(similar to how python/perl were changed)

Also, need to figure out how to get the shared library flags right.
gcc2 doesn't like the flags it uses for rpath and disabling rpath
causes a failure at install time because the modules can't find
libruby.so.  This isn't critical though, the pre-PM packages weren't
built with a shared library either.
This commit is contained in:
Chris Roberts
2013-10-30 02:41:30 -06:00
parent 1dc29bf177
commit a8998d1f71
2 changed files with 51 additions and 14 deletions

View File

@@ -11,7 +11,7 @@ diff -up ruby-1.9.1-p243/configure.in.orig ruby-1.9.1-p243/configure.in
i586*)
: ${LDSHARED="ld -shared"}
- DLDFLAGS="$DLDFLAGS -L/boot/develop/lib/x86 -lbe -lroot"
+ DLDFLAGS="$DLDFLAGS -L/boot/develop/lib/x86 -lroot -L/boot/common/lib"
+ DLDFLAGS="$DLDFLAGS -L/boot/system/develop/lib -lroot -L/boot/home/config/develop/lib"
;;
esac
: ${LIBPATHENV=LIBRARY_PATH}

View File

@@ -1,5 +1,15 @@
SUMMARY="ruby - A dynamic, open source programming language with a focus on simplicity and productivity."
DESCRIPTION="ruby - A dynamic, open source programming language with a focus on simplicity and productivity."
SUMMARY="A dynamic 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"
SRC_URI="ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p243.tar.gz"
CHECKSUM_MD5="515bfd965814e718c0943abf3dde5494"
@@ -10,42 +20,67 @@ LICENSE="Ruby
BSD (3-clause)"
COPYRIGHT="1993-2009 Yukihiro Matsumoto"
REVISION="2"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND="dev-libs/libedit >= 20100424"
ARCHITECTURES="x86_gcc2 x86 x86_64"
ARCHITECTURES="?x86_gcc2 ?x86 ?x86_64"
PROVIDES="
ruby = $portVersion compat = 1.9
cmd:ruby = $portVersion compat = 1.9
ruby = $portVersion compat >= 1.9
cmd:ruby = $portVersion compat >= 1.9
cmd:erb = $portVersion compat >= 1.9
cmd:gem = $portVersion compat >= 1.9
cmd:irb = $portVersion compat >= 1.9
cmd:rake = $portVersion compat >= 1.9
cmd:rdoc = $portVersion compat >= 1.9
cmd:ri = $portVersion compat >= 1.9
cmd:testrb = $portVersion compat >= 1.9
"
REQUIRES="
haiku >= $haikuVersion
lib:libedit
lib:libz
lib:libcrypto
lib:libssl
lib:libiconv
lib:libncursesw
"
BUILD_REQUIRES="
devel:libedit
devel:libz
devel:libcrypto
devel:libssl
devel:libiconv
devel:libncursesw
"
BUILD_PREREQUIRES="
haiku_devel >= $haikuVersion
cmd:gcc
cmd:g++
cmd:autoconf
cmd:make
cmd:bison
"
PROVIDES_devel="
ruby_devel = $portVersion
devel:libruby_static = $portVersion compat >= 1.9
lib:libruby_static = $portVersion compat >= 1.9
"
REQUIRES_devel="
ruby == $portVersion
"
SOURCE_DIR="ruby-1.9.1-p243"
PATCHES="ruby-1.9.1.patch"
BUILD()
{
autoconf
# ./configure --prefix=`finddir B_COMMON_DIRECTORY` \
# --mandir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man \
# --datarootdir=`finddir B_COMMON_DATA_DIRECTORY`/ruby
runConfigure ./configure
make $jobArgs
}
@@ -53,4 +88,6 @@ BUILD()
INSTALL()
{
make install
prepareInstalledDevelLibs libruby-static
packageEntries devel $developDir
}