[135005] trunk/dports/x11/xinit/Portfile
ionic at macports.org
ionic at macports.org
Sun Apr 12 20:29:57 PDT 2015
Revision: 135005
https://trac.macports.org/changeset/135005
Author: ionic at macports.org
Date: 2015-04-12 20:29:57 -0700 (Sun, 12 Apr 2015)
Log Message:
-----------
xinit: port to notes.
Modified Paths:
--------------
trunk/dports/x11/xinit/Portfile
Modified: trunk/dports/x11/xinit/Portfile
===================================================================
--- trunk/dports/x11/xinit/Portfile 2015-04-13 03:10:39 UTC (rev 135004)
+++ trunk/dports/x11/xinit/Portfile 2015-04-13 03:29:57 UTC (rev 135005)
@@ -57,33 +57,36 @@
}
platform darwin {
- post-activate {
- system "launchctl load /Library/LaunchDaemons/org.macports.privileged_startx.plist"
+ if {${os.major} > 9} {
+ notes-append {
+ To choose MacPorts' X11 as the default server, you must install xorg-server,\
+ }
- if {${os.major} > 9} {
- ui_msg "###############################################################################"
- ui_msg "# To choose MacPorts' X11 as the default server, you must install xorg-server,"
+ # OS X 10.6.3 was the first version whose native X11 allowed the modern socket naming
+ # for better X11 server coexistence, so we require it for installing the LaunchAgent
+ if {[vercmp ${os.version} 10.3.0] < 0} {
+ notes-append {
+ load the LaunchAgent, logout, and log back in. To load the LaunchAgent,
+ please execute the following:
- # OS X 10.6.3 was the first version whose native X11 allowed the modern socket naming
- # for better X11 server coexistence, so we require it for installing the LaunchAgent
- if {[vercmp ${os.version} 10.3.0] < 0} {
- ui_msg "# load the LaunchAgent, logout, and log back in. To load the LaunchAgent,"
- ui_msg "# please execute the following:"
- ui_msg "# "
- ui_msg "# launchctl load -w /Library/LaunchAgents/org.macports.startx.plist"
- ui_msg "# "
- ui_msg "# This will be remembered across port updates on Snow Leopard and later."
- ui_msg "# "
- ui_msg "# Note that doing so on your OS version may make the Apple-provided version"
- ui_msg "# fail to launch."
- } else {
- ui_msg "# logout, and log back in."
+ launchctl load -w /Library/LaunchAgents/org.macports.startx.plist
+
+ This will be remembered across port updates on Snow Leopard and later.
+
+ Note that doing so on your OS version may make the Apple-provided version
+ fail to launch.\
}
-
- ui_msg "###############################################################################"
+ } else {
+ notes-append {
+ logout, and log back in.\
+ }
}
}
+ post-activate {
+ system "launchctl load /Library/LaunchDaemons/org.macports.privileged_startx.plist"
+ }
+
pre-deactivate {
system "launchctl unload /Library/LaunchDaemons/org.macports.privileged_startx.plist"
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150412/2e86f34a/attachment.html>
More information about the macports-changes
mailing list