[112692] trunk/dports/textproc

hum at macports.org hum at macports.org
Tue Oct 29 08:10:10 PDT 2013


Revision: 112692
          https://trac.macports.org/changeset/112692
Author:   hum at macports.org
Date:     2013-10-29 08:10:10 -0700 (Tue, 29 Oct 2013)
Log Message:
-----------
New port: expgram @ 0.2.0 - an ngram toolkit with succinct storage.

Added Paths:
-----------
    trunk/dports/textproc/expgram/
    trunk/dports/textproc/expgram/Portfile
    trunk/dports/textproc/expgram/files/
    trunk/dports/textproc/expgram/files/patch-configure.diff

Added: trunk/dports/textproc/expgram/Portfile
===================================================================
--- trunk/dports/textproc/expgram/Portfile	                        (rev 0)
+++ trunk/dports/textproc/expgram/Portfile	2013-10-29 15:10:10 UTC (rev 112692)
@@ -0,0 +1,53 @@
+# -*- 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                expgram
+version             0.2.0
+categories          textproc
+maintainers         hum openmaintainer
+
+description         an ngram toolkit with succinct storage
+long_description    ${description}
+
+homepage            http://www2.nict.go.jp/univ-com/multi_trans/expgram
+platforms           darwin
+license             LGPL
+
+master_sites        ${homepage}
+checksums           rmd160  d1e2999122710e673feef3984033f705ba1eddb5 \
+                    sha256  f02df34cd975164561d019e45a52c97639f68cdceafde92271df195b970f38f9
+
+depends_lib         port:boost \
+                    port:openmpi
+
+depends_build       port:py27-docutils \
+                    port:py27-pygments
+
+patchfiles          patch-configure.diff
+
+post-build {
+    system -W ${worksrcpath}/doc "${build.cmd} index.html"
+}
+
+post-destroot {
+    # install additional documents.
+    set dest_doc ${destroot}${prefix}/share/doc/${name}
+    xinstall -d ${dest_doc}
+    xinstall -m 644 -W ${worksrcpath} \
+        COPYING.GPL COPYING.LGPL FAQ LICENSE NEWS.rst README.rst TODO.rst \
+        doc/index.html \
+        ${dest_doc}
+    # install sample scripts.
+    set dest_ex ${destroot}${prefix}/share/examples/${name}
+    xinstall -d ${dest_ex}
+    foreach sh {web1t-en.sh web1t-ja.sh web1t-zh.sh} {
+        xinstall -m 644 ${worksrcpath}/sample/${sh} ${dest_ex}
+        reinplace "s|expgram-directory|${prefix}/bin|" ${dest_ex}/${sh}
+    }
+}
+
+livecheck.type      regex
+livecheck.url       [lindex ${master_sites} 0]
+livecheck.regex     ${name}-(\[0-9.\]+)\\.tar


Property changes on: trunk/dports/textproc/expgram/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/textproc/expgram/files/patch-configure.diff
===================================================================
--- trunk/dports/textproc/expgram/files/patch-configure.diff	                        (rev 0)
+++ trunk/dports/textproc/expgram/files/patch-configure.diff	2013-10-29 15:10:10 UTC (rev 112692)
@@ -0,0 +1,20 @@
+--- configure.orig	2013-10-26 06:41:18.000000000 +0900
++++ configure	2013-10-26 16:44:10.000000000 +0900
+@@ -15774,7 +15774,7 @@
+ 
+ # Check for binaries...
+ # Extract the first word of "rst2man.py", so it can be a program name with args.
+-set dummy rst2man.py; ac_word=$2
++set dummy rst2man-2.7.py; ac_word=$2
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+ $as_echo_n "checking for $ac_word... " >&6; }
+ if ${ac_cv_path_RST2MAN+:} false; then :
+@@ -15824,7 +15824,7 @@
+ 
+ 
+ # Extract the first word of "rst2html.py", so it can be a program name with args.
+-set dummy rst2html.py; ac_word=$2
++set dummy rst2html-2.7.py; ac_word=$2
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+ $as_echo_n "checking for $ac_word... " >&6; }
+ if ${ac_cv_path_RST2HTML+:} false; then :
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131029/30831398/attachment.html>


More information about the macports-changes mailing list