ruby: fixed installation of binaries.

This fixes the installation of binaries even with slightly unusual
PKGMK_WORK_DIRs.
This commit is contained in:
Tilman Sauerbeck 2010-09-02 10:57:59 +02:00
parent 330627cc08
commit e0039e4825
3 changed files with 18 additions and 2 deletions

View File

@ -1,2 +1,3 @@
d8a02cadf57d2571cd4250e248ea7e4b ruby-1.9.2-p0.tar.bz2
d3e02c8f15bd0000af7c5854b897b220 ruby-arch.patch
34c99219466a947750a54bdc98d68371 ruby-install.patch

View File

@ -5,14 +5,15 @@
name=ruby
version=1.9.2-p0
release=1
release=2
source=(ftp://ftp.ruby-lang.org/pub/$name/1.9/$name-$version.tar.bz2 \
$name-arch.patch)
$name-arch.patch $name-install.patch)
build () {
cd $name-$version
patch -p0 -i $SRC/$name-arch.patch
patch -p1 -i $SRC/$name-install.patch
./configure --prefix=/usr \
--mandir=/usr/man \

14
ruby/ruby-install.patch Normal file
View File

@ -0,0 +1,14 @@
This fixes the installation of binaries if PKGMK_WORK_DIR is something like
/home/foo/.tmp/pkgmk/work/$name
diff -aur ruby-1.9.2-p0.orig/tool/rbinstall.rb ruby-1.9.2-p0/tool/rbinstall.rb
--- ruby-1.9.2-p0.orig/tool/rbinstall.rb 2010-07-24 12:37:26.000000000 +0200
+++ ruby-1.9.2-p0/tool/rbinstall.rb 2010-09-02 10:41:21.417001125 +0200
@@ -404,7 +404,6 @@
end
for src in Dir[File.join(srcdir, "bin/*")]
next unless File.file?(src)
- next if /\/[.#]|(\.(old|bak|orig|rej|diff|patch|core)|~|\/core)$/i =~ src
name = RbConfig.expand(trans[File.basename(src)])