Ticket #41227: Portfile.11

File Portfile.11, 1.9 KB (added by odyx@…, 10 years ago)

po4a Portfile v3

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$
3
4PortSystem          1.0
5PortGroup           perl5 1.0
6name                po4a
7version             0.45
8set download_id     3942
9set perlversion     5.16
10
11categories          perl
12maintainers         nomaintainer
13platforms           darwin
14description         framework to translate documentation and other materials
15long_description    The po4a (PO for anything) project goal is to ease \
16                    translations (and more interestingly, the \
17                    maintenance of translations) using gettext tools \
18                    on areas where they were not expected like documentation.
19
20homepage            http://po4a.alioth.debian.org/
21master_sites        http://alioth.debian.org/frs/download.php/file/${download_id}/
22checksums           rmd160 b2cf67d430363181d1cce93c50e9f25edc7db98b \
23                    sha256 f5f47db85b48893d87d921152c96082233975bd0e0a9ee14f58c07d7dff81678
24
25depends_lib-append  port:perl${perlversion} \
26                    port:p${perlversion}-text-wrapi18n \
27                    port:p${perlversion}-term-readkey \
28                    port:p${perlversion}-sgmlspm \
29                    port:p${perlversion}-unicode-linebreak \
30                    port:p${perlversion}-locale-gettext
31
32configure.args "installdirs=core --config cc=\"${configure.cc}\" --config ld=\"${configure.cc}\""
33perl5.use_module_build
34configure.cmd  perl${perlversion}
35build.cmd      perl${perlversion}
36destroot.cmd   perl${perlversion}
37
38post-destroot { 
39    # Make sure all binaries use the correct MacPorts-provided perl version
40    reinplace -W ${destroot}${prefix}/bin "s|#! /usr/bin/env perl|#! ${prefix}/bin/perl${perlversion}|" \
41        msguntypot \
42        po4a \
43        po4a-gettextize \
44        po4a-normalize \
45        po4a-translate \
46        po4a-updatepo \
47}