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 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup perl5 1.0 |
---|
6 | name po4a |
---|
7 | version 0.45 |
---|
8 | set download_id 3942 |
---|
9 | set perlversion 5.16 |
---|
10 | |
---|
11 | categories perl |
---|
12 | maintainers nomaintainer |
---|
13 | platforms darwin |
---|
14 | description framework to translate documentation and other materials |
---|
15 | long_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 | |
---|
20 | homepage http://po4a.alioth.debian.org/ |
---|
21 | master_sites http://alioth.debian.org/frs/download.php/file/${download_id}/ |
---|
22 | checksums rmd160 b2cf67d430363181d1cce93c50e9f25edc7db98b \ |
---|
23 | sha256 f5f47db85b48893d87d921152c96082233975bd0e0a9ee14f58c07d7dff81678 |
---|
24 | |
---|
25 | depends_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 | |
---|
32 | configure.args "installdirs=core --config cc=\"${configure.cc}\" --config ld=\"${configure.cc}\"" |
---|
33 | perl5.use_module_build |
---|
34 | configure.cmd perl${perlversion} |
---|
35 | build.cmd perl${perlversion} |
---|
36 | destroot.cmd perl${perlversion} |
---|
37 | |
---|
38 | post-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 | } |
---|