1 |
graaff 10/06/27 07:38:03 |
2 |
|
3 |
Added: plruby-0.5.4-fix-build-system.patch |
4 |
Log: |
5 |
Version bump. Convert to ruby-ng. Fix build system to work with other ruby versions installed. |
6 |
(Portage version: 2.1.8.3/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 dev-ruby/plruby/files/plruby-0.5.4-fix-build-system.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/plruby/files/plruby-0.5.4-fix-build-system.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/plruby/files/plruby-0.5.4-fix-build-system.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: plruby-0.5.4-fix-build-system.patch |
15 |
=================================================================== |
16 |
diff --git a/extconf.rb b/extconf.rb |
17 |
index 06a6284..f8c04e9 100755 |
18 |
--- a/extconf.rb |
19 |
+++ b/extconf.rb |
20 |
@@ -156,6 +156,8 @@ if macro_defined?("PG_TRY", %Q{#include "c.h"\n#include "utils/elog.h"}) |
21 |
$CFLAGS += " -DPG_PL_TRYCATCH" |
22 |
end |
23 |
|
24 |
+have_library('pq', 'PQconnectdb') |
25 |
+ |
26 |
enable_conversion = false |
27 |
if enable_conversion = enable_config("conversion", true) |
28 |
$CFLAGS += " -DPLRUBY_ENABLE_CONVERSION" |
29 |
diff --git a/src/conversions/basic/extconf.rb b/src/conversions/basic/extconf.rb |
30 |
index d4833b8..f788d9c 100644 |
31 |
--- a/src/conversions/basic/extconf.rb |
32 |
+++ b/src/conversions/basic/extconf.rb |
33 |
@@ -4,4 +4,5 @@ if CONFIG["LIBRUBYARG"] == "$(LIBRUBYARG_SHARED)" && |
34 |
!enable_config("plruby-shared") |
35 |
$LIBRUBYARG = "" |
36 |
end |
37 |
+have_library('ruby18', 'ruby_init') |
38 |
create_makefile('plruby/plruby_basic') |
39 |
diff --git a/src/conversions/bitstring/extconf.rb b/src/conversions/bitstring/extconf.rb |
40 |
index e980c1e..b6f89d3 100644 |
41 |
--- a/src/conversions/bitstring/extconf.rb |
42 |
+++ b/src/conversions/bitstring/extconf.rb |
43 |
@@ -4,4 +4,5 @@ if CONFIG["LIBRUBYARG"] == "$(LIBRUBYARG_SHARED)" && |
44 |
!enable_config("plruby-shared") |
45 |
$LIBRUBYARG = "" |
46 |
end |
47 |
+have_library('ruby18', 'ruby_init') |
48 |
create_makefile('plruby/plruby_bitstring') |
49 |
diff --git a/src/conversions/datetime/extconf.rb b/src/conversions/datetime/extconf.rb |
50 |
index c5de23b..caeebea 100644 |
51 |
--- a/src/conversions/datetime/extconf.rb |
52 |
+++ b/src/conversions/datetime/extconf.rb |
53 |
@@ -4,4 +4,5 @@ if CONFIG["LIBRUBYARG"] == "$(LIBRUBYARG_SHARED)" && |
54 |
!enable_config("plruby-shared") |
55 |
$LIBRUBYARG = "" |
56 |
end |
57 |
+have_library('ruby18', 'ruby_init') |
58 |
create_makefile('plruby/plruby_datetime') |
59 |
diff --git a/src/conversions/geometry/extconf.rb b/src/conversions/geometry/extconf.rb |
60 |
index 9fcf48e..74655b3 100644 |
61 |
--- a/src/conversions/geometry/extconf.rb |
62 |
+++ b/src/conversions/geometry/extconf.rb |
63 |
@@ -4,4 +4,5 @@ if CONFIG["LIBRUBYARG"] == "$(LIBRUBYARG_SHARED)" && |
64 |
!enable_config("plruby-shared") |
65 |
$LIBRUBYARG = "" |
66 |
end |
67 |
+have_library('ruby18', 'ruby_init') |
68 |
create_makefile('plruby/plruby_geometry') |
69 |
diff --git a/src/conversions/network/extconf.rb b/src/conversions/network/extconf.rb |
70 |
index 29952ee..612e7fa 100644 |
71 |
--- a/src/conversions/network/extconf.rb |
72 |
+++ b/src/conversions/network/extconf.rb |
73 |
@@ -4,4 +4,5 @@ if CONFIG["LIBRUBYARG"] == "$(LIBRUBYARG_SHARED)" && |
74 |
!enable_config("plruby-shared") |
75 |
$LIBRUBYARG = "" |
76 |
end |
77 |
+have_library('ruby18', 'ruby_init') |
78 |
create_makefile('plruby/plruby_network') |