summaryrefslogtreecommitdiff
path: root/databases/postgresql-zhparser
diff options
context:
space:
mode:
authorTorsten Zuehlsdorff <tz@FreeBSD.org>2017-07-17 10:20:42 +0000
committerTorsten Zuehlsdorff <tz@FreeBSD.org>2017-07-17 10:20:42 +0000
commitaf8f9e5373119bc91f99f8899328993df23c4bb3 (patch)
tree24e11d87e2ae906e00c1914ff87029df4ff1de23 /databases/postgresql-zhparser
parentUpdate to latest commit. (diff)
New port: databases/postgresql-zhparser
Zhparser is a PostgreSQL extension for full-text search of Chinese. It use Simple Chinese Word Segmentation (SCWS) as driver and highly configurable and easy to use. The default dictionary of Zhparser is for Simplified Chinese. If you use Tranditional Chinese,you can download the dicionary from SCWS offical site. WWW: https://github.com/amutu/zhparser PR: 219649 Submitted by: Jov <amutu@amutu.com>
Notes
Notes: svn path=/head/; revision=446061
Diffstat (limited to 'databases/postgresql-zhparser')
-rw-r--r--databases/postgresql-zhparser/Makefile35
-rw-r--r--databases/postgresql-zhparser/distinfo3
-rw-r--r--databases/postgresql-zhparser/pkg-descr7
3 files changed, 45 insertions, 0 deletions
diff --git a/databases/postgresql-zhparser/Makefile b/databases/postgresql-zhparser/Makefile
new file mode 100644
index 000000000000..fbe63a4a943c
--- /dev/null
+++ b/databases/postgresql-zhparser/Makefile
@@ -0,0 +1,35 @@
+# Created by: Jov <amutu@amutu.com>
+# $FreeBSD$
+
+PORTNAME= zhparser
+PORTVERSION= 0.2.0
+DISTVERSIONPREFIX= v
+CATEGORIES= databases
+PKGNAMEPREFIX= postgresql${PGSQL_VER:S/.//}-
+
+MAINTAINER= amutu@amutu.com
+COMMENT= PostgreSQL extension for full-text search of Chinese
+
+LICENSE= PostgreSQL
+
+LIB_DEPENDS= libscws.so:textproc/scws
+
+USES= gmake pgsql:9.2+
+USE_GITHUB= yes
+GH_ACCOUNT= amutu
+
+WANT_PGSQL= server
+
+MAKE_ENV= SCWS_HOME=${PREFIX}
+
+PLIST_FILES= lib/postgresql/zhparser.so \
+ share/postgresql/extension/zhparser--1.0.sql \
+ share/postgresql/extension/zhparser--unpackaged--1.0.sql \
+ share/postgresql/extension/zhparser.control \
+ share/postgresql/tsearch_data/dict.utf8.xdb \
+ share/postgresql/tsearch_data/rules.utf8.ini
+
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/postgresql/zhparser.so
+
+.include <bsd.port.mk>
diff --git a/databases/postgresql-zhparser/distinfo b/databases/postgresql-zhparser/distinfo
new file mode 100644
index 000000000000..3042a2fbf416
--- /dev/null
+++ b/databases/postgresql-zhparser/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1496108378
+SHA256 (amutu-zhparser-v0.2.0_GH0.tar.gz) = 993e4d6cc919f62d597c244f86a28fdbebbfd8c7b9cfaae12768a1e92688bc45
+SIZE (amutu-zhparser-v0.2.0_GH0.tar.gz) = 6101901
diff --git a/databases/postgresql-zhparser/pkg-descr b/databases/postgresql-zhparser/pkg-descr
new file mode 100644
index 000000000000..9ab2d262444b
--- /dev/null
+++ b/databases/postgresql-zhparser/pkg-descr
@@ -0,0 +1,7 @@
+Zhparser is a PostgreSQL extension for full-text search of Chinese. It use
+Simple Chinese Word Segmentation (SCWS) as driver and highly configurable and
+easy to use. The default dictionary of Zhparser is for Simplified Chinese. If
+you use Tranditional Chinese,you can download the dicionary from SCWS offical
+site.
+
+WWW: https://github.com/amutu/zhparser