Skip to content
Permalink
Browse files

New port: slearp @0.95 - structured learning and predict toolkit.

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 e58ccb78c70f9ffaf97cf70515697dd54a4f7218
Showing with 60 additions and 0 deletions.
  1. +49 −0 textproc/slearp/Portfile
  2. +11 −0 textproc/slearp/files/patch-Makefile.diff
@@ -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}"
@@ -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.
You can’t perform that action at this time.