Commit 7904d45c authored by Natanael Copa's avatar Natanael Copa

extra/ruby: set arch to CARCH, disable distcc/ccache

the CC variable is remembered in rbconfig.rb.
fixes #1
parent 70cea3c4
...@@ -7,7 +7,7 @@ pkgrel=2 ...@@ -7,7 +7,7 @@ pkgrel=2
pkgdesc="An object-oriented language for quick and easy programming" pkgdesc="An object-oriented language for quick and easy programming"
url="http://www.ruby-lang.org/en/" url="http://www.ruby-lang.org/en/"
license="Ruby" license="Ruby"
depends="zlib openssl libiconv gdbm db readline" depends=
makedepends="zlib-dev openssl-dev libiconv-dev gdbm-dev db-dev readline-dev" makedepends="zlib-dev openssl-dev libiconv-dev gdbm-dev db-dev readline-dev"
subpackages="$pkgname-doc $pkgname-dev" subpackages="$pkgname-doc $pkgname-dev"
source="ftp://ftp.ruby-lang.org/pub/ruby/1.8/${pkgname}-${_pkgver}.tar.bz2" source="ftp://ftp.ruby-lang.org/pub/ruby/1.8/${pkgname}-${_pkgver}.tar.bz2"
...@@ -22,13 +22,21 @@ build() { ...@@ -22,13 +22,21 @@ build() {
# as it's risky with newer compilers to leave it as it is. # as it's risky with newer compilers to leave it as it is.
export CFLAGS="$CFLAGS -fno-omit-frame-pointer -fno-strict-aliasing" 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 \ --sysconfdir=/etc \
--mandir=/usr/share/man \ --mandir=/usr/share/man \
--infodir=/usr/share/info \ --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 --enable-shared
make || return 1 make || return 1
make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" install
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}"/COPYING || return 1 install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}"/COPYING || return 1
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment