From owner-svn-ports-head@freebsd.org Wed Apr 26 19:33:47 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 78701D51182; Wed, 26 Apr 2017 19:33:47 +0000 (UTC) (envelope-from jrm@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 324681A5F; Wed, 26 Apr 2017 19:33:47 +0000 (UTC) (envelope-from jrm@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v3QJXk8i035152; Wed, 26 Apr 2017 19:33:46 GMT (envelope-from jrm@FreeBSD.org) Received: (from jrm@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v3QJXjI8035148; Wed, 26 Apr 2017 19:33:45 GMT (envelope-from jrm@FreeBSD.org) Message-Id: <201704261933.v3QJXjI8035148@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jrm set sender to jrm@FreeBSD.org using -f From: Joseph Mingrone Date: Wed, 26 Apr 2017 19:33:45 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r439488 - in head/textproc: . rubygem-whatlanguage X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Apr 2017 19:33:47 -0000 Author: jrm Date: Wed Apr 26 19:33:45 2017 New Revision: 439488 URL: https://svnweb.freebsd.org/changeset/ports/439488 Log: textproc/rubygem-whatlanguage: Natural language detection for text samples Adding textproc/rubygem-whatlanguage, because it is a dependency for the upcoming port, net-im/mastodon. Approved by: swills (mentor, implicit) Added: head/textproc/rubygem-whatlanguage/ head/textproc/rubygem-whatlanguage/Makefile (contents, props changed) head/textproc/rubygem-whatlanguage/distinfo (contents, props changed) head/textproc/rubygem-whatlanguage/pkg-descr (contents, props changed) Modified: head/textproc/Makefile Modified: head/textproc/Makefile ============================================================================== --- head/textproc/Makefile Wed Apr 26 19:12:16 2017 (r439487) +++ head/textproc/Makefile Wed Apr 26 19:33:45 2017 (r439488) @@ -1563,6 +1563,7 @@ SUBDIR += rubygem-unf SUBDIR += rubygem-unf_ext SUBDIR += rubygem-version_sorter + SUBDIR += rubygem-whatlanguage SUBDIR += rubygem-wikicloth SUBDIR += rubygem-xml-simple SUBDIR += rubygem-ya2yaml Added: head/textproc/rubygem-whatlanguage/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/rubygem-whatlanguage/Makefile Wed Apr 26 19:33:45 2017 (r439488) @@ -0,0 +1,19 @@ +# $FreeBSD$ + +PORTNAME= whatlanguage +PORTVERSION= 1.0.6 +CATEGORIES= textproc rubygems +MASTER_SITES= RG + +MAINTAINER= jrm@FreeBSD.org +COMMENT= Natural language detection for text samples + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +NO_ARCH= yes + +USE_RUBY= yes +USES= gem + +.include Added: head/textproc/rubygem-whatlanguage/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/rubygem-whatlanguage/distinfo Wed Apr 26 19:33:45 2017 (r439488) @@ -0,0 +1,3 @@ +TIMESTAMP = 1493234905 +SHA256 (rubygem/whatlanguage-1.0.6.gem) = 2f3410f4c2cc50eb582640e01b2d18c478fc7a95a3d1bcfc5d8ea05a1f68fd69 +SIZE (rubygem/whatlanguage-1.0.6.gem) = 2982400 Added: head/textproc/rubygem-whatlanguage/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/rubygem-whatlanguage/pkg-descr Wed Apr 26 19:33:45 2017 (r439488) @@ -0,0 +1,10 @@ +WhatLanguage, written in pure-Ruby, detects the human language of supplied text. +It uses Bloom filters, so it is fast and memory efficient. It works well on +text of over 10 words in length (e.g. blog posts or comments) and very poorly on +short or Twitter-esque text. + +It works with Arabic, Dutch, English, Farsi, Finnish, French, German, Greek, +Hebrew, Hungarian, Italian, Korean, Norwegian, Pinyin, Polish, Portuguese, +Russian, Spanish, and Swedish out of the box. + +WWW: https://github.com/peterc/whatlanguage