From owner-svn-ports-all@FreeBSD.ORG Mon Jul 7 12:05:06 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B1DE6BFD; Mon, 7 Jul 2014 12:05:06 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::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 9E2392D3C; Mon, 7 Jul 2014 12:05:06 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s67C56cu041262; Mon, 7 Jul 2014 12:05:06 GMT (envelope-from demon@svn.freebsd.org) Received: (from demon@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s67C55ei041245; Mon, 7 Jul 2014 12:05:05 GMT (envelope-from demon@svn.freebsd.org) Message-Id: <201407071205.s67C55ei041245@svn.freebsd.org> From: Dmitry Sivachenko Date: Mon, 7 Jul 2014 12:05:05 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r361056 - in head/math: . sfst sfst/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-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2014 12:05:06 -0000 Author: demon Date: Mon Jul 7 12:05:05 2014 New Revision: 361056 URL: http://svnweb.freebsd.org/changeset/ports/361056 QAT: https://qat.redports.org/buildarchive/r361056/ Log: New port: sfst. SFST is a toolbox for the implementation of morphological analysers and other tools which are based on finite state transducer technology. Added: head/math/sfst/ head/math/sfst/Makefile (contents, props changed) head/math/sfst/distinfo (contents, props changed) head/math/sfst/files/ head/math/sfst/files/patch-src-Makefile (contents, props changed) head/math/sfst/pkg-descr (contents, props changed) head/math/sfst/pkg-plist (contents, props changed) Modified: head/math/Makefile Modified: head/math/Makefile ============================================================================== --- head/math/Makefile Mon Jul 7 11:48:48 2014 (r361055) +++ head/math/Makefile Mon Jul 7 12:05:05 2014 (r361056) @@ -625,6 +625,7 @@ SUBDIR += sdpara SUBDIR += sedumi SUBDIR += sfft + SUBDIR += sfst SUBDIR += simd-viterbi SUBDIR += slatec SUBDIR += slgrace Added: head/math/sfst/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/sfst/Makefile Mon Jul 7 12:05:05 2014 (r361056) @@ -0,0 +1,18 @@ +# Created by: Dmitry Sivachenko +# $FreeBSD$ + +PORTNAME= sfst +PORTVERSION= 1.4.6h +CATEGORIES= math +MASTER_SITES= http://www.cis.uni-muenchen.de/~schmid/tools/SFST/data/ +DISTNAME= ${PORTNAME:tu}-${PORTVERSION} + +MAINTAINER= demon@FreeBSD.org +COMMENT= A toolbox for the implementation of morphological analysers + +WRKSRC= ${WRKDIR}/${PORTNAME:tu}/src +INSTALL_TARGET= install maninstall libinstall +USES= gmake +USE_LDCONFIG= yes + +.include Added: head/math/sfst/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/sfst/distinfo Mon Jul 7 12:05:05 2014 (r361056) @@ -0,0 +1,2 @@ +SHA256 (SFST-1.4.6h.tar.gz) = d26dc4754af0e994208409e04f6278aa9b50c7f01bda98e13119f7cb4cdbce9d +SIZE (SFST-1.4.6h.tar.gz) = 583946 Added: head/math/sfst/files/patch-src-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/sfst/files/patch-src-Makefile Mon Jul 7 12:05:05 2014 (r361056) @@ -0,0 +1,78 @@ +--- Makefile.orig 2012-01-10 13:13:14.000000000 +0400 ++++ Makefile 2014-07-07 15:57:36.000000000 +0400 +@@ -1,8 +1,8 @@ + + # try different definitions of SGILIB if hash_map is not found + #SGILIB= +-SGILIB=-DSGI__gnu_cxx +-#SGILIB=-DSGIext ++#SGILIB=-DSGI__gnu_cxx ++SGILIB=-DSGIext + + # comment the following lines if readline is not found + READLINE = -DREADLINE +@@ -18,18 +18,18 @@ + + # Uncomment this line in order to compile a library and + # run "make clean" in order to force a recompilation of the object files +-# FPIC = -fPIC ++FPIC = -fPIC + +-CXX = g++ ++CXX ?= CC + WARNING = -Wall -Wcast-qual -Wconversion -std=c++98 -Wno-deprecated -ansi + + ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN) + EXE = .exe + endif + +-CC = g++ ++CC ?= cc + CL = $(CC) +-CFLAGS = -O3 $(WARNING) $(SGILIB) $(CDT) $(READLINE) $(FPIC) ++CFLAGS += $(WARNING) $(SGILIB) $(CDT) $(READLINE) $(FPIC) + LDFLAGS = + + CXXFLAGS = $(CFLAGS) +@@ -46,7 +46,7 @@ + endif + + DESTDIR = +-PREFIX = /usr/local/ ++PREFIX ?= /usr/local/ + + PROGRAMS = fst-compiler$(EXE) fst-infl$(EXE) fst-generate$(EXE) fst-print$(EXE)\ + fst-compare$(EXE) fst-compact$(EXE) fst-infl2$(EXE) fst-lowmem$(EXE)\ +@@ -138,12 +138,12 @@ + -rm $(ALLPROGRAMS) testprogram 2>&- > /dev/null + + install: $(PROGRAMS) +- $(INSTALL_DIR) $(DESTDIR)$(PREFIX)bin +- for p in $(PROGRAMS); do $(INSTALL) $$p $(DESTDIR)$(PREFIX)bin/$$p; done ++ $(INSTALL_DIR) $(DESTDIR)$(PREFIX)/bin ++ for p in $(PROGRAMS); do $(INSTALL) -s $$p $(DESTDIR)$(PREFIX)/bin/$$p; done + + maninstall: +- $(INSTALL_DIR) $(DESTDIR)$(PREFIX)man/man1 +- for m in man1/*.1; do $(INSTALL_MANPAGES) $$m $(DESTDIR)$(PREFIX)man/$$m; done ++ $(INSTALL_DIR) $(DESTDIR)$(PREFIX)/man/man1 ++ for m in man1/*.1; do $(INSTALL_MANPAGES) $$m $(DESTDIR)$(PREFIX)/man/$$m; done + + ifeq ($(findstring arwin, $(shell uname)),arwin) + DYNLIBS = libsfst.dylib +@@ -154,12 +154,12 @@ + libinstall: dynlib hfiles + + dynlib: $(DYNLIBS) +- $(INSTALL_LIBS) $^ $(PREFIX)lib ++ $(INSTALL_LIBS) $^ $(DESTDIR)$(PREFIX)/lib + (ldconfig || true) + + hfiles: alphabet.h basic.h fst.h interface.h mem.h sgi.h utf8.h +- -@if [ ! -d $(PREFIX)include/sfst ]; then mkdir -p $(PREFIX)include/sfst; fi +- $(INSTALL) $^ $(PREFIX)include/sfst ++ -@if [ ! -d $(DESTDIR)$(PREFIX)/include/sfst ]; then mkdir -p $(DESTDIR)$(PREFIX)/include/sfst; fi ++ $(INSTALL) $^ $(DESTDIR)$(PREFIX)/include/sfst + + + # DO NOT DELETE Added: head/math/sfst/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/sfst/pkg-descr Mon Jul 7 12:05:05 2014 (r361056) @@ -0,0 +1,18 @@ +SFST is a toolbox for the implementation of morphological analysers and other +tools which are based on finite state transducer technology. + +The SFST tools comprise: +-- a compiler which translates transducer programs into minimised transducers +-- interactive and batch-mode analysis programs +-- tools for comparing and printing transducers +-- an efficient C++ transducer library + +Features: +-- easy to learn for users who are familiar with grep, sed, or Perl. +-- efficient implementation in C++ +-- supports + -- a wide range of transducer operations + -- UTF-8 character coding + -- weighted transducers (basic functionality only) + +WWW: http://www.cis.uni-muenchen.de/~schmid/tools/SFST/ Added: head/math/sfst/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/sfst/pkg-plist Mon Jul 7 12:05:05 2014 (r361056) @@ -0,0 +1,44 @@ +bin/fst-compact +bin/fst-compare +bin/fst-compiler +bin/fst-compiler-utf8 +bin/fst-generate +bin/fst-infl +bin/fst-infl2 +bin/fst-infl2-daemon +bin/fst-infl3 +bin/fst-lattice +bin/fst-lowmem +bin/fst-match +bin/fst-mor +bin/fst-parse +bin/fst-parse2 +bin/fst-print +bin/fst-text2bin +bin/fst-train +include/sfst/alphabet.h +include/sfst/basic.h +include/sfst/fst.h +include/sfst/interface.h +include/sfst/mem.h +include/sfst/sgi.h +include/sfst/utf8.h +lib/libsfst.so +man/man1/fst-compact.1.gz +man/man1/fst-compare.1.gz +man/man1/fst-compiler-utf8.1.gz +man/man1/fst-compiler.1.gz +man/man1/fst-generate.1.gz +man/man1/fst-infl.1.gz +man/man1/fst-infl2.1.gz +man/man1/fst-infl3.1.gz +man/man1/fst-lattice.1.gz +man/man1/fst-lowmem.1.gz +man/man1/fst-match.1.gz +man/man1/fst-mor.1.gz +man/man1/fst-parse.1.gz +man/man1/fst-parse2.1.gz +man/man1/fst-print.1.gz +man/man1/fst-text2bin.1.gz +man/man1/fst-train.1.gz +@dirrm include/sfst