mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 09:19:15 -04:00
add postgresql-plv8js, it's procedural language base on v8js.
This commit is contained in:
parent
dee9bfb751
commit
23a636d06a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=326569
7 changed files with 63 additions and 0 deletions
|
@ -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
|
||||
|
|
29
databases/postgresql-plv8js/Makefile
Normal file
29
databases/postgresql-plv8js/Makefile
Normal file
|
@ -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>
|
2
databases/postgresql-plv8js/distinfo
Normal file
2
databases/postgresql-plv8js/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
|||
SHA256 (plv8-1.4.1.zip) = 60442c8f7432760381931e7e7772c0fd19023b714c1d324474b0b428dd61eed7
|
||||
SIZE (plv8-1.4.1.zip) = 162213
|
11
databases/postgresql-plv8js/files/patch-Makefile
Normal file
11
databases/postgresql-plv8js/files/patch-Makefile
Normal file
|
@ -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)
|
5
databases/postgresql-plv8js/files/pkg-message.in
Normal file
5
databases/postgresql-plv8js/files/pkg-message.in
Normal file
|
@ -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'
|
5
databases/postgresql-plv8js/pkg-descr
Normal file
5
databases/postgresql-plv8js/pkg-descr
Normal file
|
@ -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/
|
10
databases/postgresql-plv8js/pkg-plist
Normal file
10
databases/postgresql-plv8js/pkg-plist
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue