--- port-depgraph.orig 2014-07-12 10:04:10.000000000 +1000 +++ port-depgraph 2014-07-12 10:07:34.000000000 +1000 @@ -1,4 +1,4 @@ -#!/bin/sh +#!__PREFIX__/bin/port-tclsh # -*- 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 # \ if /usr/bin/which -s port-tclsh; then exec port-tclsh "$0" -i `which port-tclsh` "$@"; else exec /usr/bin/tclsh "$0" "$@"; fi @@ -19,7 +19,7 @@ puts "Usage: $::argv0 \[-dhrvV\] \[-p macports-prefix\] port-name \[variants...\]" puts " -h This help" puts " -p Use a different MacPorts prefix" - puts " (defaults to /opt/local)" + puts " (defaults to __PREFIX__)" puts " -v verbose output, includes dependency labels" puts " -V show version and MacPorts version being used" puts "" @@ -176,7 +176,7 @@ # Begin -set macportsPrefix /opt/local +set macportsPrefix __PREFIX__ set verbose 0 set showVersion 0 @@ -231,9 +231,6 @@ } exit 0 } -} else { - # older base version - source ${macportsPrefix}/share/macports/Tcl/macports1.0/macports_fastload.tcl } package require macports