[87578] trunk/dports/math/crfpp/Portfile
hum at macports.org
hum at macports.org
Sat Nov 26 06:42:43 PST 2011
Revision: 87578
http://trac.macports.org/changeset/87578
Author: hum at macports.org
Date: 2011-11-26 06:42:36 -0800 (Sat, 26 Nov 2011)
Log Message:
-----------
crfpp: install documents, examples and sdk; specify sourceforge master_sites to avoid redirects; update checksums; elaborate license.
Modified Paths:
--------------
trunk/dports/math/crfpp/Portfile
Modified: trunk/dports/math/crfpp/Portfile
===================================================================
--- trunk/dports/math/crfpp/Portfile 2011-11-26 12:20:00 UTC (rev 87577)
+++ trunk/dports/math/crfpp/Portfile 2011-11-26 14:42:36 UTC (rev 87578)
@@ -5,10 +5,11 @@
name crfpp
version 0.54
+revision 1
categories math textproc
platforms darwin
maintainers hum openmaintainer
-license LGPL BSD
+license LGPL-3+ BSD
description Yet Another CRF toolkit
@@ -20,15 +21,40 @@
Information Extraction and Text Chunking.
homepage http://crfpp.sourceforge.net/
-master_sites sourceforge
-
+master_sites sourceforge:project/crfpp/crfpp/${version}
distname CRF++-${version}
+checksums rmd160 c0e127fa52eb7b6e2d0cdee85749932ed8577e93 \
+ sha256 8dab6e9ab71212b3d223588f6855384f2b29dada0a30d450266f8990ced63354
-checksums sha1 2742a49a3ec9fa570c2f83bb8a06b859481317f0 \
- rmd160 c0e127fa52eb7b6e2d0cdee85749932ed8577e93
+depends_build port:nkf
patchfiles patch-configure.diff
+post-destroot {
+ set sharedir ${prefix}/share/${name}
+ xinstall -d ${destroot}${sharedir}
+ xinstall -m 644 -W ${worksrcpath} \
+ AUTHORS COPYING ChangeLog NEWS README ${destroot}${sharedir}
+ foreach dir {doc example sdk} {
+ copy $dir ${destroot}${sharedir}
+ }
+ # fix file pathes in exec.sh
+ set modeldir /tmp
+ foreach ex {JapaneseNE basenp chunking seg} {
+ set dir ${sharedir}/example/${ex}
+ reinplace "s|../../|${prefix}/bin/|g" ${destroot}${dir}/exec.sh
+ foreach file {template train.data test.data} {
+ reinplace "s| ${file}| ${dir}/${file}|g" ${destroot}${dir}/exec.sh
+ }
+ reinplace "s| model| ${modeldir}/${name}.model|g" ${destroot}${dir}/exec.sh
+ }
+ # convert to UTF-8
+ foreach file {train.data test.data} {
+ set subdir example/JapaneseNE/${file}
+ system "nkf -w ${worksrcpath}/${subdir} > ${destroot}${sharedir}/${subdir}"
+ }
+}
+
livecheck.type regex
livecheck.url http://sourceforge.net/projects/crfpp/files/
livecheck.regex CRF\\+\\+-(\[0-9.\]+)\\.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111126/d573600c/attachment-0001.html>
More information about the macports-changes
mailing list