From 8e5f3b313e71593d0f3a8b26826e49bc61aa7448 Mon Sep 17 00:00:00 2001 From: jeremy Date: Mon, 20 Dec 2010 18:15:48 +0000 Subject: [PATCH] Import ruby-fast-stemmer 1.0.0, dependency of ruby-jekyll Fast-stemmer is simply a wrapping around multithreaded Porter stemming algorithm. This gem adds a String#stem method, and it conflicts with the stemmer gem. It's in order of magnitude faster (and uses much less memory) than the latter. --- textproc/ruby-fast-stemmer/Makefile | 25 +++++++++++++++++++++++++ textproc/ruby-fast-stemmer/distinfo | 5 +++++ textproc/ruby-fast-stemmer/pkg/DESCR | 6 ++++++ textproc/ruby-fast-stemmer/pkg/PLIST | 21 +++++++++++++++++++++ 4 files changed, 57 insertions(+) create mode 100644 textproc/ruby-fast-stemmer/Makefile create mode 100644 textproc/ruby-fast-stemmer/distinfo create mode 100644 textproc/ruby-fast-stemmer/pkg/DESCR create mode 100644 textproc/ruby-fast-stemmer/pkg/PLIST diff --git a/textproc/ruby-fast-stemmer/Makefile b/textproc/ruby-fast-stemmer/Makefile new file mode 100644 index 00000000000..23ed758537c --- /dev/null +++ b/textproc/ruby-fast-stemmer/Makefile @@ -0,0 +1,25 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2010/12/20 18:15:48 jeremy Exp $ + +COMMENT= fast Porter stemmer for ruby + +DISTNAME= fast-stemmer-1.0.0 +CATEGORIES= textproc + +HOMEPAGE= http://github.com/romanbsd/fast-stemmer + +# MIT +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +MODULES= lang/ruby + +CONFIGURE_STYLE= ruby gem ext + +MODRUBY_REGRESS= rake +REGRESS_DEPENDS= ${FULLPKGNAME}:${BUILD_PKGPATH} +do-regress: + cd ${WRKSRC} && RUBYOPT=-rubygems ${RAKE} test + +.include diff --git a/textproc/ruby-fast-stemmer/distinfo b/textproc/ruby-fast-stemmer/distinfo new file mode 100644 index 00000000000..cd75a9d4afd --- /dev/null +++ b/textproc/ruby-fast-stemmer/distinfo @@ -0,0 +1,5 @@ +MD5 (fast-stemmer-1.0.0.gem) = UNso9yRMUOFBKfEscFNtAA== +RMD160 (fast-stemmer-1.0.0.gem) = ZUNj1754b9YbqPdNOQkO1DMK9tM= +SHA1 (fast-stemmer-1.0.0.gem) = Asbv+ltdfI371liRjiGDTQIe4CQ= +SHA256 (fast-stemmer-1.0.0.gem) = wwu4WQbWBzODLOlUnbJnP/RDQqZeVG29/DdEwQf7Akw= +SIZE (fast-stemmer-1.0.0.gem) = 9728 diff --git a/textproc/ruby-fast-stemmer/pkg/DESCR b/textproc/ruby-fast-stemmer/pkg/DESCR new file mode 100644 index 00000000000..e9baff72544 --- /dev/null +++ b/textproc/ruby-fast-stemmer/pkg/DESCR @@ -0,0 +1,6 @@ +Fast-stemmer is simply a wrapping around multithreaded Porter stemming +algorithm. + +This gem adds a String#stem method, and it conflicts with the stemmer +gem. It's in order of magnitude faster (and uses much less memory) than +the latter. diff --git a/textproc/ruby-fast-stemmer/pkg/PLIST b/textproc/ruby-fast-stemmer/pkg/PLIST new file mode 100644 index 00000000000..1292c413700 --- /dev/null +++ b/textproc/ruby-fast-stemmer/pkg/PLIST @@ -0,0 +1,21 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2010/12/20 18:15:48 jeremy Exp $ +${GEM_LIB}/cache/${DISTNAME}.gem +${GEM_LIB}/gems/${DISTNAME}/ +${GEM_LIB}/gems/${DISTNAME}/LICENSE +${GEM_LIB}/gems/${DISTNAME}/README +${GEM_LIB}/gems/${DISTNAME}/Rakefile +${GEM_LIB}/gems/${DISTNAME}/VERSION.yml +${GEM_LIB}/gems/${DISTNAME}/ext/ +${GEM_LIB}/gems/${DISTNAME}/ext/Makefile +${GEM_LIB}/gems/${DISTNAME}/ext/extconf.rb +${GEM_LIB}/gems/${DISTNAME}/ext/porter.c +${GEM_LIB}/gems/${DISTNAME}/ext/porter.o +${GEM_LIB}/gems/${DISTNAME}/ext/porter_wrap.c +${GEM_LIB}/gems/${DISTNAME}/ext/porter_wrap.o +${GEM_LIB}/gems/${DISTNAME}/ext/stemmer.so +${GEM_LIB}/gems/${DISTNAME}/lib/ +${GEM_LIB}/gems/${DISTNAME}/lib/fast_stemmer.rb +${GEM_LIB}/gems/${DISTNAME}/lib/stemmer.so +${GEM_LIB}/gems/${DISTNAME}/test/ +${GEM_LIB}/gems/${DISTNAME}/test/fast_stemmer_test.rb +${GEM_LIB}/specifications/${DISTNAME}.gemspec