[27784] trunk/dports/textproc/libiconv/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Tue Aug 14 00:54:53 PDT 2007


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

Log Message:
-----------
libiconv: only attempt to delete charset.alias if it exists. This apparently fixes the build on Linux. Also auto-select the disable_utf8mac variant on Linux. See #12445.

Modified Paths:
--------------
    trunk/dports/textproc/libiconv/Portfile

Modified: trunk/dports/textproc/libiconv/Portfile
===================================================================
--- trunk/dports/textproc/libiconv/Portfile	2007-08-14 07:53:03 UTC (rev 27783)
+++ trunk/dports/textproc/libiconv/Portfile	2007-08-14 07:54:52 UTC (rev 27784)
@@ -7,7 +7,7 @@
 revision            4
 categories          textproc
 maintainers         ryandesign
-platforms           darwin freebsd
+platforms           darwin freebsd linux
 homepage            http://www.gnu.org/software/libiconv/
 distfiles           ${distname}${extract.suffix}:gnu
 extract.only        ${distname}${extract.suffix}
@@ -89,8 +89,14 @@
 	pre-fetch { variant_set disable_utf8mac }
 }
 
+platform linux {
+	pre-fetch { variant_set disable_utf8mac }
+}
+
 post-destroot {
-	delete ${destroot}${prefix}/lib/charset.alias
+	if {[file exists ${destroot}${prefix}/lib/charset.alias]} {
+		delete ${destroot}${prefix}/lib/charset.alias
+	}
 }
 
 # Do not support UTF-8-MAC encoding

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


More information about the macports-changes mailing list