Files
2022-12-15 01:21:18 +11:00

68 lines
2.6 KiB
Tcl

# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup perl5 1.0
name intltool
epoch 1
version 0.51.0
revision 7
maintainers {devans @dbevans} openmaintainer
categories textproc gnome
license GPL-2+
installs_libs no
platforms any
supported_archs noarch
description A collection of i18n tools
long_description The intltool collection can be used to extract translatable \
strings from various source files (.xml.in, .glade, .desktop.in, \
.server.in, .oaf.in), collect the extracted strings together with \
messages from traditional source files (.c, .h) in po/PACKAGE.pot \
and merge back the translations from .po files into .xml, .desktop \
and .oaf files. This merge step will happen at build or \
installation time.
homepage https://launchpad.net/intltool
master_sites ${homepage}/trunk/${version}/+download
checksums rmd160 f10a7a86bdc504db22c2e1eb4e09705c6a41fbaa \
sha256 67c74d94196b153b774ab9f89b2fa6c6ba79352407037c8c14d5aeb334e959cd \
size 162286
# intltool only uses perl internally and publishes no public modules
# so there is no need for multiple perl variants
perl5.major 5.34
depends_build port:gnome-common
depends_lib-append port:expat \
port:p${perl5.major}-getopt-long \
port:p${perl5.major}-pathtools \
port:p${perl5.major}-scalar-list-utils \
port:p${perl5.major}-xml-parser
patchfiles patch-remove-intltool-perl-hack.diff
# in perl 5.22 literal left braces in regex patterns must be escaped to avoid deprecation warnings
# introduced in perl 5.21.3
# now a hard error in perl 5.26.0
# https://metacpan.org/pod/release/PCM/perl-5.21.3/pod/perl5211delta.pod#A-literal-should-now-be-escaped-in-a-pattern
patchfiles-append patch-silence-perl-5.22-deprecation-warnings.diff
# apply upstream bugfix to fix possible load_cache race condition when using make -jNUMBER as ports does
# https://bugs.launchpad.net/intltool/+bug/1687644
patchfiles-append patch-fix-race.diff
configure.perl ${perl5.bin}
test.run yes
test.target check
livecheck.type regex
livecheck.url ${homepage}/+download
livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}