aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2013-09-07 12:19:12 +0800
committervanilla <vanilla@FreeBSD.org>2013-09-07 12:19:12 +0800
commit22cffd02ecffca4e1599e6d96142dc722fa77419 (patch)
treef191e7476737eb908f54aac539ceeb86647d08d2 /databases
parent90ec3d80569e48a9809e53f3734b80231fdd793a (diff)
downloadfreebsd-ports-gnome-22cffd02ecffca4e1599e6d96142dc722fa77419.tar.gz
freebsd-ports-gnome-22cffd02ecffca4e1599e6d96142dc722fa77419.tar.zst
freebsd-ports-gnome-22cffd02ecffca4e1599e6d96142dc722fa77419.zip
add postgresql-plv8js, it's procedural language base on v8js.
Diffstat (limited to 'databases')
-rw-r--r--databases/Makefile1
-rw-r--r--databases/postgresql-plv8js/Makefile29
-rw-r--r--databases/postgresql-plv8js/distinfo2
-rw-r--r--databases/postgresql-plv8js/files/patch-Makefile11
-rw-r--r--databases/postgresql-plv8js/files/pkg-message.in5
-rw-r--r--databases/postgresql-plv8js/pkg-descr5
-rw-r--r--databases/postgresql-plv8js/pkg-plist10
7 files changed, 63 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile
index 45d2c4b89a35..021cf9c3fdb3 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -669,6 +669,7 @@
SUBDIR += postgresql-pllua
SUBDIR += postgresql-plproxy
SUBDIR += postgresql-plruby
+ SUBDIR += postgresql-plv8js
SUBDIR += postgresql-relay
SUBDIR += postgresql-repmgr
SUBDIR += postgresql84-client
diff --git a/databases/postgresql-plv8js/Makefile b/databases/postgresql-plv8js/Makefile
new file mode 100644
index 000000000000..4b76aaba007c
--- /dev/null
+++ b/databases/postgresql-plv8js/Makefile
@@ -0,0 +1,29 @@
+# Created by: vanilla@
+# $FreeBSD$
+
+PORTNAME= plv8js
+PORTVERSION= 1.4.1
+CATEGORIES= databases
+MASTER_SITES= GOOGLE_CODE
+PKGNAMEPREFIX= postgresql-
+DISTNAME= plv8-${PORTVERSION}
+
+MAINTAINER= vanilla@FreeBSD.org
+COMMENT= PL/v8js procedural language for PostgreSQL database
+
+LIB_DEPENDS+= libv8.so:${PORTSDIR}/lang/v8
+
+USES= gmake
+USE_ZIP= yes
+USE_PGSQL= yes
+WANT_PGSQL_VER= 91+
+
+SUB_FILES= pkg-message
+PKGMESSAGE= ${WRKSRC}/pkg-message
+
+post-install:
+ @${ECHO_MSG} ''
+ @${CAT} ${PKGMESSAGE}
+ @${ECHO_MSG} ''
+
+.include <bsd.port.mk>
diff --git a/databases/postgresql-plv8js/distinfo b/databases/postgresql-plv8js/distinfo
new file mode 100644
index 000000000000..40c748bd6ab0
--- /dev/null
+++ b/databases/postgresql-plv8js/distinfo
@@ -0,0 +1,2 @@
+SHA256 (plv8-1.4.1.zip) = 60442c8f7432760381931e7e7772c0fd19023b714c1d324474b0b428dd61eed7
+SIZE (plv8-1.4.1.zip) = 162213
diff --git a/databases/postgresql-plv8js/files/patch-Makefile b/databases/postgresql-plv8js/files/patch-Makefile
new file mode 100644
index 000000000000..82ab29760cfa
--- /dev/null
+++ b/databases/postgresql-plv8js/files/patch-Makefile
@@ -0,0 +1,11 @@
+--- Makefile.orig 2013-09-07 11:00:59.000000000 +0800
++++ Makefile 2013-09-07 11:01:29.000000000 +0800
+@@ -21,7 +21,7 @@ PG_VERSION_NUM := $(shell cat `$(PG_CONF
+ | perl -ne 'print $$1 and exit if /PG_VERSION_NUM\s+(\d+)/')
+
+ # set your custom C++ compler
+-CUSTOM_CC = g++
++CUSTOM_CC := $(CXX)
+ JSS = coffee-script.js livescript.js
+ # .cc created from .js
+ JSCS = $(JSS:.js=.cc)
diff --git a/databases/postgresql-plv8js/files/pkg-message.in b/databases/postgresql-plv8js/files/pkg-message.in
new file mode 100644
index 000000000000..b47ee85e962a
--- /dev/null
+++ b/databases/postgresql-plv8js/files/pkg-message.in
@@ -0,0 +1,5 @@
+Use the following sql script to create PL/v8js
+
+ psql -c 'CREATE EXTENSION plv8'
+ psql -c 'CREATE EXTENSION plls'
+ psql -c 'CREATE EXTENSION plcoffee'
diff --git a/databases/postgresql-plv8js/pkg-descr b/databases/postgresql-plv8js/pkg-descr
new file mode 100644
index 000000000000..0613e4925f14
--- /dev/null
+++ b/databases/postgresql-plv8js/pkg-descr
@@ -0,0 +1,5 @@
+plv8js is a procedural language add-on for PostgreSQL,
+which means you can define JavaScript functions
+that run inside a PostgreSQL server using google V8 Engine.
+
+WWW: https://code.google.com/p/plv8js/
diff --git a/databases/postgresql-plv8js/pkg-plist b/databases/postgresql-plv8js/pkg-plist
new file mode 100644
index 000000000000..6cd3ab0d1413
--- /dev/null
+++ b/databases/postgresql-plv8js/pkg-plist
@@ -0,0 +1,10 @@
+lib/postgresql/plv8.so
+share/postgresql/extension/plv8.control
+share/postgresql/extension/plv8--%%PORTVERSION%%.sql
+share/postgresql/extension/plcoffee.control
+share/postgresql/extension/plcoffee--%%PORTVERSION%%.sql
+share/postgresql/extension/plls.control
+share/postgresql/extension/plls--%%PORTVERSION%%.sql
+@dirrmtry share/postgresql/extension
+@dirrmtry share/postgresql
+@dirrmtry lib/postgresql