# -*- 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 # $Id: Portfile 138704 2015-07-16 22:40:24Z devans@macports.org $ PortSystem 1.0 name intltool epoch 1 version 0.51.0 revision 1 maintainers devans openmaintainer categories textproc gnome license GPL-2+ installs_libs no platforms darwin 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 # intltool only uses perl internally and publishes no public modules # so there is no need for multiple perl variants # now using perl 5.22 (#48365) set pbranch 5.22 depends_build port:gnome-common depends_lib-append port:expat \ port:p${pbranch}-getopt-long \ port:p${pbranch}-pathtools \ port:p${pbranch}-scalar-list-utils \ port:p${pbranch}-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 # 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 configure.perl ${prefix}/bin/perl${pbranch} test.run yes test.target check livecheck.type regex livecheck.url ${homepage}/+download livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}