source: trunk/dports/perl/p5-mecab/Portfile

Last change on this file was 154393, checked in by mojca@…, 9 months ago

p5-*: remove subports for perl5.22 (#52081)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# -*- 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
2# $Id: Portfile 154393 2016-10-28 22:10:07Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           perl5 1.0
6
7perl5.branches      5.24
8perl5.setup         MeCab 0.996
9categories-append   textproc japanese
10maintainers         hum openmaintainer
11
12description         a Perl module for MeCab
13long_description    ${description}
14
15master_sites        googlecode:mecab
16checksums           rmd160  0fb41c1a8bbc15da0283f649a17fd227fde3756f \
17                    sha256  71fe5559c5bd2a13ea9929190a8f9f5ee4c63987108081bd7332ca1bbbb616c9
18
19homepage            http://mecab.sourceforge.net/
20platforms           darwin
21license             {GPL LGPL BSD}
22
23distname            mecab-perl-${perl5.moduleversion}
24dist_subdir         mecab
25
26if {${perl5.major} != ""} {
27    depends_lib-append  path:bin/mecab-config:mecab-utf8
28
29    platform darwin 8 {
30        build.env       MACOSX_DEPLOYMENT_TARGET=10.4
31    }
32
33    post-patch {
34        reinplace "s|\#!/usr/bin/perl|\#!${perl5.bin}|" \
35            ${worksrcpath}/test.pl
36    }
37
38    post-destroot {
39        set exdir ${destroot}${prefix}/share/doc/${subport}/examples
40        xinstall -m 755 -d ${exdir}
41        xinstall -m 755 ${worksrcpath}/test.pl ${exdir}
42    }
43
44    livecheck.type      none
45} else {
46    livecheck.type      regex
47    livecheck.url       http://code.google.com/p/mecab/downloads/list
48    livecheck.regex     {mecab-perl-([\d\.]+)\.tar}
49}
Note: See TracBrowser for help on using the repository browser.