Revision
102429
Author
ryandesign@macports.org
Date
2013-02-02 10:37:12 -0800 (Sat, 02 Feb 2013)

Log Message

pear-1.0.tcl: fix "sed: RE error: illegal byte sequence" on Mountain Lion (e.g. in pear-MDB whose package.xml is ISO-8859-1)

Modified Paths

Diff

Modified: trunk/dports/_resources/port1.0/group/pear-1.0.tcl (102428 => 102429)


--- trunk/dports/_resources/port1.0/group/pear-1.0.tcl	2013-02-02 18:34:49 UTC (rev 102428)
+++ trunk/dports/_resources/port1.0/group/pear-1.0.tcl	2013-02-02 18:37:12 UTC (rev 102429)
@@ -1,7 +1,7 @@
 # -*- 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
 # $Id$
 #
-# Copyright (c) 2011-2012 The MacPorts Project
+# Copyright (c) 2011-2013 The MacPorts Project
 # All rights reserved.
 #
 # Redistribution and use in source and binary forms, with or without
@@ -167,9 +167,9 @@
     }
 
     post-patch {
-        # Some ports use a "." baseinstalldir which can cause issues creating pears packagingroot directory.
-        reinplace "s|baseinstalldir=\"\.\"|baseinstalldir=\"/\"|g" \
-          ${pear.sourceroot}/${pear.packagexml}
+        # Some ports use a "." baseinstalldir which can cause issues creating pear's packagingroot directory.
+        reinplace -locale C "s|baseinstalldir=\"\.\"|baseinstalldir=\"/\"|g" \
+            ${pear.sourceroot}/${pear.packagexml}
     }
 
     configure.env           ${pear.env}