summaryrefslogtreecommitdiffstats
path: root/main/ruby/APKBUILD
diff options
context:
space:
mode:
authorAndrew Manison <amanison@anselsystems.com>2010-05-26 23:09:04 +0000
committerAndrew Manison <amanison@anselsystems.com>2010-05-26 23:09:04 +0000
commit9fddb4d5b41c0b5e69d5ee138297e95eff290302 (patch)
treeb353402b4af0ac5b912dc78ca7d996c397b8e2e3 /main/ruby/APKBUILD
parentccf26410d30adc8c1934dd553687157ed6e31d69 (diff)
parent8c1128e93e03012dabadb9a3f723dbd20eb60cd4 (diff)
downloadaports-9fddb4d5b41c0b5e69d5ee138297e95eff290302.tar.bz2
aports-9fddb4d5b41c0b5e69d5ee138297e95eff290302.tar.xz
Merged from Alpine main repository.
Merge Conflicts: main/abuild/APKBUILD main/cramfs/APKBUILD main/curl/APKBUILD main/dialog/APKBUILD main/libconfig/APKBUILD main/snort/APKBUILD main/syslinux/APKBUILD
Diffstat (limited to 'main/ruby/APKBUILD')
-rw-r--r--main/ruby/APKBUILD23
1 files changed, 18 insertions, 5 deletions
diff --git a/main/ruby/APKBUILD b/main/ruby/APKBUILD
index e49c35a1a..87063abda 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=3
+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"