From 4d1125a8758ad71df9529dfbfe0a036bb6dc5b35 Mon Sep 17 00:00:00 2001 From: cheusov Date: Fri, 31 Oct 2014 00:54:02 +0000 Subject: Include example scripts, some of the are rather useful. ++pkgrevision. --- math/crfsuite/Makefile | 11 ++++++++++- math/crfsuite/PLIST | 7 ++++++- math/crfsuite/distinfo | 3 ++- math/crfsuite/patches/patch-example_crfutils.py | 10 ++++++++++ 4 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 math/crfsuite/patches/patch-example_crfutils.py (limited to 'math/crfsuite') diff --git a/math/crfsuite/Makefile b/math/crfsuite/Makefile index d4bae121748..4cf75cab979 100644 --- a/math/crfsuite/Makefile +++ b/math/crfsuite/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.1.1.1 2014/10/29 23:13:21 cheusov Exp $ +# $NetBSD: Makefile,v 1.2 2014/10/31 00:54:02 cheusov Exp $ DISTNAME= 0.12 PKGNAME= crfsuite-${DISTNAME} +PKGREVISION= 1 CATEGORIES= math MASTER_SITES= https://github.com/chokkan/crfsuite/archive/ DIST_SUBDIR= crfsuite @@ -16,14 +17,22 @@ USE_LANGUAGES= c c++ USE_LIBTOOL= yes GNU_CONFIGURE= yes +AUTO_MKDIRS= yes AUTOCONF_REQD= 2.50 USE_TOOLS+= autoconf autoreconf automake CONFIGURE_ARGS+= --with-liblbfgs=${PREFIX} +REPLACE_PYTHON= example/*.py + pre-configure: set -e; cd ${WRKSRC}; autoreconf -sif +post-install: + set -e; cd ${WRKSRC}; \ + ${INSTALL_SCRIPT} example/*.py ${DESTDIR}${PREFIX}/share/examples/crfsuite + +.include "../../lang/python/application.mk" .include "../../math/liblbfgs/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/math/crfsuite/PLIST b/math/crfsuite/PLIST index 4232779a4d5..e88a1b68b07 100644 --- a/math/crfsuite/PLIST +++ b/math/crfsuite/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.1.1.1 2014/10/29 23:13:21 cheusov Exp $ +@comment $NetBSD: PLIST,v 1.2 2014/10/31 00:54:02 cheusov Exp $ bin/crfsuite include/crfsuite.h include/crfsuite.hpp @@ -10,3 +10,8 @@ share/doc/crfsuite/COPYING share/doc/crfsuite/ChangeLog share/doc/crfsuite/INSTALL share/doc/crfsuite/README +share/examples/crfsuite/chunking.py +share/examples/crfsuite/crfutils.py +share/examples/crfsuite/ner.py +share/examples/crfsuite/pos.py +share/examples/crfsuite/template.py diff --git a/math/crfsuite/distinfo b/math/crfsuite/distinfo index 3b95f6b35e5..d92d048db55 100644 --- a/math/crfsuite/distinfo +++ b/math/crfsuite/distinfo @@ -1,9 +1,10 @@ -$NetBSD: distinfo,v 1.1.1.1 2014/10/29 23:13:21 cheusov Exp $ +$NetBSD: distinfo,v 1.2 2014/10/31 00:54:02 cheusov Exp $ SHA1 (crfsuite/0.12.tar.gz) = f121cee029613c64c32056f68710c69f28347238 RMD160 (crfsuite/0.12.tar.gz) = 10e6abffbca2b05229b292e324533eab59742f22 Size (crfsuite/0.12.tar.gz) = 256160 bytes SHA1 (patch-configure.in) = 7c7bc744d32509a354e699e6120db76083db3529 +SHA1 (patch-example_crfutils.py) = 4dad264055b6fd0268b3133d14a22ef8094586e7 SHA1 (patch-frontend_Makefile.am) = 9ab46935cf7ff0147d138bd5425769dbc3aa9246 SHA1 (patch-lib_cqdb_Makefile.am) = eb7d78cea673193e2b9910c77f9f7602f7ec61ae SHA1 (patch-lib_crf_Makefile.am) = 1ed872381c404a7ab15f67360a76954d2d58a18d diff --git a/math/crfsuite/patches/patch-example_crfutils.py b/math/crfsuite/patches/patch-example_crfutils.py new file mode 100644 index 00000000000..793a033b1f4 --- /dev/null +++ b/math/crfsuite/patches/patch-example_crfutils.py @@ -0,0 +1,10 @@ +$NetBSD: patch-example_crfutils.py,v 1.1 2014/10/31 00:54:02 cheusov Exp $ + +--- example/crfutils.py.orig 2011-08-11 03:02:41.000000000 +0000 ++++ example/crfutils.py +@@ -1,3 +1,5 @@ ++#!/usr/bin/env python ++ + """ + A miscellaneous utility for sequential labeling. + Copyright 2010,2011 Naoaki Okazaki. -- cgit v1.2.3