Merged haikuports/haikuports into master

This commit is contained in:
humdinger
2014-06-19 19:48:07 +02:00
3 changed files with 62 additions and 19 deletions

View File

@@ -0,0 +1,33 @@
From 0293a01f710c55445042a570cc3fb9755e20ed71 Mon Sep 17 00:00:00 2001
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
Date: Wed, 18 Jun 2014 16:03:04 +0000
Subject: Fix configuration for Haiku.
* Use something for linking dynamic libraries
* Set a soname on libruby.
diff --git a/configure.in b/configure.in
index 17ed3ed..8efd25d 100644
--- a/configure.in
+++ b/configure.in
@@ -2654,7 +2654,7 @@ if test "$with_dln_a_out" != yes; then
[bsdi3*], [ AS_CASE(["$CC"],
[*shlicc*], [ : ${LDSHARED='$(CC) -r'}
rb_cv_dlopen=yes])],
- [linux* | gnu* | k*bsd*-gnu | netbsd* | bsdi* | kopensolaris*-gnu], [
+ [linux* | gnu* | k*bsd*-gnu | netbsd* | bsdi* | kopensolaris*-gnu | haiku*], [
: ${LDSHARED='$(CC) -shared'}
if test "$rb_cv_binary_elf" = yes; then
LDFLAGS="$LDFLAGS -Wl,-export-dynamic"
@@ -3124,7 +3124,7 @@ AS_CASE("$enable_shared", [yes], [
[sunos4*], [
LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).so.$(MAJOR).$(MINOR) lib$(RUBY_SO_NAME).so'
],
- [linux* | gnu* | k*bsd*-gnu | atheos* | kopensolaris*-gnu], [
+ [linux* | gnu* | k*bsd*-gnu | atheos* | kopensolaris*-gnu | haiku*], [
LIBRUBY_DLDFLAGS='-Wl,-soname,lib$(RUBY_SO_NAME).so.$(MAJOR).$(MINOR)'" $LDFLAGS_OPTDIR"
LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).so.$(MAJOR).$(MINOR) lib$(RUBY_SO_NAME).so'
if test "$load_relative" = yes; then
--
1.8.3.4

View File

@@ -11,15 +11,15 @@ imperative. It also has a dynamic type system and automatic memory
management. Therefore, it is similar in varying degrees to, Smalltalk, management. Therefore, it is similar in varying degrees to, Smalltalk,
Python, Perl, Lisp, Dylan, and CLU." Python, Perl, Lisp, Dylan, and CLU."
HOMEPAGE="http://www.ruby-lang.org" HOMEPAGE="http://www.ruby-lang.org"
SRC_URI="http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.1.tar.gz" SRC_URI="http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz"
CHECKSUM_SHA256="c843df31ae88ed49f5393142b02b9a9f5a6557453805fd489a76fbafeae88941" CHECKSUM_SHA256="f22a6447811a81f3c808d1c2a5ce3b5f5f0955c68c9a749182feb425589e6635"
LICENSE="Ruby LICENSE="Ruby
BSD (3-clause)" BSD (3-clause)"
COPYRIGHT="1993-2014 Yukihiro Matsumoto" COPYRIGHT="1993-2014 Yukihiro Matsumoto"
REVISION="1" REVISION="1"
ARCHITECTURES="?x86 ?x86_64" ARCHITECTURES="?x86 !x86_64"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
# x86_gcc2 is fine as primary target architecture as long as we're building # x86_gcc2 is fine as primary target architecture as long as we're building
# for a different secondary architecture. # for a different secondary architecture.
@@ -28,16 +28,16 @@ fi
SECONDARY_ARCHITECTURES="x86" SECONDARY_ARCHITECTURES="x86"
PROVIDES=" PROVIDES="
ruby$secondaryArchSuffix = $portVersion compat >= 1.9 ruby$secondaryArchSuffix = $portVersion compat >= 2.1
cmd:ruby = $portVersion compat >= 1.9 cmd:ruby$secondaryArchSuffix = $portVersion compat >= 2.1
cmd:erb = $portVersion compat >= 1.9 cmd:erb$secondaryArchSuffix = $portVersion compat >= 2.1
cmd:gem = $portVersion compat >= 1.9 cmd:gem$secondaryArchSuffix = $portVersion compat >= 2.1
cmd:irb = $portVersion compat >= 1.9 cmd:irb$secondaryArchSuffix = $portVersion compat >= 2.1
cmd:rake = $portVersion compat >= 1.9 cmd:rake$secondaryArchSuffix = $portVersion compat >= 2.1
cmd:rdoc = $portVersion compat >= 1.9 cmd:rdoc$secondaryArchSuffix = $portVersion compat >= 2.1
cmd:ri = $portVersion compat >= 1.9 cmd:ri$secondaryArchSuffix = $portVersion compat >= 2.1
cmd:testrb = $portVersion compat >= 1.9 cmd:testrb$secondaryArchSuffix = $portVersion compat >= 2.1
lib:libruby$secondaryArchSuffix = $portVersion compat >= 1.9 lib:libruby$secondaryArchSuffix = $portVersion compat >= 2.1
" "
REQUIRES=" REQUIRES="
@@ -58,39 +58,46 @@ BUILD_REQUIRES="
devel:libssl$secondaryArchSuffix devel:libssl$secondaryArchSuffix
devel:libiconv$secondaryArchSuffix devel:libiconv$secondaryArchSuffix
devel:libncursesw$secondaryArchSuffix devel:libncursesw$secondaryArchSuffix
devel:libffi$secondaryArchSuffix
" "
BUILD_PREREQUIRES=" BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix cmd:gcc$secondaryArchSuffix
cmd:g++$secondaryArchSuffix cmd:g++$secondaryArchSuffix
cmd:autoconf cmd:autoconf
cmd:make
cmd:bison cmd:bison
cmd:git cmd:git
cmd:libtoolize
cmd:make
cmd:pkg_config$secondaryArchSuffix
" "
PROVIDES_devel=" PROVIDES_devel="
ruby_devel$secondaryArchSuffix = $portVersion ruby_devel$secondaryArchSuffix = $portVersion
devel:libruby_static$secondaryArchSuffix = $portVersion compat >= 1.9 devel:libruby_static$secondaryArchSuffix = $portVersion compat >= 2.1
lib:libruby_static$secondaryArchSuffix = $portVersion compat >= 1.9 lib:libruby_static$secondaryArchSuffix = $portVersion compat >= 2.1
devel:libruby$secondaryArchSuffix = $portVersion compat >= 1.9 devel:libruby$secondaryArchSuffix = $portVersion compat >= 2.1
" "
REQUIRES_devel=" REQUIRES_devel="
ruby$secondaryArchSuffix == $portVersion base ruby$secondaryArchSuffix == $portVersion base
" "
PATCHES="ruby-2.1.2.patchset"
BUILD() BUILD()
{ {
libtoolize --force --copy --install
autoconf autoconf
runConfigure ./configure --enable-shared --disable-silent-rules runConfigure ./configure --enable-shared --disable-silent-rules
# The build process needs to run ruby, and without this it fails to find # The build process needs to run ruby, and without this it fails to find
# libruby.so. # libruby.so.
make $jobArgs export LIBRARY_PATH=$LIBRARY_PATH:%A
make $jobArgs Q=''
} }
INSTALL() INSTALL()
{ {
export LIBRARY_PATH=$LIBRARY_PATH:%A
make install make install
prepareInstalledDevelLibs libruby-static libruby prepareInstalledDevelLibs libruby-static libruby
packageEntries devel $developDir packageEntries devel $developDir
@@ -98,5 +105,6 @@ INSTALL()
TEST() TEST()
{ {
export LIBRARY_PATH=$LIBRARY_PATH:%A
make check make check
} }

View File

@@ -92,7 +92,9 @@ BUILD()
# There seem to be a problem with libtool, and without this some libraries # There seem to be a problem with libtool, and without this some libraries
# would not be found during the build. # would not be found during the build.
ln -s ../../glib/.libs gobject/.libs/lib mkdir -p gobject/.libs
ln -sf ../../glib/.libs gobject/.libs/lib
make $jobArgs make $jobArgs
} }