[121946] trunk/dports/sysutils/port-depgraph
jmr at macports.org
jmr at macports.org
Fri Jul 11 17:12:13 PDT 2014
Revision: 121946
https://trac.macports.org/changeset/121946
Author: jmr at macports.org
Date: 2014-07-11 17:12:13 -0700 (Fri, 11 Jul 2014)
Log Message:
-----------
port-depgraph: update to 0.2
Modified Paths:
--------------
trunk/dports/sysutils/port-depgraph/Portfile
Added Paths:
-----------
trunk/dports/sysutils/port-depgraph/files/
trunk/dports/sysutils/port-depgraph/files/prefix.diff
Modified: trunk/dports/sysutils/port-depgraph/Portfile
===================================================================
--- trunk/dports/sysutils/port-depgraph/Portfile 2014-07-12 00:04:10 UTC (rev 121945)
+++ trunk/dports/sysutils/port-depgraph/Portfile 2014-07-12 00:12:13 UTC (rev 121946)
@@ -4,7 +4,7 @@
PortSystem 1.0
name port-depgraph
-version 0.1.0
+version 0.2
categories sysutils macports
maintainers gwmail.gwu.edu:egall openmaintainer
platforms darwin
@@ -20,10 +20,15 @@
fetch.type svn
svn.url https://svn.macports.org/repository/macports/contrib/port-depgraph
-svn.revision 101883
+svn.revision 121945
worksrcdir ${name}
+patchfiles prefix.diff
+post-patch {
+ reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/port-depgraph
+}
+
use_configure no
build {}
@@ -32,5 +37,4 @@
xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/${name}
}
-depends_lib-append path:bin/dot:graphviz
-
+#depends_lib-append path:bin/dot:graphviz
Added: trunk/dports/sysutils/port-depgraph/files/prefix.diff
===================================================================
--- trunk/dports/sysutils/port-depgraph/files/prefix.diff (rev 0)
+++ trunk/dports/sysutils/port-depgraph/files/prefix.diff 2014-07-12 00:12:13 UTC (rev 121946)
@@ -0,0 +1,36 @@
+--- 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140711/5b221173/attachment.html>
More information about the macports-changes
mailing list