[24649] branches/dp2mp-move/base
source_changes at macosforge.org
source_changes at macosforge.org
Sun Apr 29 10:21:07 PDT 2007
Revision: 24649
http://trac.macosforge.org/projects/macports/changeset/24649
Author: jmpp at macports.org
Date: 2007-04-29 10:21:07 -0700 (Sun, 29 Apr 2007)
Log Message:
-----------
Manually merging jberry's r24642: autoconfiscate path to the open(1) command.
Modified Paths:
--------------
branches/dp2mp-move/base/configure.ac
branches/dp2mp-move/base/src/macports1.0/macports_autoconf.tcl.in
branches/dp2mp-move/base/src/port/port.tcl
Modified: branches/dp2mp-move/base/configure.ac
===================================================================
--- branches/dp2mp-move/base/configure.ac 2007-04-29 17:15:03 UTC (rev 24648)
+++ branches/dp2mp-move/base/configure.ac 2007-04-29 17:21:07 UTC (rev 24649)
@@ -21,6 +21,7 @@
AC_PATH_PROG(XCODEBUILD, [xcodebuild], [])
AC_PATH_PROG(BZIP2, [bzip2], [])
AC_PATH_PROG(XAR, [xar], [])
+AC_PATH_PROG(OPEN, [open], [])
# Define some precious variables allowing user to override PATH for some programs
AC_ARG_VAR(MTREE, [path to mtree command])
@@ -30,6 +31,7 @@
AC_ARG_VAR(GNUTAR, [path to gnutar command])
AC_ARG_VAR(BZIP2, [path to bzip2 command])
AC_ARG_VAR(XAR, [path to xar command])
+AC_ARG_VAR(OPEN, [path to open command])
MP_TAR_NO_SAME_OWNER
Modified: branches/dp2mp-move/base/src/macports1.0/macports_autoconf.tcl.in
===================================================================
--- branches/dp2mp-move/base/src/macports1.0/macports_autoconf.tcl.in 2007-04-29 17:15:03 UTC (rev 24648)
+++ branches/dp2mp-move/base/src/macports1.0/macports_autoconf.tcl.in 2007-04-29 17:21:07 UTC (rev 24649)
@@ -33,4 +33,5 @@
namespace eval macports::autoconf {
variable mports_conf_path "@MPCONFIGDIR_EXPANDED@"
variable rsync_path "@RSYNC@"
+ variable open_path "@OPEN@"
}
Modified: branches/dp2mp-move/base/src/port/port.tcl
===================================================================
--- branches/dp2mp-move/base/src/port/port.tcl 2007-04-29 17:15:03 UTC (rev 24648)
+++ branches/dp2mp-move/base/src/port/port.tcl 2007-04-29 17:21:07 UTC (rev 24649)
@@ -1972,9 +1972,7 @@
gohome {
set homepage $portinfo(homepage)
if { $homepage != "" } {
- # TODO we should autoconfigure this, and perhaps leave an option for
- # a different command to visit the homepage
- system "/usr/bin/open $homepage"
+ system "${macports::autoconf::open_path} $homepage"
} else {
puts "(no homepage)"
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070429/84eb339d/attachment.html
More information about the macports-changes
mailing list