mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
New port: kenlm.
KenLM Language Model Toolkit. KenLM estimates, filters, and queries language models. WWW: https://kheafield.com/code/kenlm/
This commit is contained in:
parent
7bd3382af7
commit
888c623201
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=366674
7 changed files with 63 additions and 0 deletions
|
@ -324,6 +324,7 @@
|
|||
SUBDIR += jrefentry
|
||||
SUBDIR += jshon
|
||||
SUBDIR += kdiff3
|
||||
SUBDIR += kenlm
|
||||
SUBDIR += kibana
|
||||
SUBDIR += kmfl-european-latin
|
||||
SUBDIR += kmfl-khmer
|
||||
|
|
27
textproc/kenlm/Makefile
Normal file
27
textproc/kenlm/Makefile
Normal file
|
@ -0,0 +1,27 @@
|
|||
# Created by: Dmitry Sivachenko <demon@FreeBSD.org>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= kenlm
|
||||
PORTVERSION= 20140830
|
||||
CATEGORIES= textproc
|
||||
MASTER_SITES= http://kheafield.com/code/
|
||||
DISTNAME= ${PORTNAME}
|
||||
|
||||
MAINTAINER= demon@FreeBSD.org
|
||||
COMMENT= KenLM Language Model Toolkit
|
||||
|
||||
BUILD_DEPENDS= bjam:${PORTSDIR}/devel/boost-jam
|
||||
LIB_DEPENDS= libboost_thread.so:${PORTSDIR}/devel/boost-libs
|
||||
|
||||
USES+= compiler:c++11-lang
|
||||
USE_LDCONFIG= yes
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
MAKE_ENV+= BOOST_BUILD_PATH=${WRKSRC}/jam-files/boost-build
|
||||
|
||||
do-build:
|
||||
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${LOCALBASE}/bin/bjam --toolset=${CHOSEN_COMPILER_TYPE} --with-boost=${LOCALBASE} ${_MAKE_JOBS}
|
||||
|
||||
do-install:
|
||||
cd ${WRKSRC}/bin && ${INSTALL_PROGRAM} lmplz fragment query filter build_binary dump_counts cat_compressed ${STAGEDIR}${PREFIX}/bin/
|
||||
|
||||
.include <bsd.port.mk>
|
2
textproc/kenlm/distinfo
Normal file
2
textproc/kenlm/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
|||
SHA256 (kenlm.tar.gz) = e9e5d985d563ade1f0ba89a8058e9bcc5c491f77efe8b48906e8de94e9c4f569
|
||||
SIZE (kenlm.tar.gz) = 849428
|
10
textproc/kenlm/files/patch-Jamroot
Normal file
10
textproc/kenlm/files/patch-Jamroot
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- Jamroot.orig 2014-04-02 19:33:24.000000000 +0400
|
||||
+++ Jamroot 2014-08-31 00:34:40.000000000 +0400
|
||||
@@ -63,6 +63,6 @@
|
||||
|
||||
install-bin-libs lm//programs util//programs kenlm ;
|
||||
install-headers headers : [ glob-tree *.hh : dist include ] : . ;
|
||||
-alias install : prefix-bin prefix-lib prefix-include ;
|
||||
+alias install : prefix-bin prefix-lib ;
|
||||
explicit headers ;
|
||||
explicit install ;
|
11
textproc/kenlm/files/patch-jam-files-sanity.jam
Normal file
11
textproc/kenlm/files/patch-jam-files-sanity.jam
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- jam-files/sanity.jam.orig 2014-04-21 07:58:19.000000000 +0400
|
||||
+++ jam-files/sanity.jam 2014-08-31 00:16:40.000000000 +0400
|
||||
@@ -148,7 +148,7 @@ rule boost-lib ( name macro : deps * ) {
|
||||
|
||||
#Argument is e.g. 103600
|
||||
rule boost ( min-version ) {
|
||||
- local cmd = "bash -c \"g++ "$(I-boost-include)" -dM -x c++ -E /dev/null -include boost/version.hpp 2>/dev/null |grep '#define BOOST_'\"" ;
|
||||
+ local cmd = "bash -c \"CC "$(I-boost-include)" -dM -x c++ -E /dev/null -include boost/version.hpp 2>/dev/null |grep '#define BOOST_'\"" ;
|
||||
local boost-shell = [ SHELL "$(cmd)" : exit-status ] ;
|
||||
if $(boost-shell[2]) != 0 && $(CLEANING) = no {
|
||||
echo Failed to run "$(cmd)" ;
|
5
textproc/kenlm/pkg-descr
Normal file
5
textproc/kenlm/pkg-descr
Normal file
|
@ -0,0 +1,5 @@
|
|||
KenLM Language Model Toolkit.
|
||||
|
||||
KenLM estimates, filters, and queries language models.
|
||||
|
||||
WWW: https://kheafield.com/code/kenlm/
|
7
textproc/kenlm/pkg-plist
Normal file
7
textproc/kenlm/pkg-plist
Normal file
|
@ -0,0 +1,7 @@
|
|||
bin/build_binary
|
||||
bin/cat_compressed
|
||||
bin/dump_counts
|
||||
bin/filter
|
||||
bin/fragment
|
||||
bin/lmplz
|
||||
bin/query
|
Loading…
Add table
Reference in a new issue