Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Jul 2007 00:52:02 +0000 (UTC)
From:      Gea-Suan Lin <gslin@gslin.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        gslin@gslin.org
Subject:   ports/115051: [NEW PORT] databases/mysqlbigram: Simple N-Gram (bi-gram) FULLTEXT parser plugin for MySQL 5.1+
Message-ID:  <20070731005202.DCA171CC1A@ccreader.NCTU.edu.tw>
Resent-Message-ID: <200707301700.l6UH07oq068534@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         115051
>Category:       ports
>Synopsis:       [NEW PORT] databases/mysqlbigram: Simple N-Gram (bi-gram) FULLTEXT parser plugin for MySQL 5.1+
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 30 17:00:06 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Gea-Suan Lin
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD ccreader.NCTU.edu.tw 6.2-STABLE FreeBSD 6.2-STABLE #0: Sun Jul 29 04:54:23 UTC 2007
>Description:
MySQL has fulltext index search ability for text field. but it is word
based index, it cannot be used for no word delimiter laungage like
Japanese or Chinese. and it also can't search charactors in middle of
a words. (cf. searching 'in' will not match word 'ping'.)

Starts from MySQL 5.1, MySQL supports a plugin that allows to change
server components (fulltext search parser) without restarting /
recompiling the server.

This n-gram parser uses this plugin interface to implement a simple
n-gram (bi-gram) fulltext index parser which can be index no word
delimiter laungage. 

WWW:	http://mysqlbigram.googlepages.com/

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- mysqlbigram-1.0.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	mysqlbigram
#	mysqlbigram/pkg-descr
#	mysqlbigram/Makefile
#	mysqlbigram/pkg-plist
#	mysqlbigram/distinfo
#	mysqlbigram/files
#	mysqlbigram/files/patch-Makefile.in
#
echo c - mysqlbigram
mkdir -p mysqlbigram > /dev/null 2>&1
echo x - mysqlbigram/pkg-descr
sed 's/^X//' >mysqlbigram/pkg-descr << 'END-of-mysqlbigram/pkg-descr'
XMySQL has fulltext index search ability for text field. but it is word
Xbased index, it cannot be used for no word delimiter laungage like
XJapanese or Chinese. and it also can't search charactors in middle of
Xa words. (cf. searching 'in' will not match word 'ping'.)
X
XStarts from MySQL 5.1, MySQL supports a plugin that allows to change
Xserver components (fulltext search parser) without restarting /
Xrecompiling the server.
X
XThis n-gram parser uses this plugin interface to implement a simple
Xn-gram (bi-gram) fulltext index parser which can be index no word
Xdelimiter laungage. 
X
XWWW:	http://mysqlbigram.googlepages.com/
END-of-mysqlbigram/pkg-descr
echo x - mysqlbigram/Makefile
sed 's/^X//' >mysqlbigram/Makefile << 'END-of-mysqlbigram/Makefile'
X# New ports collection makefile for:	mysqlbigram
X# Date created:		2007-07-25
X# Whom:			Gea-Suan Lin <gslin@gslin.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	mysqlbigram
XPORTVERSION=	1.0
XCATEGORIES=	databases
XMASTER_SITES=	http://mysqlbigram.googlepages.com/
XDISTFILES=	bi_gram-src-${PORTVERSION}${EXTRACT_SUFX}
X
XMAINTAINER=	gslin@gslin.org
XCOMMENT=	Simple N-Gram (bi-gram) FULLTEXT parser plugin for MySQL 5.1+
X
X# XXX: Not to use USE_AUTOTOOLS because we just need theirs files
XBUILD_DEPENDS+=	automake-1.9:${PORTSDIR}/devel/automake19 \
X		libtool:${PORTSDIR}/devel/libtool15
X
XCFLAGS+=	-I${LOCALBASE}/include -I${LOCALBASE}/include/mysql
XCONFIGURE_ENV+=	CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
XGNU_CONFIGURE=	yes
XIGNORE_WITH_MYSQL=	323 40 41 50
XLDFLAGS+=	-L${LOCALBASE}/lib
XUSE_MYSQL=	yes
XWRKSRC=		${WRKDIR}/bi_gram
X
Xpost-patch:
X.for f in COPYING INSTALL compile config.guess config.sub depcomp install-sh missing
X	${RM} -f ${WRKSRC}/${f}
X	${LN} -s ${LOCALBASE}/share/automake-1.9/${f} ${WRKSRC}
X.endfor
X	${RM} -f ${WRKSRC}/ltmain.sh
X	${LN} -s ${LOCALBASE}/share/libtool/ltmain.sh ${WRKSRC}
X
X.include <bsd.port.mk>
END-of-mysqlbigram/Makefile
echo x - mysqlbigram/pkg-plist
sed 's/^X//' >mysqlbigram/pkg-plist << 'END-of-mysqlbigram/pkg-plist'
X@comment $FreeBSD$
Xlib/mysql/bi_gramlib.la
Xlib/mysql/bi_gramlib.so
Xlib/mysql/bi_gramlib.so.0
X@dirrmtry lib/mysql
END-of-mysqlbigram/pkg-plist
echo x - mysqlbigram/distinfo
sed 's/^X//' >mysqlbigram/distinfo << 'END-of-mysqlbigram/distinfo'
XMD5 (bi_gram-src-1.0.tar.gz) = 26b8b7cde0a54769f63458dc0c4e15fd
XSHA256 (bi_gram-src-1.0.tar.gz) = ac2c371e449eef9821fe511e0c6117132ea6ffe6c0b8e82a530b9faa584b3d03
XSIZE (bi_gram-src-1.0.tar.gz) = 568629
END-of-mysqlbigram/distinfo
echo c - mysqlbigram/files
mkdir -p mysqlbigram/files > /dev/null 2>&1
echo x - mysqlbigram/files/patch-Makefile.in
sed 's/^X//' >mysqlbigram/files/patch-Makefile.in << 'END-of-mysqlbigram/files/patch-Makefile.in'
X--- Makefile.in.orig	2007-07-31 00:49:47.000000000 +0000
X+++ Makefile.in	2007-07-31 00:49:51.000000000 +0000
X@@ -106,8 +106,7 @@
X distuninstallcheck_listfiles = find . -type f -print
X distcleancheck_listfiles = find . -type f -print
X 
X-#pkglibdir=$(libdir)/mysql
X-pkglibdir = /usr/lib/mysql
X+pkglibdir=$(libdir)/mysql
X ACLOCAL = @ACLOCAL@
X AMDEP_FALSE = @AMDEP_FALSE@
X AMDEP_TRUE = @AMDEP_TRUE@
END-of-mysqlbigram/files/patch-Makefile.in
exit
--- mysqlbigram-1.0.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070731005202.DCA171CC1A>