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.12 |
---|
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 md5 423bdf5c39f30e63a808b84c5d9d1899 \ |
---|
23 | rmd160 b2cf67d430363181d1cce93c50e9f25edc7db98b \ |
---|
24 | sha1 c38c32d96c2a25f3a6cc5d8afb1fbdde362b7c19 |
---|
25 | |
---|
26 | depends_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 | |
---|
33 | configure.cmd perl${perlversion} |
---|
34 | configure.args "installdirs=core --config cc=\"${configure.cc}\" --config ld=\"${configure.cc}\"" |
---|
35 | perl5.use_module_build |
---|
36 | |
---|
37 | post-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 | } |
---|