[24182] trunk/dports/net/scapy/Portfile
source_changes at macosforge.org
source_changes at macosforge.org
Wed Apr 18 13:40:16 PDT 2007
Revision: 24182
http://trac.macosforge.org/projects/macports/changeset/24182
Author: pmq at macports.org
Date: 2007-04-18 13:40:16 -0700 (Wed, 18 Apr 2007)
Log Message:
-----------
Makes scapy use Preview.app out of the box to display PDF or PS files.
Modified Paths:
--------------
trunk/dports/net/scapy/Portfile
Modified: trunk/dports/net/scapy/Portfile
===================================================================
--- trunk/dports/net/scapy/Portfile 2007-04-18 20:39:00 UTC (rev 24181)
+++ trunk/dports/net/scapy/Portfile 2007-04-18 20:40:16 UTC (rev 24182)
@@ -50,6 +50,10 @@
reinplace "s|/usr/share/wireshark/wireshark|${prefix}/share/wireshark|" \
${worksrcpath}/${name}.py
# there's no queso port, not altering the default queso.conf path
+ # use Preview.app to view PDF and PS files
+ set call_preview "open -a Preview"
+ reinplace "s|\"acroread\"|\"${call_preview}\"|" ${worksrcpath}/${name}.py
+ reinplace "s|\"gv\"|\"${call_preview}\"|" ${worksrcpath}/${name}.py
}
destroot {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070418/0cfac8d9/attachment.html
More information about the macports-changes
mailing list