[27782] trunk/dports/devel/gettext/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Tue Aug 14 00:52:10 PDT 2007


Revision: 27782
          http://trac.macosforge.org/projects/macports/changeset/27782
Author:   ryandesign at macports.org
Date:     2007-08-14 00:52:09 -0700 (Tue, 14 Aug 2007)

Log Message:
-----------
gettext: only attempt to delete charset.alias and locale.alias if they exist. This apparently fixes the build on Linux. See #12445.

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

Modified: trunk/dports/devel/gettext/Portfile
===================================================================
--- trunk/dports/devel/gettext/Portfile	2007-08-14 07:49:53 UTC (rev 27781)
+++ trunk/dports/devel/gettext/Portfile	2007-08-14 07:52:09 UTC (rev 27782)
@@ -53,8 +53,12 @@
 }
 
 post-destroot {
-	delete ${destroot}${prefix}/lib/charset.alias \
-		${destroot}${prefix}/share/locale/locale.alias
+	if {[file exists ${destroot}${prefix}/lib/charset.alias]} {
+		delete ${destroot}${prefix}/lib/charset.alias
+	}
+	if {[file exists ${destroot}${prefix}/share/locale/locale.alias]} {
+		delete ${destroot}${prefix}/share/locale/locale.alias
+	}
 }
 
 livecheck.check     regex

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070814/25dcce63/attachment.html


More information about the macports-changes mailing list