diff options
author | tz <tz@FreeBSD.org> | 2017-07-17 18:20:42 +0800 |
---|---|---|
committer | tz <tz@FreeBSD.org> | 2017-07-17 18:20:42 +0800 |
commit | beb35025c3fbd4500fa9e7d77d0e2dd15ef41375 (patch) | |
tree | 24e11d87e2ae906e00c1914ff87029df4ff1de23 /databases/postgresql-zhparser | |
parent | 74d45f15f78be440f2d69b07684b8d4b84dec1cd (diff) | |
download | freebsd-ports-gnome-beb35025c3fbd4500fa9e7d77d0e2dd15ef41375.tar.gz freebsd-ports-gnome-beb35025c3fbd4500fa9e7d77d0e2dd15ef41375.tar.zst freebsd-ports-gnome-beb35025c3fbd4500fa9e7d77d0e2dd15ef41375.zip |
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>
Diffstat (limited to 'databases/postgresql-zhparser')
-rw-r--r-- | databases/postgresql-zhparser/Makefile | 35 | ||||
-rw-r--r-- | databases/postgresql-zhparser/distinfo | 3 | ||||
-rw-r--r-- | databases/postgresql-zhparser/pkg-descr | 7 |
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 |