mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-20 01:35:13 +03:00
extra/ruby: set arch to CARCH, disable distcc/ccache
the CC variable is remembered in rbconfig.rb. fixes #1
This commit is contained in:
parent
70cea3c4e8
commit
7904d45cbc
1 changed files with 10 additions and 2 deletions
|
@ -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() {
|
||||||
# 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
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue