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

Last change on this file since 19815 was 19815, checked in by takanori@…, 13 years ago

takanori@… -> takanori@…

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.2 KB
Line 
1# $Id: Portfile 19815 2006-10-01 02:06:07Z takanori@macports.org $
2
3set ipa ipadic-2.7.0
4
5PortSystem        1.0
6name              chasen
7version           2.3.3
8revision          2
9categories        textproc
10maintainers       takanori@macports.org
11description       Japanese morphological analysis system
12long_description  ChaSen is a tool to analyze a text according to a set of dictionaries that \
13                  specifies grammer, part of speech of words, and so on. Because ChaSen itself \
14                  has no dictionaries, we need explicit dictionaries to use. IPADIC is such a \
15                  set of dictionaries that specifies Japanese language. \
16                  \
17                  This version of chasen treats encoding of input as EUC-JP, and its output is \
18                  encoded as EUC-JP by default.
19platforms         darwin
20homepage          http://chasen.naist.jp/hiki/ChaSen/
21master_sites      http://chasen.naist.jp/stable/chasen/:chasen \
22                  http://chasen.naist.jp/stable/ipadic/:ipadic
23distfiles         ${name}-${version}.tar.gz:chasen \
24                  chasen-2.3.3.20030821.patch:chasen \
25                  chasen-2.3.3.20030822.patch:chasen
26extract.only      ${name}-${version}.tar.gz
27patchfiles        configure.diff dartsdic.cpp.patch
28
29checksums         ${name}-${version}.tar.gz md5 629e90d9490bac95606c38c2d344cc5f \
30                                            sha1 711f5717ee284d26aa5616292f7aaffaef11d03a \
31                                            rmd160 2f2416f82fb0341023314a4672e442fed86207a9 \
32                  chasen-2.3.3.20030821.patch md5 44b14a50c8269f982fc0d59cb580ecc5 \
33                                              sha1 c608e5e613bc8a9758436681846047099610bf4a \
34                                              rmd160 a7e581132abc3ae89eb109b25b917d704ca006bf \
35                  chasen-2.3.3.20030822.patch md5 22466f08c3916b415d222508fdcc9bbe \
36                                              sha1 0728884dcdf6983a3e32774111e7996a43008722 \
37                                              rmd160 30c2ff84ad8b68271fcd7656d9972e7392a806f5 \
38                  ${ipa}.tar.gz md5 f36d315cae25b086a889b7090c674977 \
39                                sha1 52784d8abb3361eafec83ab543be63cf087f9eb2 \
40                                rmd160 5e37c750801df63439032be4954c4b63a44012cb
41
42default_variants  +ipadic
43
44depends_lib       port:darts lib:libiconv:libiconv
45
46post-extract    {
47                system "cd ${worksrcpath} && patch -p0 < ${distpath}/chasen-2.3.3.20030821.patch"
48                system "cd ${worksrcpath} && patch -p0 < ${distpath}/chasen-2.3.3.20030822.patch"
49}
50
51configure.args-append   --libexecdir=${prefix}/lib --with-darts=${prefix}/include --with-libiconv=${prefix}
52
53post-destroot   {
54                xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/doc
55
56                xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog INSTALL NEWS README ${destroot}${prefix}/share/doc/${name}
57                xinstall -m 644 ${worksrcpath}/doc/manual-j.pdf ${destroot}${prefix}/share/doc/${name}/doc
58}
59
60variant ipadic  {
61                # Japanese dictionary for ChaSen
62                distfiles-append ${ipa}.tar.gz:ipadic
63                extract.only-append ${ipa}.tar.gz
64                post-destroot {
65                              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}"
66
67                              xinstall -m 755 -d ${destroot}${prefix}/share/doc/ipadic/doc
68
69                              xinstall -m 644 -W ${workpath}/${ipa} AUTHORS COPYING ChangeLog INSTALL INSTALL-ja NEWS README ${destroot}${prefix}/share/doc/ipadic
70                              xinstall -m 644 ${workpath}/${ipa}/doc/ipadic-ja.pdf ${destroot}${prefix}/share/doc/ipadic/doc
71                }
72}
Note: See TracBrowser for help on using the repository browser.