1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00
freebsd-ports/databases/postgresql-zhparser/Makefile
Torsten Zuehlsdorff af8f9e5373 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>
2017-07-17 10:20:42 +00:00

36 lines
833 B
Makefile

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