source: trunk/dports/python/py-hyperestraier/Portfile

Last change on this file was 136054, checked in by mf2k@…, 2 years ago

hyperestraier p5-mecab py-hyperestraier py-mecab qdbm rb-hyperestraier rb-mecab rb19-mecab: Ports abandoned by gmail.com:rsky0711. (#47295)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Portfile 136054 2015-05-11 14:00:12Z ryandesign@macports.org $
2
3PortSystem      1.0
4PortGroup       python 1.0
5
6name            py-hyperestraier
7version         0.0.15
8
9platforms       darwin
10categories-append   textproc
11maintainers     nomaintainer
12description     a Python module for Hyper Estraier
13long_description ${description}
14
15homepage        http://hyperestraier.sourceforge.net/
16master_sites    http://hyperestraier.sourceforge.net/binding/:main \
17                macports:takanori:sub
18dist_subdir     hyperestraier
19
20python.versions 27
21
22if {${name} ne ${subport}} {
23    distfiles   hyper_estraier_wrappers-${version}.tar.gz:main \
24            HyperEstraier.py:sub HyperEstraier_wrap.cxx:sub
25    extract.only        hyper_estraier_wrappers-${version}.tar.gz
26    distname        hyper_estraier_wrappers-${version}
27    checksums       hyper_estraier_wrappers-${version}.tar.gz md5 26f81dbc06954a6030f801b4d8b06fa9 \
28                                          sha1 e348fd6c337ca2e41a322f210902a0d4aeaad056 \
29                                          rmd160 d53a872587f370e39e193dfc3de1d1316db77695 \
30            HyperEstraier.py md5 7d577bf8a50a34ef50b3b6ebbecd3993 \
31                     sha1 05f63a3af75ba7d0aaaa6041dd96f8c9f7fafc01 \
32                     rmd160 a51d15e42b1f71b76861c8ee83d5b4ef5fce6099 \
33            HyperEstraier_wrap.cxx md5 44c0d0abdc6bc67ed5667f98f155e409 \
34                           sha1 5df821e6f9510bca05949c395e57049fb58e8fa8 \
35                           rmd160 2a666360ebc68de1faf4079db2aae172317d57fd
36
37    patchfiles      patch-setup.py patch-examples-search.py
38    patch.pre_args  -p0
39
40    depends_lib-append  port:hyperestraier
41    #depends_build      port:swig-python
42
43    post-extract {
44        file copy ${distpath}/HyperEstraier.py ${worksrcpath}
45        file copy ${distpath}/HyperEstraier_wrap.cxx ${worksrcpath}
46    }
47
48    #pre-build {
49    #    system "cd ${worksrcpath}; swig -python -c++ HyperEstraier.i"
50    #}
51
52    post-destroot {
53        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}/examples
54        xinstall -m 644 -W ${worksrcpath}/examples \
55            dbinfo.py gatherer.py iter.py oogatherer.py search.py \
56            ${destroot}${prefix}/share/doc/${subport}/examples
57
58        reinplace s|'/tmp/casket'|'casket'| \
59            ${destroot}${prefix}/share/doc/${subport}/examples/dbinfo.py
60        reinplace s|'/tmp/casket'|'casket'| \
61            ${destroot}${prefix}/share/doc/${subport}/examples/iter.py
62
63        file copy ${worksrcpath}/examples/subway \
64            ${destroot}${prefix}/share/doc/${subport}/examples
65
66        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}/test
67        xinstall -m 644 ${worksrcpath}/test/python.py \
68            ${destroot}${prefix}/share/doc/${subport}/test
69    }
70}
Note: See TracBrowser for help on using the repository browser.