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>
This commit is contained in:
Torsten Zuehlsdorff 2017-07-17 10:20:42 +00:00
parent 9e4df9d4bf
commit af8f9e5373
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=446061
4 changed files with 46 additions and 0 deletions

View file

@ -672,6 +672,7 @@
SUBDIR += postgresql-repmgr
SUBDIR += postgresql-repmgr2
SUBDIR += postgresql-tds_fdw
SUBDIR += postgresql-zhparser
SUBDIR += postgresql92-client
SUBDIR += postgresql92-contrib
SUBDIR += postgresql92-docs

View file

@ -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>

View file

@ -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

View file

@ -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