summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--extra/ruby/APKBUILD12
1 files changed, 10 insertions, 2 deletions
diff --git a/extra/ruby/APKBUILD b/extra/ruby/APKBUILD
index cb01f4be5..b35cf5b22 100644
--- a/extra/ruby/APKBUILD
+++ b/extra/ruby/APKBUILD
@@ -7,7 +7,7 @@ pkgrel=2
pkgdesc="An object-oriented language for quick and easy programming"
url="http://www.ruby-lang.org/en/"
license="Ruby"
-depends="zlib openssl libiconv gdbm db readline"
+depends=
makedepends="zlib-dev openssl-dev libiconv-dev gdbm-dev db-dev readline-dev"
subpackages="$pkgname-doc $pkgname-dev"
source="ftp://ftp.ruby-lang.org/pub/ruby/1.8/${pkgname}-${_pkgver}.tar.bz2"
@@ -22,13 +22,21 @@ build() {
# as it's risky with newer compilers to leave it as it is.
export CFLAGS="$CFLAGS -fno-omit-frame-pointer -fno-strict-aliasing"
- ./configure --prefix=/usr \
+ # turn off distcc/ccache
+ # http://bugs.alpinelinux.org/issues/show/1
+ export CC=cc
+
+ ./configure --host=${CHOST:-i486-alpine-linux-uclibc} \
+ --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
+ --with-sitedir='/usr/local/lib/site_ruby' \
+ --with-extra-site-search-path='/usr/lib/site_ruby/$(ruby_ver)/i686-linux' \
--enable-shared
make || return 1
make DESTDIR="$pkgdir" install
+
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}"/COPYING || return 1
}