From 4ebdd5a50c828402a7caeb2befe8658c71c7fb77 Mon Sep 17 00:00:00 2001 From: espie Date: Sat, 3 Jul 2010 01:55:24 +0000 Subject: [PATCH] fix build AND packaging of the ruby bindings --- net/rrdtool/patches/patch-bindings_ruby_extconf_rb | 11 +++++------ net/rrdtool/pkg/PLIST-ruby | 4 ++-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/net/rrdtool/patches/patch-bindings_ruby_extconf_rb b/net/rrdtool/patches/patch-bindings_ruby_extconf_rb index d0b66a087e9..8fdb013b959 100644 --- a/net/rrdtool/patches/patch-bindings_ruby_extconf_rb +++ b/net/rrdtool/patches/patch-bindings_ruby_extconf_rb @@ -1,12 +1,11 @@ -$OpenBSD: patch-bindings_ruby_extconf_rb,v 1.1 2010/07/01 15:49:24 landry Exp $ +$OpenBSD: patch-bindings_ruby_extconf_rb,v 1.2 2010/07/03 01:55:24 espie Exp $ doesnt find the lib it just created for whatever reason... ---- bindings/ruby/extconf.rb.orig Mon Jun 21 14:39:16 2010 -+++ bindings/ruby/extconf.rb Mon Jun 21 14:39:31 2010 -@@ -13,6 +13,5 @@ elsif /aix/ =~ RUBY_PLATFORM - $LDFLAGS += '-Wl,-blibpath:$(EPREFIX)/lib' +--- bindings/ruby/extconf.rb.orig Mon Jan 19 15:29:14 2009 ++++ bindings/ruby/extconf.rb Sat Jul 3 03:44:44 2010 +@@ -14,5 +14,5 @@ elsif /aix/ =~ RUBY_PLATFORM end --dir_config("rrd","../../src","../../src/.libs") + dir_config("rrd","../../src","../../src/.libs") -have_library("rrd", "rrd_create") +$LDFLAGS+= ' -lrrd' create_makefile("RRD") diff --git a/net/rrdtool/pkg/PLIST-ruby b/net/rrdtool/pkg/PLIST-ruby index 71cd588665c..4145f4be565 100644 --- a/net/rrdtool/pkg/PLIST-ruby +++ b/net/rrdtool/pkg/PLIST-ruby @@ -1,6 +1,6 @@ -@comment $OpenBSD: PLIST-ruby,v 1.1 2010/07/01 15:49:24 landry Exp $ +@comment $OpenBSD: PLIST-ruby,v 1.2 2010/07/03 01:55:24 espie Exp $ lib/ruby/ lib/ruby/site_ruby/ lib/ruby/site_ruby/${MODRUBY_REV}/ -lib/ruby/site_ruby/${MODRUBY_REV}/${MODRUBY_ARCH} +lib/ruby/site_ruby/${MODRUBY_REV}/${MODRUBY_ARCH}/ lib/ruby/site_ruby/${MODRUBY_REV}/${MODRUBY_ARCH}/RRD.so