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

source_changes at macosforge.org source_changes at macosforge.org
Tue Jun 26 03:57:49 PDT 2007


Revision: 26491
          http://trac.macosforge.org/projects/macports/changeset/26491
Author:   raimue at macports.org
Date:     2007-06-26 03:57:49 -0700 (Tue, 26 Jun 2007)

Log Message:
-----------
Applying a patch from ryandesign, thanks!
  * Adds run dependency on gettext
  * Create symlinks to gettext binaries from MacPorts
Additional:
  * Some notes what to do on next release with the upstream changes in the build system

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

Modified: trunk/dports/devel/poedit/Portfile
===================================================================
--- trunk/dports/devel/poedit/Portfile	2007-06-26 07:40:59 UTC (rev 26490)
+++ trunk/dports/devel/poedit/Portfile	2007-06-26 10:57:49 UTC (rev 26491)
@@ -4,7 +4,7 @@
 
 name            poedit
 version         1.3.6
-revision        1
+revision        2
 categories      devel aqua
 platforms       darwin 
 maintainers     raimue at macports.org \
@@ -25,11 +25,14 @@
 
 depends_build   port:pkgconfig
 depends_lib     port:wxWidgets
+depends_run     port:gettext
 
 configure.args  --mandir=${prefix}/share/man/ --disable-transmem --disable-spellchecking
 
 build.dir       ${build.dir}/src
 build.target    bundle
+# for 1.3.7 and above, this should be used
+#build.env-append       GETTEXT_BINARIES=${prefix}/bin
 
 variant transmem description {Enables translation memory for often used phrases} {
     depends_lib-append      port:db4
@@ -44,6 +47,14 @@
 }
 
 destroot {
+    # with 1.3.7, changes might be needed here {
+    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
+    # }
+
     set appPath "/Applications/MacPorts/"
     xinstall -d -m 755 ${destroot}${appPath}
     file copy ${worksrcpath}/src/poedit.app ${destroot}${appPath}poedit.app

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070626/856fd48e/attachment.html


More information about the macports-changes mailing list