diff options
author | Vanilla I. Shu <vanilla@FreeBSD.org> | 2013-09-07 04:19:12 +0000 |
---|---|---|
committer | Vanilla I. Shu <vanilla@FreeBSD.org> | 2013-09-07 04:19:12 +0000 |
commit | 23a636d06a615e1336f55e66aceaef144c22abb7 (patch) | |
tree | f191e7476737eb908f54aac539ceeb86647d08d2 /databases | |
parent | dee9bfb751d5f001d2b3f46faf1e26ba0e90616b (diff) | |
download | ports-23a636d06a615e1336f55e66aceaef144c22abb7.tar.gz ports-23a636d06a615e1336f55e66aceaef144c22abb7.zip |
Notes
Diffstat (limited to 'databases')
-rw-r--r-- | databases/Makefile | 1 | ||||
-rw-r--r-- | databases/postgresql-plv8js/Makefile | 29 | ||||
-rw-r--r-- | databases/postgresql-plv8js/distinfo | 2 | ||||
-rw-r--r-- | databases/postgresql-plv8js/files/patch-Makefile | 11 | ||||
-rw-r--r-- | databases/postgresql-plv8js/files/pkg-message.in | 5 | ||||
-rw-r--r-- | databases/postgresql-plv8js/pkg-descr | 5 | ||||
-rw-r--r-- | databases/postgresql-plv8js/pkg-plist | 10 |
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 |