# HG changeset patch # User Rohit Joshi # Date 1273774073 14400 # Node ID 8f21931904cc6b341121e7495c05c963a93eb8f2 # Parent c2b3198d2d91a125d4fba3351560b785ba614a7f ruby: fix compiling issues and receipt; still need to make it busybox compatible with 'cat -e' diff -r c2b3198d2d91 -r 8f21931904cc ruby-dev/receipt --- a/ruby-dev/receipt Thu May 13 23:51:36 2010 +0200 +++ b/ruby-dev/receipt Thu May 13 14:07:53 2010 -0400 @@ -11,8 +11,7 @@ # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr/lib/ruby/1.9.1/i486-linux + mkdir -p $fs/usr/lib/ cp -a $_pkg/usr/lib/*.a $fs/usr/lib - cp -a $_pkg/usr/lib/ruby/1.9.1/i486-linux/*.h \ - $fs/usr/lib/ruby/1.9.1/i486-linux + cp -a $_pkg/usr/include $fs/usr } diff -r c2b3198d2d91 -r 8f21931904cc ruby/receipt --- a/ruby/receipt Thu May 13 23:51:36 2010 +0200 +++ b/ruby/receipt Thu May 13 14:07:53 2010 -0400 @@ -9,18 +9,15 @@ WEB_SITE="http://www.ruby-lang.org/" WGET_URL="ftp://ftp.ruby-lang.org/pub/ruby/${VERSION%.*}/$TARBALL" DEPENDS="libdb ncurses openssl readline zlib tk xorg-libXss gdbm" +BUILD_DEPENDS=" coreutils-file-output-full" TAGS="ruby language programming" # Rules to configure and make the package. compile_rules() { cd $src - patch -p1 < ../stuff/openssl-1.0.patch || return 1 - ./configure \ - --prefix=/usr \ - --infodir=/usr/share/info \ - --mandir=/usr/share/man \ - $CONFIGURE_ARGS && + patch -Np1 < ../stuff/openssl-1.0.patch + ./configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man $CONFIGURE_ARGS && make && make DESTDIR=$PWD/_pkg install } @@ -30,8 +27,6 @@ { mkdir -p $fs/usr/lib cp -a $_pkg/usr/lib/ruby $fs/usr/lib - cp -a $_pkg/usr/bin $fs/usr + cp -a $_pkg/usr/bin $fs/usr - # Remove devel files --> ruby-dev - rm $fs/usr/lib/ruby/1.9.1/i486-linux/*.h }