# -*- 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 # $Id$ PortSystem 1.0 PortGroup wxWidgets 1.0 name poedit version 1.5.5 revision 2 categories devel aqua platforms darwin license MIT maintainers raimue \ openmaintainer description Poedit is a cross-platform gettext catalogs (.po files) editor. long_description Poedit is a cross-platform gettext catalogs (.po files) editor. It aims to \ provide more convenient approach to editing catalogs than editing the file by \ hand. This port installs Poedit.app. homepage http://www.poedit.net/ master_sites sourceforge:poedit checksums md5 da86cb73cee9d006a42f9574811d13ab \ sha1 822a72afab0c936c00291e21c8f23ff4cf8a3009 \ rmd160 cfc402f9eb0f000f068d98364870ac3860c20f57 \ sha256 3c94c9825c11a2d1ce10e083ad246e8625469f358da4a5a2f6210170b970f949 wxWidgets.use wxWidgets-3.0 depends_build bin:grep:grep \ port:pkgconfig \ port:boost depends_lib port:gettext \ port:${wxWidgets.port} depends_skip_archcheck grep pkgconfig boost # remove some additional features, especially sparkle because macports handles updates configure.args --disable-spellchecking \ --disable-transmem \ --without-sparkle \ --with-wxdir=${wxWidgets.wxdir} build.dir ${build.dir}/src build.target bundle build.env-append GETTEXT_PREFIX=${prefix} \ WX_ROOT=${wxWidgets.prefix} destroot { # the gettext binaries are copied into Poedit.app during build, # but we rather delete and symlink them to get updates to gettext automatically foreach extra { msgfmt msgmerge msgunfmt xgettext } { file delete ${worksrcpath}/src/Poedit.app/Contents/MacOS/${extra} ln -s ${prefix}/bin/${extra} ${worksrcpath}/src/Poedit.app/Contents/MacOS/${extra} } file delete ${worksrcpath}/src/Poedit.app/Contents/MacOS/gnu_gettext.COPYING file copy ${worksrcpath}/src/Poedit.app ${destroot}${applications_dir}/Poedit.app } variant transmem description {Enables translation memory for often used phrases} { depends_lib-append port:db44 configure.args-delete --disable-transmem configure.args-append --enable-transmem } variant spellcheck description {Enables spellchecking} { depends_lib-append port:gtkspell2 configure.args-delete --disable-spellchecking configure.args-append --enable-spellchecking } livecheck.type regex livecheck.url http://www.poedit.net/download.php livecheck.regex {Latest stable version is (\d+(?:.\d+)+)}