Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Aug 2014 20:42:53 +0000 (UTC)
From:      Dmitry Sivachenko <demon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r366674 - in head/textproc: . kenlm kenlm/files
Message-ID:  <201408302042.s7UKgrwf049224@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: demon
Date: Sat Aug 30 20:42:53 2014
New Revision: 366674
URL: http://svnweb.freebsd.org/changeset/ports/366674
QAT: https://qat.redports.org/buildarchive/r366674/

Log:
  New port: kenlm.
  
  KenLM Language Model Toolkit.
  
  KenLM estimates, filters, and queries language models.
  
  WWW: https://kheafield.com/code/kenlm/

Added:
  head/textproc/kenlm/
  head/textproc/kenlm/Makefile   (contents, props changed)
  head/textproc/kenlm/distinfo   (contents, props changed)
  head/textproc/kenlm/files/
  head/textproc/kenlm/files/patch-Jamroot   (contents, props changed)
  head/textproc/kenlm/files/patch-jam-files-sanity.jam   (contents, props changed)
  head/textproc/kenlm/pkg-descr   (contents, props changed)
  head/textproc/kenlm/pkg-plist   (contents, props changed)
Modified:
  head/textproc/Makefile

Modified: head/textproc/Makefile
==============================================================================
--- head/textproc/Makefile	Sat Aug 30 20:08:31 2014	(r366673)
+++ head/textproc/Makefile	Sat Aug 30 20:42:53 2014	(r366674)
@@ -324,6 +324,7 @@
     SUBDIR += jrefentry
     SUBDIR += jshon
     SUBDIR += kdiff3
+    SUBDIR += kenlm
     SUBDIR += kibana
     SUBDIR += kmfl-european-latin
     SUBDIR += kmfl-khmer

Added: head/textproc/kenlm/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/kenlm/Makefile	Sat Aug 30 20:42:53 2014	(r366674)
@@ -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>

Added: head/textproc/kenlm/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/kenlm/distinfo	Sat Aug 30 20:42:53 2014	(r366674)
@@ -0,0 +1,2 @@
+SHA256 (kenlm.tar.gz) = e9e5d985d563ade1f0ba89a8058e9bcc5c491f77efe8b48906e8de94e9c4f569
+SIZE (kenlm.tar.gz) = 849428

Added: head/textproc/kenlm/files/patch-Jamroot
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/kenlm/files/patch-Jamroot	Sat Aug 30 20:42:53 2014	(r366674)
@@ -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 ;

Added: head/textproc/kenlm/files/patch-jam-files-sanity.jam
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/kenlm/files/patch-jam-files-sanity.jam	Sat Aug 30 20:42:53 2014	(r366674)
@@ -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)" ;

Added: head/textproc/kenlm/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/kenlm/pkg-descr	Sat Aug 30 20:42:53 2014	(r366674)
@@ -0,0 +1,5 @@
+KenLM Language Model Toolkit.
+
+KenLM estimates, filters, and queries language models.
+
+WWW: https://kheafield.com/code/kenlm/

Added: head/textproc/kenlm/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/kenlm/pkg-plist	Sat Aug 30 20:42:53 2014	(r366674)
@@ -0,0 +1,7 @@
+bin/build_binary
+bin/cat_compressed
+bin/dump_counts
+bin/filter
+bin/fragment
+bin/lmplz
+bin/query



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