Created attachment 172439 [details] py-guess-language.shar Attempts to determine the natural language of a selection of Unicode (utf-8) text. Based on guesslanguage.cpp by Jacob R Rideout for KDE which itself is based on Language::Guess by Maciej Ceglowski. Detects over 60 languages, all languages listed in the trigrams directory plus Japanese, Chinese, Korean and Greek. This port will be used as a dependency for security/w3af. - portlint compliant - poudriere tests ok FreeBSD 9.3|10.3|11 - i386|amd64 Poudriere output as example: build started at Tue Jul 12 18:46:55 BRT 2016 port directory: /usr/ports/textproc/py-guess-language building for: FreeBSD 11amd64-ports_dbaio 11.0-ALPHA1 FreeBSD 11.0-ALPHA1 r301120 amd64 maintained by: dbaio@bsd.com.br ident warning: no id keywords in /usr/local/poudriere/data/.m/11amd64-ports_dbaio/ref//usr/ports/textproc/py-guess-language/Makefile Makefile ident: Poudriere version: 3.2-pre Host OSVERSION: 1100120 Jail OSVERSION: 1100116 [...] ====> Running Q/A tests (stage-qa) ====> Checking for pkg-plist issues (check-plist) ===> Parsing plist ===> Checking for items in STAGEDIR missing from pkg-plist ===> Checking for items in pkg-plist which are not in STAGEDIR ===> No pkg-plist issues found (check-plist) ====>> Checking for staging violations... done =======================<phase: package >============================ ===> Building package for py27-guess-language-0.2 =========================================================================== =======================<phase: install-mtree >============================ =========================================================================== ====>> Recording filesystem state for preinst... done =======================<phase: install >============================ ===> Installing for py27-guess-language-0.2 ===> py27-guess-language-0.2 depends on package: py27-setuptools27>0 - found ===> py27-guess-language-0.2 depends on file: /usr/local/bin/python2.7 - found ===> Checking if py27-guess-language already installed ===> Registering installation for py27-guess-language-0.2 [11amd64-ports_dbaio] Installing py27-guess-language-0.2... =========================================================================== ====>> Checking shared library dependencies =======================<phase: deinstall >============================ ===> Deinstalling for py27-guess-language ===> Deinstalling py27-guess-language-0.2 Updating database digests format: ........ done Checking integrity... done (0 conflicting) Deinstallation has been requested for the following 1 packages (of 0 packages in the universe): Installed packages to be REMOVED: py27-guess-language-0.2 Number of packages to be removed: 1 [11amd64-ports_dbaio] [1/1] Deinstalling py27-guess-language-0.2... [11amd64-ports_dbaio] [1/1] Deleting files for py27-guess-language-0.2: .......... done =========================================================================== ====>> Checking for extra files and directories [00:00:26] ====>> Installing from package [11amd64-ports_dbaio] Installing py27-guess-language-0.2... [11amd64-ports_dbaio] Extracting py27-guess-language-0.2: .......... done [00:00:26] ====>> Cleaning up ===> Cleaning for py27-guess-language-0.2 [00:00:26] ====>> Deinstalling package Updating database digests format: . done Checking integrity... done (0 conflicting) Deinstallation has been requested for the following 1 packages (of 0 packages in the universe): Installed packages to be REMOVED: py27-guess-language-0.2 Number of packages to be removed: 1 [11amd64-ports_dbaio] [1/1] Deinstalling py27-guess-language-0.2... [11amd64-ports_dbaio] [1/1] Deleting files for py27-guess-language-0.2: .......... done build of textproc/py-guess-language ended at Tue Jul 12 18:47:14 BRT 2016 build time: 00:00:19
Committed, thanks!
A commit references this bug: Author: pi Date: Fri Jul 15 17:29:27 UTC 2016 New revision: 418595 URL: https://svnweb.freebsd.org/changeset/ports/418595 Log: New port: textproc/py-guess-language Attempts to determine the natural language of a selection of Unicode (utf-8) text. Based on guesslanguage.cpp by Jacob R Rideout for KDE which itself is based on Language::Guess by Maciej Ceglowski. Detects over 60 languages, all languages listed in the trigrams directory plus Japanese, Chinese, Korean and Greek. WWW: https://pypi.python.org/pypi/guess-language PR: 211058 Submitted by: Danilo G. Baio <dbaio@bsd.com.br> Changes: head/textproc/Makefile head/textproc/py-guess-language/ head/textproc/py-guess-language/Makefile head/textproc/py-guess-language/distinfo head/textproc/py-guess-language/pkg-descr