[102159] trunk/dports/devel/poedit/Portfile

raimue at macports.org raimue at macports.org
Mon Jan 28 11:57:11 PST 2013


Revision: 102159
          https://trac.macports.org/changeset/102159
Author:   raimue at macports.org
Date:     2013-01-28 11:57:10 -0800 (Mon, 28 Jan 2013)
Log Message:
-----------
devel/poedit:
Update to version 1.5.4,
Switch to github port group

Modified Paths:
--------------
    trunk/dports/devel/poedit/Portfile

Modified: trunk/dports/devel/poedit/Portfile
===================================================================
--- trunk/dports/devel/poedit/Portfile	2013-01-28 18:59:11 UTC (rev 102158)
+++ trunk/dports/devel/poedit/Portfile	2013-01-28 19:57:10 UTC (rev 102159)
@@ -1,43 +1,74 @@
 # $Id$
 
-PortSystem 1.0
+PortSystem      1.0
+PortGroup       github 1.0
 
-name            poedit
-version         1.4.6.1
+github.setup    vslavik poedit 1.5.4 v
 categories      devel aqua
 platforms       darwin
 license         MIT
 maintainers     raimue \
                 openmaintainer
 
-description     poEdit is a cross-platform gettext catalogs (.po files) editor.
+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 \
+    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.
+    hand. This port installs Poedit.app.
 
 homepage        http://www.poedit.net/
-master_sites    sourceforge
 
-checksums       sha1    8c4d61aef7695aa48607e9367df4c5899ad3bf83 \
-                rmd160  7b4fbb3f4632b53a46382f9f4b875d375c5c54b8
+checksums       rmd160  61df8c9da497be70f9dc6971993afcbe20c44669 \
+                sha256  e127ee58131a4a6cfe762559aea380e7afc98e889d301e1a338b72716576a463
 
 depends_build   bin:grep:grep \
-                port:pkgconfig
+                port:pkgconfig \
+                port:bakefile \
+                port:asciidoc \
+                port:boost \
+                port:libicns
 depends_lib     port:wxWidgets \
                 port:gettext
 
-# wxWidgets is not universal and 32-bit only
-universal_variant   no
-supported_archs     i386 ppc
+use_autoconf    yes
+autoconf.cmd    ./bootstrap
 
+variant wxwidgets_devel description {Uses wxWidgets-devel (allows 64-bit build)} {
+    depends_lib-delete        port:wxWidgets
+    depends_lib-append        port:wxWidgets-devel
+}
+
+# python crashes while running bakefile_gen without this patch
+# it might be worth investigating why
+post-patch {
+    reinplace "s|(cd win32 ; bakefile_gen) && ||" ${worksrcpath}/bootstrap
+}
+
+if {![variant_isset wxwidgets_devel]} {
+    # wxWidgets 2.8 is not universal and is 32-bit only
+    universal_variant       no
+    supported_archs         i386 ppc
+}
+
 # remove some additional features, especially sparkle because macports handles updates
 configure.args  --disable-transmem --disable-spellchecking --without-sparkle
 
 build.dir           ${build.dir}/src
 build.target        bundle
-build.env-append    GETTEXT_BINARIES=${prefix}/bin
+build.env-append    GETTEXT_PREFIX=${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
@@ -50,19 +81,6 @@
     configure.args-append   --enable-spellchecking
 }
 
-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
+platform darwin 12 {
+    depends_lib-replace    port:wxWidgets port:wxWidgets30
 }
-
-livecheck.type regex
-livecheck.url http://sourceforge.net/projects/poedit/files/poedit/
-livecheck.regex ${name}-(\\d+(?:\\.\\d+)+)\\.tar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130128/80572ef4/attachment.html>


More information about the macports-changes mailing list