Ticket #41227: Portfile.4

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

po4a Portfile v2

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.12
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           md5    423bdf5c39f30e63a808b84c5d9d1899 \
23                    rmd160 b2cf67d430363181d1cce93c50e9f25edc7db98b \
24                    sha1   c38c32d96c2a25f3a6cc5d8afb1fbdde362b7c19
25
26depends_lib         port:perl${perlversion} \
27                    port:p${perlversion}-text-wrapi18n \
28                    port:p${perlversion}-term-readkey \
29                    port:p${perlversion}-sgmlspm \
30                    port:p${perlversion}-unicode-linebreak \
31                    port:p${perlversion}-locale-gettext
32
33configure.cmd perl${perlversion}
34configure.args "installdirs=core --config cc=\"${configure.cc}\" --config ld=\"${configure.cc}\""
35perl5.use_module_build
36
37post-destroot { 
38    # Make sure all binaries use the correct MacPorts-provided perl version
39    reinplace -W ${destroot}${prefix}/bin "s|#! /usr/bin/env perl|#! ${prefix}/bin/perl${perlversion}|" \
40        msguntypot \
41        po4a \
42        po4a-gettextize \
43        po4a-normalize \
44        po4a-translate \
45        po4a-updatepo \
46}