Changeset 135005 for trunk/dports/x11


Ignore:
Timestamp:
Apr 13, 2015, 3:29:57 AM (5 years ago)
Author:
ionic@…
Message:

xinit: port to notes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/x11/xinit/Portfile

    r132770 r135005  
    5858
    5959platform darwin {
     60    if {${os.major} > 9} {
     61        notes-append {
     62                        To choose MacPorts' X11 as the default server, you must install xorg-server,\
     63        }
     64
     65        # OS X 10.6.3 was the first version whose native X11 allowed the modern socket naming
     66        # for better X11 server coexistence, so we require it for installing the LaunchAgent
     67        if {[vercmp ${os.version} 10.3.0] < 0} {
     68            notes-append {
     69                            load the LaunchAgent, logout, and log back in.  To load the LaunchAgent,
     70                            please execute the following:
     71
     72                            launchctl load -w /Library/LaunchAgents/org.macports.startx.plist
     73
     74                            This will be remembered across port updates on Snow Leopard and later.
     75
     76                            Note that doing so on your OS version may make the Apple-provided version
     77                            fail to launch.\
     78            }
     79        } else {
     80            notes-append {
     81                            logout, and log back in.\
     82            }
     83        }
     84    }
     85
    6086    post-activate {
    6187        system "launchctl load /Library/LaunchDaemons/org.macports.privileged_startx.plist"
    62 
    63         if {${os.major} > 9} {
    64             ui_msg "###############################################################################"
    65             ui_msg "# To choose MacPorts' X11 as the default server, you must install xorg-server,"
    66 
    67             # OS X 10.6.3 was the first version whose native X11 allowed the modern socket naming
    68             # for better X11 server coexistence, so we require it for installing the LaunchAgent
    69             if {[vercmp ${os.version} 10.3.0] < 0} {
    70                 ui_msg "# load the LaunchAgent, logout, and log back in.  To load the LaunchAgent,"
    71                 ui_msg "# please execute the following:"
    72                 ui_msg "# "
    73                 ui_msg "# launchctl load -w /Library/LaunchAgents/org.macports.startx.plist"
    74                 ui_msg "# "
    75                 ui_msg "# This will be remembered across port updates on Snow Leopard and later."
    76                 ui_msg "# "
    77                 ui_msg "# Note that doing so on your OS version may make the Apple-provided version"
    78                 ui_msg "# fail to launch."
    79             } else {
    80                 ui_msg "# logout, and log back in."
    81             }
    82 
    83             ui_msg "###############################################################################"
    84         }
    8588    }
    8689
Note: See TracChangeset for help on using the changeset viewer.