Skip to content

Commit

Permalink
New port: slearp @0.95 - structured learning and predict toolkit.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@117682 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
humem committed Mar 8, 2014
1 parent d3d3ac0 commit e58ccb7
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
49 changes: 49 additions & 0 deletions textproc/slearp/Portfile
@@ -0,0 +1,49 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$

PortSystem 1.0

name slearp
version 0.95
categories textproc math
maintainers hum openmaintainer

description structured learning and predict toolkit for tasks such as \
g2p conversion, based on discriminative leaning

long_description Slearp (structured learning and prediction) is the ${description}.

homepage http://sourceforge.jp/projects/slearp/
platforms darwin
license GPL-3

distname ${name}_${version}

master_sites sourceforge_jp:slearp/60712/
checksums rmd160 e15088a7336f137f588ea3062128ecfec950f69d \
sha256 f4849952e714861351e30d444602383f4d02b4be3f5b11566f00c11398d05990

patchfiles patch-Makefile.diff

use_configure no
variant universal {}

build.target
build.args CXX="${configure.cxx}" \
CXXFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]" \

destroot {
xinstall -m 755 ${worksrcpath}/slearp ${destroot}${prefix}/bin
set docdir ${prefix}/share/doc/${name}
xinstall -d ${destroot}${docdir}
xinstall -m 644 -W ${worksrcpath} \
COPYING readme \
${destroot}${docdir}
set exdir ${prefix}/share/examples/${name}
xinstall -d ${destroot}${exdir}
copy ${worksrcpath}/g2p_example ${destroot}${exdir}
}

livecheck.type regex
livecheck.url http://sourceforge.jp/projects/slearp/releases/
livecheck.regex "${name}_(\\d+(?:\\.\\d+)*)${extract.suffix}"
11 changes: 11 additions & 0 deletions textproc/slearp/files/patch-Makefile.diff
@@ -0,0 +1,11 @@
--- Makefile.orig 2014-03-08 12:02:25.000000000 +0900
+++ Makefile 2014-03-08 12:07:52.000000000 +0900
@@ -9,7 +9,7 @@
HED = OptimizePara.h

$(PROGRAM): $(OBJS) $(HED)
- $(CXX) $^ $(CXXFLAGS) -o $@
+ $(CXX) $(OBJS) $(CXXFLAGS) -o $@

.PHONY: clean

0 comments on commit e58ccb7

Please sign in to comment.