summaryrefslogtreecommitdiff
path: root/databases/ruby-tokyotyrant/patches/patch-aa
blob: 3cb74733cdc7a74ccda8ca89d058e94b21ee094c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-aa,v 1.1.1.1 2008/10/26 11:43:50 obache Exp $

--- install.rb.orig	2008-10-26 08:13:27.000000000 +0000
+++ install.rb
@@ -1,10 +1,13 @@
 require 'rbconfig'
+require 'ftools'
 
 sitelibdir = Config::CONFIG.fetch("sitelibdir")
 bindir = Config::CONFIG.fetch("bindir")
 
 def copy(src, dest, mode)
   p dest
+  dest = File.join(ENV['DESTDIR'], dest)
+  File::makedirs(File.dirname(dest))
   open(src, "rb") do |infile|
     open(dest, "wb") do |outfile|
       while buf = infile.read(8192)