blob: 1d371e68dc2fd65d308582ae0a57c783d64fe722 (
plain)
1 diff -aur rcairo-1.2.0.orig/setup.rb rcairo-1.2.0/setup.rb
2 --- rcairo-1.2.0.orig/setup.rb 2006-09-10 13:24:51.880828750 +0200
3 +++ rcairo-1.2.0/setup.rb 2006-09-10 13:26:21.978459500 +0200
4 @@ -537,7 +537,7 @@
5 module FileOperations
6
7 def mkdir_p(dirname, prefix = nil)
8 - dirname = prefix + File.expand_path(dirname) if prefix
9 + dirname = ENV["DESTDIR"] + prefix + File.expand_path(dirname) if prefix
10 $stderr.puts "mkdir -p #{dirname}" if verbose?
11 return if no_harm?
12
13 @@ -624,7 +624,8 @@
14 $stderr.puts "install #{from} #{dest}" if verbose?
15 return if no_harm?
16
17 - realdest = prefix ? prefix + File.expand_path(dest) : dest
18 + realdest = ENV["DESTDIR"]
19 + realdest += prefix ? prefix + File.expand_path(dest) : dest
20 realdest = File.join(realdest, File.basename(from)) if File.dir?(realdest)
21 str = File.binread(from)
22 if diff?(str, realdest)
|