r1858 - in crux-2.2/ports/opt: . ruby-cairo
Author: tilman Date: 2006-09-10 13:34:18 +0200 (Sun, 10 Sep 2006) New Revision: 1858 Added: crux-2.2/ports/opt/ruby-cairo/ crux-2.2/ports/opt/ruby-cairo/.footprint crux-2.2/ports/opt/ruby-cairo/.md5sum crux-2.2/ports/opt/ruby-cairo/Pkgfile crux-2.2/ports/opt/ruby-cairo/ruby-cairo.diff Log: ruby-cairo: initial release Added: crux-2.2/ports/opt/ruby-cairo/.footprint =================================================================== --- crux-2.2/ports/opt/ruby-cairo/.footprint (rev 0) +++ crux-2.2/ports/opt/ruby-cairo/.footprint 2006-09-10 11:34:18 UTC (rev 1858) @@ -0,0 +1,9 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/ruby/ +drwxr-xr-x root/root usr/lib/ruby/site_ruby/ +drwxr-xr-x root/root usr/lib/ruby/site_ruby/1.8/ +-rw-r--r-- root/root usr/lib/ruby/site_ruby/1.8/cairo.rb +drwxr-xr-x root/root usr/lib/ruby/site_ruby/1.8/linux/ +-r-xr-xr-x root/root usr/lib/ruby/site_ruby/1.8/linux/cairo.so +-r-xr-xr-x root/root usr/lib/ruby/site_ruby/1.8/linux/rb_cairo.h Added: crux-2.2/ports/opt/ruby-cairo/.md5sum =================================================================== --- crux-2.2/ports/opt/ruby-cairo/.md5sum (rev 0) +++ crux-2.2/ports/opt/ruby-cairo/.md5sum 2006-09-10 11:34:18 UTC (rev 1858) @@ -0,0 +1,2 @@ +d5b4da3a6aafd28cf2a0dcbdafb82b04 rcairo-1.2.0.tar.gz +aa2e712c7818ee7cde3f3982e74af6f6 ruby-cairo.diff Added: crux-2.2/ports/opt/ruby-cairo/Pkgfile =================================================================== --- crux-2.2/ports/opt/ruby-cairo/Pkgfile (rev 0) +++ crux-2.2/ports/opt/ruby-cairo/Pkgfile 2006-09-10 11:34:18 UTC (rev 1858) @@ -0,0 +1,21 @@ +# Description: Ruby bindings for Cairo +# URL: http://cairographics.org/rcairo +# Maintainer: Tilman Sauerbeck, tilman at crux dot nu +# Depends on: ruby cairo + +name=ruby-cairo +version=1.2.0 +release=1 +source=(http://cairographics.org/releases/rcairo-$version.tar.gz \ + $name.diff) + +build () { + cd rcairo-$version + + patch -Np1 -i $SRC/$name.diff + + ruby setup.rb config + ruby setup.rb setup + + DESTDIR=$PKG ruby setup.rb install +} Property changes on: crux-2.2/ports/opt/ruby-cairo/Pkgfile ___________________________________________________________________ Name: svn:keywords + Id Added: crux-2.2/ports/opt/ruby-cairo/ruby-cairo.diff =================================================================== --- crux-2.2/ports/opt/ruby-cairo/ruby-cairo.diff (rev 0) +++ crux-2.2/ports/opt/ruby-cairo/ruby-cairo.diff 2006-09-10 11:34:18 UTC (rev 1858) @@ -0,0 +1,22 @@ +diff -aur rcairo-1.2.0.orig/setup.rb rcairo-1.2.0/setup.rb +--- rcairo-1.2.0.orig/setup.rb 2006-09-10 13:24:51.880828750 +0200 ++++ rcairo-1.2.0/setup.rb 2006-09-10 13:26:21.978459500 +0200 +@@ -537,7 +537,7 @@ + module FileOperations + + def mkdir_p(dirname, prefix = nil) +- dirname = prefix + File.expand_path(dirname) if prefix ++ dirname = ENV["DESTDIR"] + prefix + File.expand_path(dirname) if prefix + $stderr.puts "mkdir -p #{dirname}" if verbose? + return if no_harm? + +@@ -624,7 +624,8 @@ + $stderr.puts "install #{from} #{dest}" if verbose? + return if no_harm? + +- realdest = prefix ? prefix + File.expand_path(dest) : dest ++ realdest = ENV["DESTDIR"] ++ realdest += prefix ? prefix + File.expand_path(dest) : dest + realdest = File.join(realdest, File.basename(from)) if File.dir?(realdest) + str = File.binread(from) + if diff?(str, realdest)
participants (1)
-
crux@crux.nu