source: trunk/dports/textproc/chasen/Portfile @ 16589

Last change on this file since 16589 was 16589, checked in by takanori, 14 years ago

Bug: 7379
Submitted by: takanori@…
Reviewed by:
Approved by:
Obtained from:

  • Property svn:eol-style set to native
File size: 2.5 KB
Line 
1# $Id: Portfile,v 1.1 2006/02/23 15:24:32 takanori Exp $
2
3set ipa ipadic-2.7.0
4
5PortSystem        1.0
6name              chasen
7version           2.3.3
8categories        textproc
9maintainers       takanori@opendarwin.org
10description       Japanese morphological analysis system
11long_description  ChaSen is a tool to analyze a text according to a set of dictionaries that \
12                  specifies grammer, part of speech of words, and so on. Because ChaSen itself \
13                  has no dictionaries, we need explicit dictionaries to use. IPADIC is such a \
14                  set of dictionaries that specifies Japanese language. \
15                  \
16                  This version of chasen treats encoding of input as EUC-JP, and its output is \
17                  encoded as EUC-JP by default.
18platforms         darwin
19homepage          http://chasen.naist.jp/hiki/ChaSen/
20master_sites      http://chasen.naist.jp/stable/chasen/:chasen \
21                  http://chasen.naist.jp/stable/ipadic/:ipadic
22distfiles         ${name}-${version}.tar.gz:chasen
23patchfiles        configure.diff
24
25checksums         ${name}-${version}.tar.gz md5 629e90d9490bac95606c38c2d344cc5f \
26                                            sha1 711f5717ee284d26aa5616292f7aaffaef11d03a \
27                                            rmd160 2f2416f82fb0341023314a4672e442fed86207a9 \
28                  ${ipa}.tar.gz md5 f36d315cae25b086a889b7090c674977 \
29                                sha1 52784d8abb3361eafec83ab543be63cf087f9eb2 \
30                                rmd160 5e37c750801df63439032be4954c4b63a44012cb
31
32default_variants  +ipadic
33
34depends_lib       port:darts lib:libiconv:libiconv
35
36configure.args-append   --libexecdir=${prefix}/lib --with-darts=${prefix}/include --with-libiconv=${prefix}
37
38post-destroot   {
39                xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/doc
40
41                xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog INSTALL NEWS README ${destroot}${prefix}/share/doc/${name}
42                xinstall -m 644 ${worksrcpath}/doc/manual-j.pdf ${destroot}${prefix}/share/doc/${name}/doc
43}
44
45variant ipadic  {
46                # Japanese dictionary for ChaSen
47                distfiles-append ${ipa}.tar.gz:ipadic
48                post-destroot {
49                              system "cd ${workpath}/${ipa} && ./configure --with-dicdir=${prefix}/lib/chasen/dic --with-mkchadic=${destroot}${prefix}/lib/chasen --with-chasenrc-path=${destroot}${prefix}/etc/chasenrc && DYLD_LIBRARY_PATH=${destroot}${prefix}/lib make && make install DESTDIR=${destroot}"
50
51                              xinstall -m 755 -d ${destroot}${prefix}/share/doc/ipadic/doc
52
53                              xinstall -m 644 -W ${workpath}/${ipa} AUTHORS COPYING ChangeLog INSTALL INSTALL-ja NEWS README ${destroot}${prefix}/share/doc/ipadic
54                              xinstall -m 644 ${workpath}/${ipa}/doc/ipadic-ja.pdf ${destroot}${prefix}/share/doc/ipadic/doc
55                }
56}
Note: See TracBrowser for help on using the repository browser.