From owner-svn-ports-head@freebsd.org Tue Dec 22 15:37:35 2015 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 EBEC6A4F8F8; Tue, 22 Dec 2015 15:37:34 +0000 (UTC) (envelope-from miwi@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 C67741D29; Tue, 22 Dec 2015 15:37:34 +0000 (UTC) (envelope-from miwi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id tBMFbXgg055552; Tue, 22 Dec 2015 15:37:33 GMT (envelope-from miwi@FreeBSD.org) Received: (from miwi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id tBMFbXUP055544; Tue, 22 Dec 2015 15:37:33 GMT (envelope-from miwi@FreeBSD.org) Message-Id: <201512221537.tBMFbXUP055544@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: miwi set sender to miwi@FreeBSD.org using -f From: Martin Wilke Date: Tue, 22 Dec 2015 15:37:33 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r404244 - in head/textproc: . p5-Lingua-Identify-CLD p5-Lingua-Identify-CLD/files 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.20 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: Tue, 22 Dec 2015 15:37:35 -0000 Author: miwi Date: Tue Dec 22 15:37:33 2015 New Revision: 404244 URL: https://svnweb.freebsd.org/changeset/ports/404244 Log: These are Perl bindings to CLD, the Compact Language Detection library from Google/Chrome. WWW: http://search.cpan.org/dist/Lingua-Identify-CLD/ PR: 196428 Submitted by: Gasol Wu Approved by: mat (mentor) Differential Revision: D4638 Added: head/textproc/p5-Lingua-Identify-CLD/ head/textproc/p5-Lingua-Identify-CLD/Makefile (contents, props changed) head/textproc/p5-Lingua-Identify-CLD/distinfo (contents, props changed) head/textproc/p5-Lingua-Identify-CLD/files/ head/textproc/p5-Lingua-Identify-CLD/files/patch-CLD.xs (contents, props changed) head/textproc/p5-Lingua-Identify-CLD/files/patch-inc_MyBuilder.pm (contents, props changed) head/textproc/p5-Lingua-Identify-CLD/pkg-descr (contents, props changed) head/textproc/p5-Lingua-Identify-CLD/pkg-plist (contents, props changed) Modified: head/textproc/Makefile Modified: head/textproc/Makefile ============================================================================== --- head/textproc/Makefile Tue Dec 22 15:31:05 2015 (r404243) +++ head/textproc/Makefile Tue Dec 22 15:37:33 2015 (r404244) @@ -621,6 +621,7 @@ SUBDIR += p5-Lingua-EN-Words2Nums SUBDIR += p5-Lingua-Ident SUBDIR += p5-Lingua-Identify + SUBDIR += p5-Lingua-Identify-CLD SUBDIR += p5-Lingua-Ispell SUBDIR += p5-Lingua-PT-Stemmer SUBDIR += p5-Lingua-Preferred Added: head/textproc/p5-Lingua-Identify-CLD/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/p5-Lingua-Identify-CLD/Makefile Tue Dec 22 15:37:33 2015 (r404244) @@ -0,0 +1,26 @@ +# Created by: Gasol Wu +# $FreeBSD$ + +PORTNAME= Lingua-Identify-CLD +PORTVERSION= 0.09 +CATEGORIES= textproc perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= gasol.wu@gmail.com +COMMENT= Interface to Chrome language detection library + +LICENSE= BSD3CLAUSE + +BUILD_DEPENDS= libcld.so:${PORTSDIR}/devel/cld \ + p5-Config-AutoConf>=0.16:${PORTSDIR}/devel/p5-Config-AutoConf \ + p5-ExtUtils-CBuilder>0.27:${PORTSDIR}/devel/p5-ExtUtils-CBuilder \ + p5-ExtUtils-ParseXS>=0:${PORTSDIR}/devel/p5-ExtUtils-ParseXS \ + p5-ExtUtils-LibBuilder>=0.02:${PORTSDIR}/devel/p5-ExtUtils-LibBuilder +RUN_DEPENDS= libcld.so:${PORTSDIR}/devel/cld \ + p5-XSLoader>=0:${PORTSDIR}/devel/p5-XSLoader + +USES= perl5 +USE_PERL5= modbuild + +.include Added: head/textproc/p5-Lingua-Identify-CLD/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/p5-Lingua-Identify-CLD/distinfo Tue Dec 22 15:37:33 2015 (r404244) @@ -0,0 +1,2 @@ +SHA256 (Lingua-Identify-CLD-0.09.tar.gz) = 28b897f9e32f4090f05baa2819b67cead1195e40eb9901c3133d0be030079fb4 +SIZE (Lingua-Identify-CLD-0.09.tar.gz) = 2735166 Added: head/textproc/p5-Lingua-Identify-CLD/files/patch-CLD.xs ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/p5-Lingua-Identify-CLD/files/patch-CLD.xs Tue Dec 22 15:37:33 2015 (r404244) @@ -0,0 +1,16 @@ +--- CLD.xs.orig 2014-09-07 20:44:12 UTC ++++ CLD.xs +@@ -24,10 +24,9 @@ extern "C" { + # define dNOOP + #endif + +-#include "encodings/compact_lang_det/compact_lang_det.h" +-#include "encodings/compact_lang_det/ext_lang_enc.h" +-#include "encodings/compact_lang_det/unittest_data.h" +-#include "encodings/proto/encodings.pb.h" ++#include "compact_lang_det.h" ++#include "ext_lang_enc.h" ++#include "encodings/public/encodings.h" + + MODULE = Lingua::Identify::CLD PACKAGE = Lingua::Identify::CLD + Added: head/textproc/p5-Lingua-Identify-CLD/files/patch-inc_MyBuilder.pm ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/p5-Lingua-Identify-CLD/files/patch-inc_MyBuilder.pm Tue Dec 22 15:37:33 2015 (r404244) @@ -0,0 +1,34 @@ +--- inc/MyBuilder.pm.orig 2014-09-07 20:44:12 UTC ++++ inc/MyBuilder.pm +@@ -46,7 +46,6 @@ sub ACTION_code { + $self->notes(CFLAGS => '-fPIC -I. -O2 -DCLD_WINDOWS'); # XXX fixme for windows + $self->notes(LDFLAGS => '-L.'); + +- $self->dispatch("create_objects"); + $self->dispatch("compile_xscode"); + + $self->SUPER::ACTION_code; +@@ -80,7 +79,7 @@ sub ACTION_compile_xscode { + + if (!$self->up_to_date($cfile, $ofile)) { + $cbuilder->compile( source => $cfile, +- include_dirs => [ catdir("cld-src") ], ++ include_dirs => [ catdir("/usr/local/include/cld") ], + 'C++' => 1, + extra_compiler_flags => $extra_compiler_flags, + object_file => $ofile); +@@ -97,12 +96,11 @@ sub ACTION_compile_xscode { + utime( (time) x 2, $bs_file ); # touch + } + +- my $extra_linker_flags = "-lstdc++"; ++ my $extra_linker_flags = "-lcld -lstdc++"; + $extra_linker_flags .= " -lgcc_s" if $^O eq 'netbsd'; + + my $objects = [ +- $ofile, +- @{ $self->rscan_dir('cld-src', qr/\.o$/) }, ++ $ofile + ]; + + # .o => .(a|bundle) Added: head/textproc/p5-Lingua-Identify-CLD/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/p5-Lingua-Identify-CLD/pkg-descr Tue Dec 22 15:37:33 2015 (r404244) @@ -0,0 +1,4 @@ +These are Perl bindings to CLD, the Compact Language Detection library +from Google/Chrome. + +WWW: http://search.cpan.org/dist/Lingua-Identify-CLD/ Added: head/textproc/p5-Lingua-Identify-CLD/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/p5-Lingua-Identify-CLD/pkg-plist Tue Dec 22 15:37:33 2015 (r404244) @@ -0,0 +1,5 @@ +bin/identify-cld +%%SITE_ARCH%%/Lingua/Identify/CLD.pm +%%SITE_ARCH%%/auto/Lingua/Identify/CLD/CLD.so +%%PERL5_MAN3%%/Lingua::Identify::CLD.3.gz +man/man1/identify-cld.1.gz