source: trunk/dports/devel/poedit/Portfile

Last change on this file was 121085, checked in by mojca@…, 3 years ago

wxWidgets-3.0: revbump dependent ports (#44031)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
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 121085 2014-06-17 09:01:41Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           wxWidgets 1.0
6
7name                poedit
8version             1.5.7
9revision            3
10categories          devel aqua
11platforms           darwin
12license             MIT
13maintainers         raimue \
14                    openmaintainer
15
16description         Poedit is a cross-platform gettext catalogs (.po files) editor.
17long_description    Poedit is a cross-platform gettext catalogs (.po files) editor. It aims to \
18                    provide more convenient approach to editing catalogs than editing the file by \
19                    hand. This port installs Poedit.app.
20
21homepage            http://www.poedit.net/
22master_sites        sourceforge:poedit
23
24checksums           md5     f5b53ec66a606f088b0aa388595ea5f9 \
25                    sha1    e83c08ca33997829be946e1dcf1a35149856d184 \
26                    rmd160  46436e98caf2b41b61188fc1b79db62f2f218817 \
27                    sha256  24535cac22c8f7fb4f995710f6638ebc26825056076a04210ee66e19d65c0f78
28
29wxWidgets.use       wxWidgets-3.0
30
31depends_build       bin:grep:grep \
32                    port:pkgconfig \
33                    port:boost
34depends_lib         port:gettext \
35                    port:${wxWidgets.port}
36
37depends_skip_archcheck grep pkgconfig boost
38
39# remove some additional features, especially sparkle because macports handles updates
40configure.args      --disable-spellchecking \
41                    --disable-transmem \
42                    --without-sparkle \
43                    --with-wxdir=${wxWidgets.wxdir}
44
45build.dir           ${build.dir}/src
46build.target        bundle
47build.env-append    GETTEXT_PREFIX=${prefix} \
48                    WX_ROOT=${wxWidgets.prefix}
49
50destroot {
51    # the gettext binaries are copied into Poedit.app during build,
52    # but we rather delete and symlink them to get updates to gettext automatically
53    foreach extra { msgfmt msgmerge msgunfmt xgettext } {
54        file delete ${worksrcpath}/src/Poedit.app/Contents/MacOS/${extra}
55        ln -s ${prefix}/bin/${extra} ${worksrcpath}/src/Poedit.app/Contents/MacOS/${extra}
56    }
57    file delete ${worksrcpath}/src/Poedit.app/Contents/MacOS/gnu_gettext.COPYING
58
59    file copy ${worksrcpath}/src/Poedit.app ${destroot}${applications_dir}/Poedit.app
60}
61
62variant transmem description {Enables translation memory for often used phrases} {
63    depends_lib-append      port:db44
64    configure.args-delete   --disable-transmem
65    configure.args-append   --enable-transmem
66}
67
68variant spellcheck description {Enables spellchecking} {
69    depends_lib-append      port:gtkspell2
70    configure.args-delete   --disable-spellchecking
71    configure.args-append   --enable-spellchecking
72}
73
74livecheck.type      regex
75livecheck.url       http://www.poedit.net/download.php
76livecheck.regex     ${name}-(\\d+(\\.\\d+)+)\\.tar
Note: See TracBrowser for help on using the repository browser.