aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2013-12-02 21:41:23 +0800
committermat <mat@FreeBSD.org>2013-12-02 21:41:23 +0800
commit0e0433c2cdb69e8416758810ddaef1da98254c75 (patch)
treecc3dde77ef31f152cbd3697fb673852f438e5571
parent24bc55f525ad88eaf206357b9b4405a305b42fd9 (diff)
downloadfreebsd-ports-gnome-0e0433c2cdb69e8416758810ddaef1da98254c75.tar.gz
freebsd-ports-gnome-0e0433c2cdb69e8416758810ddaef1da98254c75.tar.zst
freebsd-ports-gnome-0e0433c2cdb69e8416758810ddaef1da98254c75.zip
Make the port work on postgresql > 8.4.
maintainer timeout. PR: ports/184087 Submitted by: mat
-rw-r--r--databases/postgresql-plruby/Makefile41
-rw-r--r--databases/postgresql-plruby/distinfo6
-rw-r--r--databases/postgresql-plruby/files/patch-bitand-bitor16
-rw-r--r--databases/postgresql-plruby/files/patch-src__plruby.h21
4 files changed, 42 insertions, 42 deletions
diff --git a/databases/postgresql-plruby/Makefile b/databases/postgresql-plruby/Makefile
index 6866a6634f5d..b63257619e48 100644
--- a/databases/postgresql-plruby/Makefile
+++ b/databases/postgresql-plruby/Makefile
@@ -1,28 +1,27 @@
# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$
-PORTNAME= plruby
+PORTNAME= postgresql-plruby
PORTVERSION= 0.5.4
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= databases ruby
-MASTER_SITES= RF/${PORTNAME} \
- ftp://ftp.iDaemons.org/pub/distfiles/
-PKGNAMEPREFIX= postgresql-
DIST_SUBDIR= ruby
-PATCHFILES= df2c4d39cdda35e1cb842106b22aaa10df2760e6.diff
-PATCH_SITES= http://github.com/knu/postgresql-plruby/commit/
-PATCH_DIST_STRIP= -p1
-
MAINTAINER= knu@FreeBSD.org
COMMENT= PL/Ruby procedural language for the PostgreSQL database system
+USE_GITHUB= yes
+GH_ACCOUNT= CraigCottingham
+GH_TAGNAME= ${GH_COMMIT}
+GH_COMMIT= f8d9ced
+
+USES= uidfix
USE_BZIP2= yes
USE_PGSQL= server
-WANT_PGSQL_VER= 84-
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
USE_RUBY_RDOC= yes
+NEED_ROOT= yes
POSTGRESQL_PORT?= databases/postgresql${PGSQL_VER}-server
PGSQL_PORTDIR?= ${PORTSDIR}/${POSTGRESQL_PORT}
@@ -39,8 +38,7 @@ DOCS= Changes plruby.html plruby.rd
PKGMESSAGE= ${WRKDIR}/createlang.sql
-NO_STAGE= yes
-pre-patch:
+post-fetch:
cd ${PGSQL_PORTDIR} && ${MAKE} -DBATCH patch
post-build:
@@ -53,18 +51,17 @@ post-build:
.include <bsd.port.pre.mk>
post-install:
+ @${MKDIR} ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/
+ ${INSTALL_DATA} ${WRKDIR}/createlang.sql ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/
.if !defined(NOPORTDOCS)
- ${MKDIR} ${RUBY_MODEXAMPLESDIR}/
- ${INSTALL_DATA} ${WRKDIR}/createlang.sql ${RUBY_MODEXAMPLESDIR}/
- ${MKDIR} ${RUBY_MODDOCDIR}
- (cd ${WRKSRC}/ && ${COPYTREE_SHARE} docs/doc ${RUBY_MODDOCDIR}/ README.en && ${INSTALL_DATA} ${DOCS} ${RUBY_MODDOCDIR}/)
- @${FIND} -ds ${RUBY_MODDOCDIR} -type f -print | ${SED} -E -e \
- 's,^${PREFIX}/?,,' >> ${TMPPLIST}
- @${FIND} -ds ${RUBY_MODDOCDIR} -type d -print | ${SED} -E -e \
- 's,^${PREFIX}/?,@dirrm ,' >> ${TMPPLIST}
- @${ECHO_CMD} "@unexec rmdir %D/share/doc/ruby19/ 2>/dev/null || true" \
+ @${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR}
+ cd ${WRKSRC}/ && ${COPYTREE_SHARE} docs/doc ${STAGEDIR}${RUBY_MODDOCDIR}/ README.markdown && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${RUBY_MODDOCDIR}/
+ ${FIND} -ds ${STAGEDIR}${RUBY_MODDOCDIR} -type f -print | ${SED} -E -e \
+ 's,^${STAGEDIR}${PREFIX}/?,,' >> ${TMPPLIST}
+ ${FIND} -ds ${STAGEDIR}${RUBY_MODDOCDIR} -type d -print | ${SED} -E -e \
+ 's,^${STAGEDIR}${PREFIX}/?,@dirrm ,' >> ${TMPPLIST}
+ ${ECHO_CMD} "@unexec rmdir %D/share/doc/ruby19/ 2>/dev/null || true" \
>> ${TMPPLIST}
.endif
- @${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
diff --git a/databases/postgresql-plruby/distinfo b/databases/postgresql-plruby/distinfo
index a1382caecf3e..143c14386b47 100644
--- a/databases/postgresql-plruby/distinfo
+++ b/databases/postgresql-plruby/distinfo
@@ -1,4 +1,2 @@
-SHA256 (ruby/plruby-0.5.4.tar.bz2) = 8ba24ea19d9e365dc8b32f28e7c287e0dfe993fc865d4ba392acf96947f03bc2
-SIZE (ruby/plruby-0.5.4.tar.bz2) = 96126
-SHA256 (ruby/df2c4d39cdda35e1cb842106b22aaa10df2760e6.diff) = 90a081b4dfd45a4793a1b97a1aef8554acf83afbefae674581703df0c43d0e2a
-SIZE (ruby/df2c4d39cdda35e1cb842106b22aaa10df2760e6.diff) = 261
+SHA256 (ruby/postgresql-plruby-0.5.4.tar.bz2) = 0d28a2450690f836ae9a810c476a29b1175fb51444e7a2a34c46016b04d6c86f
+SIZE (ruby/postgresql-plruby-0.5.4.tar.bz2) = 125753
diff --git a/databases/postgresql-plruby/files/patch-bitand-bitor b/databases/postgresql-plruby/files/patch-bitand-bitor
deleted file mode 100644
index 469efaaa1a51..000000000000
--- a/databases/postgresql-plruby/files/patch-bitand-bitor
+++ /dev/null
@@ -1,16 +0,0 @@
---- src/conversions/bitstring/plruby_bitstring.c.orig 2011-09-12 10:59:01.000000000 +0200
-+++ src/conversions/bitstring/plruby_bitstring.c 2011-09-12 11:01:31.000000000 +0200
-@@ -195,8 +195,13 @@
- }
-
- BIT_OPERATOR(pl_bit_add, bitcat);
-+#if PG_PL_VERSION >= 91
-+BIT_OPERATOR(pl_bit_and, bit_and);
-+BIT_OPERATOR(pl_bit_or, bit_or);
-+#else
- BIT_OPERATOR(pl_bit_and, bitand);
- BIT_OPERATOR(pl_bit_or, bitor);
-+#endif
- BIT_OPERATOR(pl_bit_xor, bitxor);
-
- static VALUE
diff --git a/databases/postgresql-plruby/files/patch-src__plruby.h b/databases/postgresql-plruby/files/patch-src__plruby.h
new file mode 100644
index 000000000000..9aac16fb1ac0
--- /dev/null
+++ b/databases/postgresql-plruby/files/patch-src__plruby.h
@@ -0,0 +1,21 @@
+--- ./src/plruby.h.orig 2012-12-23 14:51:17.000000000 +0100
++++ ./src/plruby.h 2013-11-19 15:29:16.000000000 +0100
+@@ -7,6 +7,7 @@
+ #include "executor/executor.h"
+ #include "commands/trigger.h"
+ #include "utils/elog.h"
++#include "utils/rel.h"
+ #include "utils/builtins.h"
+ #include "fmgr.h"
+ #include "access/heapam.h"
+@@ -35,6 +36,10 @@
+ #include "utils/memutils.h"
+ #endif
+
++#if PG_PL_VERSION >= 93
++#include "access/htup_details.h"
++#endif
++
+ #include "package.h"
+
+ #include <ruby.h>