aboutsummaryrefslogtreecommitdiffstats
path: root/databases/postgresql-plruby/files/patch-extconf.rb
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2017-08-31 19:07:30 +0800
committerKoop Mast <kwm@rainbow-runner.nl>2018-02-04 05:27:21 +0800
commit732affdb1652b3989c81d4584b930b7d97c19663 (patch)
tree84a0527ccb81e32e9604c03d5e0cce5d5aadcd29 /databases/postgresql-plruby/files/patch-extconf.rb
parentbd6e4e0a0bde5d23a9eca31db3ac6b2043fb6a3e (diff)
downloadfreebsd-ports-gnome-732affdb1652b3989c81d4584b930b7d97c19663.tar.gz
freebsd-ports-gnome-732affdb1652b3989c81d4584b930b7d97c19663.tar.zst
freebsd-ports-gnome-732affdb1652b3989c81d4584b930b7d97c19663.zip
Fix build with postgresql 10.
Sponsored by: Absolight
Diffstat (limited to 'databases/postgresql-plruby/files/patch-extconf.rb')
-rw-r--r--databases/postgresql-plruby/files/patch-extconf.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/databases/postgresql-plruby/files/patch-extconf.rb b/databases/postgresql-plruby/files/patch-extconf.rb
new file mode 100644
index 000000000000..d621ced0e07a
--- /dev/null
+++ b/databases/postgresql-plruby/files/patch-extconf.rb
@@ -0,0 +1,11 @@
+--- extconf.rb.orig 2017-08-31 10:56:23 UTC
++++ extconf.rb
+@@ -122,6 +122,8 @@ end
+ case version_str = `#{pg_config} --version`
+ when /^PostgreSQL ([7-9])\.([0-9]{1,3})(\.[0-9]{1,3})?$/
+ version = 10 * $1.to_i + $2.to_i
++when /^PostgreSQL 10/
++ version = 100
+ else
+ version = 0
+ end