summaryrefslogtreecommitdiff
path: root/databases/ruby-mysql/files
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2003-01-29 10:08:06 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2003-01-29 10:08:06 +0000
commit2f692e4645a28be8e471a9541b626fa0f3d49fc3 (patch)
treeeac7d01f8015ce125cdadd964af19b15213f70d0 /databases/ruby-mysql/files
parentUpdate lang/ruby-devel to the latest snapshot as of 2003.01.28. (diff)
Update to 2.4.4 and add a patch to make it build with ruby 1.8.
Diffstat (limited to 'databases/ruby-mysql/files')
-rw-r--r--databases/ruby-mysql/files/patch-extconf.rb22
1 files changed, 22 insertions, 0 deletions
diff --git a/databases/ruby-mysql/files/patch-extconf.rb b/databases/ruby-mysql/files/patch-extconf.rb
new file mode 100644
index 000000000000..529f22b65b2a
--- /dev/null
+++ b/databases/ruby-mysql/files/patch-extconf.rb
@@ -0,0 +1,22 @@
+--- extconf.rb.orig Wed Jan 29 08:59:59 2003
++++ extconf.rb Wed Jan 29 19:02:41 2003
+@@ -24,13 +24,18 @@
+ else
+ exit 1
+ end
++$objs = ["mysql.o"]
+ create_makefile("mysql")
+
+ # make mysql constant
+ File::open("conftest.c", "w") do |f|
+ f.puts src
+ end
+-cpp = Config::expand sprintf(CPP, $CPPFLAGS, $CFLAGS, '')
++if defined? cpp_command
++ cpp = Config.expand(cpp_command(CONFIG['CPPOUTFILE']))
++else
++ cpp = Config::expand sprintf(CPP, $CPPFLAGS, $CFLAGS, '')
++end
+ unless system "#{cpp} > confout" then
+ exit 1
+ end