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 151865 2016-08-23 12:35:00Z mojca@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup perl5 1.0 |
---|
6 | |
---|
7 | name po4a |
---|
8 | version 0.47 |
---|
9 | revision 1 |
---|
10 | set download_id 4142 |
---|
11 | perl5.branches 5.24 |
---|
12 | |
---|
13 | categories textproc |
---|
14 | platforms darwin |
---|
15 | license GPL-2 |
---|
16 | maintainers nomaintainer |
---|
17 | |
---|
18 | description framework to translate documentation and other materials |
---|
19 | long_description The po4a (PO for anything) project goal is to ease \ |
---|
20 | translations (and more interestingly, the \ |
---|
21 | maintenance of translations) using gettext tools \ |
---|
22 | on areas where they were not expected like documentation. |
---|
23 | |
---|
24 | homepage http://po4a.alioth.debian.org/ |
---|
25 | master_sites https://alioth.debian.org/frs/download.php/file/${download_id}/ |
---|
26 | |
---|
27 | checksums rmd160 cb5bb7dd96cbedcd9641285da63dd826ba6d38d3 \ |
---|
28 | sha256 5010e1b7df1115cbd475f46587fc05fefc97301f9bba0c2f15106005ca017507 |
---|
29 | |
---|
30 | # TODO: check and fix dependencies |
---|
31 | depends_lib-append port:perl${perl5.major} \ |
---|
32 | port:p${perl5.major}-text-wrapi18n \ |
---|
33 | port:p${perl5.major}-term-readkey \ |
---|
34 | port:p${perl5.major}-sgmlspm \ |
---|
35 | port:p${perl5.major}-unicode-linebreak \ |
---|
36 | port:p${perl5.major}-locale-gettext |
---|
37 | depends_build-append \ |
---|
38 | port:docbook-xml-4.1.2 \ |
---|
39 | port:docbook-xml-4.2 \ |
---|
40 | port:docbook-xml-4.3 \ |
---|
41 | port:docbook-xml-4.4 \ |
---|
42 | port:docbook-xml-4.5 \ |
---|
43 | port:docbook-xml-5.0 \ |
---|
44 | port:docbook-xsl \ |
---|
45 | port:docbook-xsl-ns \ |
---|
46 | port:libxslt \ |
---|
47 | port:p${perl5.major}-data-dumper \ |
---|
48 | port:p${perl5.major}-extutils-manifest \ |
---|
49 | port:p${perl5.major}-file-path \ |
---|
50 | port:p${perl5.major}-getopt-long \ |
---|
51 | port:p${perl5.major}-html-parser \ |
---|
52 | port:p${perl5.major}-parent \ |
---|
53 | port:p${perl5.major}-pathtools \ |
---|
54 | port:p${perl5.major}-text-parsewords |
---|
55 | |
---|
56 | configure.args "installdirs=core --config cc=\"${configure.cc}\" --config ld=\"${configure.cc}\"" |
---|
57 | perl5.use_module_build |
---|
58 | configure.cmd ${perl5.bin} |
---|
59 | build.cmd ${perl5.bin} |
---|
60 | destroot.cmd ${perl5.bin} |
---|
61 | |
---|
62 | post-destroot { |
---|
63 | # Make sure all binaries use the correct MacPorts-provided perl version |
---|
64 | reinplace -W ${destroot}${prefix}/bin "s|#! /usr/bin/env perl|#!${perl5.bin}|" \ |
---|
65 | msguntypot \ |
---|
66 | po4a \ |
---|
67 | po4a-gettextize \ |
---|
68 | po4a-normalize \ |
---|
69 | po4a-translate \ |
---|
70 | po4a-updatepo \ |
---|
71 | } |
---|
72 | |
---|
73 | livecheck.type regex |
---|
74 | livecheck.url https://alioth.debian.org/frs/?group_id=30267 |
---|
75 | livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix} |
---|