Ticket #39129: patch-Portfile.diff

File patch-Portfile.diff, 2.8 KB (added by lpsinger (Leo Singer), 12 years ago)

proposed change to Portfile

  • Portfile

    old new  
    44
    55name                xinit
    66version             1.3.2
    7 revision            4
     7revision            5
    88categories          x11
    99platforms           darwin
    1010maintainers         jeremyhu openmaintainer
     
    3434depends_lib         port:xorg-libX11
    3535
    3636patchfiles \
    37         disable-launchagent.patch \
    3837        0001-launchd-privileged_startx-Improved-error-resolution.patch \
    3938        0002-launchd-Don-t-provide-the-LaunchAgent-on-Tiger.patch \
    4039        0003-launchd-Provide-more-verbose-error-reporting-for-lau.patch \
     
    4443        0007-laucnhd-Silence-some-syslog-spam.patch \
    4544        0008-Annotate-Fatal-and-Fatalx-as-_X_NORETURN.patch
    4645
     46if {[vercmp ${os.version} 10.3.0] < 0} {
     47    patchfiles-append disable-launchagent.patch
     48}
     49
    4750patch.pre_args -p1
    4851
    4952use_autoreconf  yes
     
    7174        if {${os.major} > 9} {
    7275            ui_msg "###############################################################################"
    7376            ui_msg "# To choose MacPorts' X11 as the default server, you must install xorg-server,"
    74             ui_msg "# load the LaunchAgent, logout, and log back in.  To load the LaunchAgent,"
    75             ui_msg "# please execute the following:"
    7677
    77             if { ${os.major} < 10 } {
    78                 ui_msg "# sudo launchctl load -w /Library/LaunchAgents/org.macports.startx.plist"
     78            # OS X 10.6.3 was the first version whose native X11 allowed the modern socket naming
     79            # for better X11 server coexistence, so we require it for installing the LaunchAgent
     80            if {[vercmp ${os.version} 10.3.0] < 0} {
     81                ui_msg "# load the LaunchAgent, logout, and log back in.  To load the LaunchAgent,"
     82                ui_msg "# please execute the following:"
    7983                ui_msg "# "
    80                 ui_msg "# This will be required after every upgrade of the xinit port on Leopard"
    81             } else {
    8284                ui_msg "# launchctl load -w /Library/LaunchAgents/org.macports.startx.plist"
    8385                ui_msg "# "
    8486                ui_msg "# This will be remembered across port updates on Snow Leopard and later."
    85             }
    86 
    87             # OS X 10.6.3 was the first version whose native X11 allowed the modern socket naming
    88             # for better X11 server coexistence, so we require it for installing the LaunchAgent
    89             if {[vercmp ${os.version} 10.3.0] < 0} {
    9087                ui_msg "# "
    9188                ui_msg "# Note that doing so on your OS version may make the Apple-provided version"
    9289                ui_msg "# fail to launch."
     90            } else {
     91                ui_msg "# logout, and log back in."
    9392            }
    9493
    9594            ui_msg "###############################################################################"