[47182] trunk/dports/fuse/macfuse/Portfile
ryandesign at macports.org
ryandesign at macports.org
Sun Feb 22 19:26:23 PST 2009
Revision: 47182
http://trac.macports.org/changeset/47182
Author: ryandesign at macports.org
Date: 2009-02-22 19:26:23 -0800 (Sun, 22 Feb 2009)
Log Message:
-----------
macfuse: no longer assume MacPorts is in /opt/local; closes #15778 (maintainer timeout)
Modified Paths:
--------------
trunk/dports/fuse/macfuse/Portfile
Modified: trunk/dports/fuse/macfuse/Portfile
===================================================================
--- trunk/dports/fuse/macfuse/Portfile 2009-02-23 03:25:22 UTC (rev 47181)
+++ trunk/dports/fuse/macfuse/Portfile 2009-02-23 03:26:23 UTC (rev 47182)
@@ -58,22 +58,22 @@
}
destroot {
+ delete ${destpath}${prefix}
set dmgname [exec cat ${workpath}/dmgname]
# we know the build script generates a .tar.bz2 right next to the dmg
set tarname [string tolower [string replace $dmgname end-2 end "tar.bz2"]]
system "tar -xjf $tarname -C ${destpath}"
- delete ${destpath}/opt
- file rename ${destpath}/usr ${destpath}/opt
+ file rename ${destpath}/usr/local ${destpath}${prefix}
foreach f [list "pkgconfig/fuse.pc" "libfuse.la" "libulockmgr.la"] {
- set path "${destpath}/opt/local/lib/${f}"
- reinplace s,/usr/local,/opt/local, $path
+ set path "${destpath}${prefix}/lib/${f}"
+ reinplace s,/usr/local,${prefix}, $path
}
set libfuse_version 0
foreach lib [list "libulockmgr.0" "libfuse.${libfuse_version}"] {
- set libpath "/opt/local/lib/${lib}.dylib"
+ set libpath "${prefix}/lib/${lib}.dylib"
system "install_name_tool -id ${libpath} ${destpath}${libpath}"
}
- system "install_name_tool -change /usr/local/lib/libfuse.${libfuse_version}.dylib /opt/local/lib/libfuse.${libfuse_version}.dylib ${destpath}/Library/Frameworks/MacFUSE.framework/Versions/A/MacFUSE"
+ system "install_name_tool -change /usr/local/lib/libfuse.${libfuse_version}.dylib ${prefix}/lib/libfuse.${libfuse_version}.dylib ${destpath}/Library/Frameworks/MacFUSE.framework/Versions/A/MacFUSE"
# delete the whole directory the build script creates
# when updating this Portfile DOUBLE CHECK THIS LINE
delete [file dirname $dmgname]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090222/75c4c228/attachment-0001.html>
More information about the macports-changes
mailing list