diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-05-14 17:52:43 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-05-14 17:53:28 +0000 |
commit | 501f043aea075871ba83bcad4b720e18249428f3 (patch) | |
tree | e7a8c319aca38dbd19d7ae432c3eb6106b3a5ec1 /main/ruby/APKBUILD | |
parent | 009f3f560af7ae4dc072d5763077b985ad8a6fbd (diff) | |
download | aports-501f043aea075871ba83bcad4b720e18249428f3.tar.bz2 aports-501f043aea075871ba83bcad4b720e18249428f3.tar.xz |
main/ruby: rebuild aginst openssl-1.0
Diffstat (limited to 'main/ruby/APKBUILD')
-rw-r--r-- | main/ruby/APKBUILD | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/main/ruby/APKBUILD b/main/ruby/APKBUILD index a24a4cbc93..87063abdaf 100644 --- a/main/ruby/APKBUILD +++ b/main/ruby/APKBUILD @@ -3,19 +3,27 @@ pkgname=ruby pkgver=1.8.7_p174 _pkgver=1.8.7-p174 -pkgrel=4 +pkgrel=6 pkgdesc="An object-oriented language for quick and easy programming" url="http://www.ruby-lang.org/en/" license="Ruby" 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" +source="ftp://ftp.ruby-lang.org/pub/ruby/1.8/${pkgname}-${_pkgver}.tar.bz2 + ruby-openssl-1.0.0.patch" # # maybe its a good idea to split dep libs to seperate pkg's. # + +_builddir="$srcdir/$pkgname-${_pkgver}" +prepare() { + cd "$_builddir" + patch -p0 -i "$srcdir"/ruby-openssl-1.0.0.patch +} + build() { - cd "$srcdir/$pkgname-${_pkgver}" + cd "$_builddir" # -fomit-frame-pointer makes ruby segfault, see gentoo bug #150413 # In many places aliasing rules are broken; play it safe @@ -24,7 +32,7 @@ build() { # turn off distcc/ccache # http://bugs.alpinelinux.org/issues/show/1 - export CC=cc + export CC=gcc ./configure --build=${CHOST:-i486-alpine-linux-uclibc} \ --prefix=/usr \ @@ -36,10 +44,15 @@ build() { --with-extra-site-search-path='/usr/lib/site_ruby/$(ruby_ver)/i686-linux' \ --enable-shared make || return 1 +} + +package() { + cd "$_builddir" make DESTDIR="$pkgdir" install install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}"/COPYING || return 1 } -md5sums="88c45aaf627b4404e5e4273cb03ba2ee ruby-1.8.7-p174.tar.bz2" +md5sums="88c45aaf627b4404e5e4273cb03ba2ee ruby-1.8.7-p174.tar.bz2 +3361f559a6b338b792ff4946a41708dd ruby-openssl-1.0.0.patch" |