Ticket #17956: system_x11.appdefault.patch

File system_x11.appdefault.patch, 16.8 KB (added by mtalexander (Mike Alexander), 15 years ago)

New version of patch to add system_x11 variant to ports that create app-default files. Previous copy had extra stuff in it.

  • dports/x11/bitmap/Portfile

     
    3131livecheck.regex     ${name}-(\[\\d.\]+)${extract.suffix}
    3232livecheck.url       ${master_sites}
    3333
     34
     35variant system_x11 description {Install a stub package to use the system X11 libraries rather than MacPorts} {
     36        if { [file exists ${x11prefix}/bin/bitmap] && ! [string equal ${prefix} ${x11prefix}] } {
     37                fetch           { }
     38                checksum        { }
     39                build           { }
     40                destroot        {
     41                        xinstall -d ${destroot}${prefix}/share/doc/${name}
     42                        system "echo ${long_description} > ${destroot}${prefix}/share/doc/${name}/README.txt"
     43                }
     44                use_configure no
     45        }
     46}
  • dports/x11/editres/Portfile

     
    3535livecheck.regex     ${name}-(\[\\d.\]+)${extract.suffix}
    3636livecheck.url       ${master_sites}
    3737
     38
     39variant system_x11 description {Install a stub package to use the system X11 libraries rather than MacPorts} {
     40        if { [file exists ${x11prefix}/bin/editres] && ! [string equal ${prefix} ${x11prefix}] } {
     41                fetch           { }
     42                checksum        { }
     43                build           { }
     44                destroot        {
     45                        xinstall -d ${destroot}${prefix}/share/doc/${name}
     46                        system "echo ${description} > ${destroot}${prefix}/share/doc/${name}/README.txt"
     47                }
     48                use_configure no
     49        }
     50}
  • dports/x11/oclock/Portfile

     
    2929livecheck.regex     ${name}-(\[\\d.\]+)${extract.suffix}
    3030livecheck.url       ${master_sites}
    3131
     32
     33variant system_x11 description {Install a stub package to use the system X11 libraries rather than MacPorts} {
     34        if { [file exists ${x11prefix}/bin/oclock] && ! [string equal ${prefix} ${x11prefix}] } {
     35                fetch           { }
     36                checksum        { }
     37                build           { }
     38                destroot        {
     39                        xinstall -d ${destroot}${prefix}/share/doc/${name}
     40                        system "echo ${long_description} > ${destroot}${prefix}/share/doc/${name}/README.txt"
     41                }
     42                use_configure no
     43        }
     44}
  • dports/x11/viewres/Portfile

     
    3434livecheck.regex     ${name}-(\[\\d.\]+)${extract.suffix}
    3535livecheck.url       ${master_sites}
    3636
     37
     38variant system_x11 description {Install a stub package to use the system X11 libraries rather than MacPorts} {
     39        if { [file exists ${x11prefix}/bin/viewres] && ! [string equal ${prefix} ${x11prefix}] } {
     40                fetch           { }
     41                checksum        { }
     42                build           { }
     43                destroot        {
     44                        xinstall -d ${destroot}${prefix}/share/doc/${name}
     45                        system "echo '${long_description}' > ${destroot}${prefix}/share/doc/${name}/README.txt"
     46                }
     47                use_configure no
     48        }
     49}
  • dports/x11/xcalc/Portfile

     
    3030livecheck.regex     ${name}-(\[\\d.\]+)${extract.suffix}
    3131livecheck.url       ${master_sites}
    3232
     33
     34variant system_x11 description {Install a stub package to use the system X11 libraries rather than MacPorts} {
     35        if { [file exists ${x11prefix}/bin/xcalc] && ! [string equal ${prefix} ${x11prefix}] } {
     36                fetch           { }
     37                checksum        { }
     38                build           { }
     39                destroot        {
     40                        xinstall -d ${destroot}${prefix}/share/doc/${name}
     41                        system "echo ${long_description} > ${destroot}${prefix}/share/doc/${name}/README.txt"
     42                }
     43                use_configure no
     44        }
     45}
  • dports/x11/xclipboard/Portfile

     
    3030livecheck.regex     ${name}-(\[\\d.\]+)${extract.suffix}
    3131livecheck.url       ${master_sites}
    3232
     33
     34variant system_x11 description {Install a stub package to use the system X11 libraries rather than MacPorts} {
     35        if { [file exists ${x11prefix}/bin/xclipboard] && ! [string equal ${prefix} ${x11prefix}] } {
     36                fetch           { }
     37                checksum        { }
     38                build           { }
     39                destroot        {
     40                        xinstall -d ${destroot}${prefix}/share/doc/${name}
     41                        system "echo ${long_description} > ${destroot}${prefix}/share/doc/${name}/README.txt"
     42                }
     43                use_configure no
     44        }
     45}
  • dports/x11/xclock/Portfile

     
    3131livecheck.regex     ${name}-(\[\\d.\]+)${extract.suffix}
    3232livecheck.url       ${master_sites}
    3333
     34
     35variant system_x11 description {Install a stub package to use the system X11 libraries rather than MacPorts} {
     36        if { [file exists ${x11prefix}/bin/xclock] && ! [string equal ${prefix} ${x11prefix}] } {
     37                fetch           { }
     38                checksum        { }
     39                build           { }
     40                destroot        {
     41                        xinstall -d ${destroot}${prefix}/share/doc/${name}
     42                        system "echo ${long_description} > ${destroot}${prefix}/share/doc/${name}/README.txt"
     43                }
     44                use_configure no
     45        }
     46}
  • dports/x11/xconsole/Portfile

     
    3030livecheck.regex     ${name}-(\[\\d.\]+)${extract.suffix}
    3131livecheck.url       ${master_sites}
    3232
     33
     34variant system_x11 description {Install a stub package to use the system X11 libraries rather than MacPorts} {
     35        if { [file exists ${x11prefix}/bin/xconsole] && ! [string equal ${prefix} ${x11prefix}] } {
     36                fetch           { }
     37                checksum        { }
     38                build           { }
     39                destroot        {
     40                        xinstall -d ${destroot}${prefix}/share/doc/${name}
     41                        system "echo ${long_description} > ${destroot}${prefix}/share/doc/${name}/README.txt"
     42                }
     43                use_configure no
     44        }
     45}
  • dports/x11/xditview/Portfile

     
    2828livecheck.regex     ${name}-(\[\\d.\]+)${extract.suffix}
    2929livecheck.url       ${master_sites}
    3030
     31
     32variant system_x11 description {Install a stub package to use the system X11 libraries rather than MacPorts} {
     33        if { [file exists ${x11prefix}/bin/xditview] && ! [string equal ${prefix} ${x11prefix}] } {
     34                fetch           { }
     35                checksum        { }
     36                build           { }
     37                destroot        {
     38                        xinstall -d ${destroot}${prefix}/share/doc/${name}
     39                        system "echo ${long_description} > ${destroot}${prefix}/share/doc/${name}/README.txt"
     40                }
     41                use_configure no
     42        }
     43}
  • dports/x11/xdm/Portfile

     
    2929livecheck.regex     ${name}-(\[\\d.\]+)${extract.suffix}
    3030livecheck.url       ${master_sites}
    3131
     32
     33variant system_x11 description {Install a stub package to use the system X11 libraries rather than MacPorts} {
     34        if { [file exists ${x11prefix}/bin/xdm] && ! [string equal ${prefix} ${x11prefix}] } {
     35                fetch           { }
     36                checksum        { }
     37                build           { }
     38                destroot        {
     39                        xinstall -d ${destroot}${prefix}/share/doc/${name}
     40                        system "echo ${long_description} > ${destroot}${prefix}/share/doc/${name}/README.txt"
     41                }
     42                use_configure no
     43        }
     44}
  • dports/x11/xedit/Portfile

     
    2828livecheck.regex     ${name}-(\[\\d.\]+)${extract.suffix}
    2929livecheck.url       ${master_sites}
    3030
     31
     32variant system_x11 description {Install a stub package to use the system X11 libraries rather than MacPorts} {
     33        if { [file exists ${x11prefix}/bin/xedit] && ! [string equal ${prefix} ${x11prefix}] } {
     34                fetch           { }
     35                checksum        { }
     36                build           { }
     37                destroot        {
     38                        xinstall -d ${destroot}${prefix}/share/doc/${name}
     39                        system "echo ${long_description} > ${destroot}${prefix}/share/doc/${name}/README.txt"
     40                }
     41                use_configure no
     42        }
     43}
  • dports/x11/xfd/Portfile

     
    2828livecheck.regex     ${name}-(\[\\d.\]+)${extract.suffix}
    2929livecheck.url       ${master_sites}
    3030
     31
     32variant system_x11 description {Install a stub package to use the system X11 libraries rather than MacPorts} {
     33        if { [file exists ${x11prefix}/bin/xfd] && ! [string equal ${prefix} ${x11prefix}] } {
     34                fetch           { }
     35                checksum        { }
     36                build           { }
     37                destroot        {
     38                        xinstall -d ${destroot}${prefix}/share/doc/${name}
     39                        system "echo ${long_description} > ${destroot}${prefix}/share/doc/${name}/README.txt"
     40                }
     41                use_configure no
     42        }
     43}
  • dports/x11/xfontsel/Portfile

     
    3131livecheck.regex     ${name}-(\[\\d.\]+)${extract.suffix}
    3232livecheck.url       ${master_sites}
    3333
     34
     35variant system_x11 description {Install a stub package to use the system X11 libraries rather than MacPorts} {
     36        if { [file exists ${x11prefix}/bin/xfontsel] && ! [string equal ${prefix} ${x11prefix}] } {
     37                fetch           { }
     38                checksum        { }
     39                build           { }
     40                destroot        {
     41                        xinstall -d ${destroot}${prefix}/share/doc/${name}
     42                        system "echo '${long_description}' > ${destroot}${prefix}/share/doc/${name}/README.txt"
     43                }
     44                use_configure no
     45        }
     46}
  • dports/x11/xgc/Portfile

     
    2828livecheck.regex     ${name}-(\[\\d.\]+)${extract.suffix}
    2929livecheck.url       ${master_sites}
    3030
     31
     32variant system_x11 description {Install a stub package to use the system X11 libraries rather than MacPorts} {
     33        if { [file exists ${x11prefix}/bin/xgc] && ! [string equal ${prefix} ${x11prefix}] } {
     34                fetch           { }
     35                checksum        { }
     36                build           { }
     37                destroot        {
     38                        xinstall -d ${destroot}${prefix}/share/doc/${name}
     39                        system "echo ${long_description} > ${destroot}${prefix}/share/doc/${name}/README.txt"
     40                }
     41                use_configure no
     42        }
     43}
  • dports/x11/xload/Portfile

     
    2828livecheck.regex     ${name}-(\[\\d.\]+)${extract.suffix}
    2929livecheck.url       ${master_sites}
    3030
     31
     32variant system_x11 description {Install a stub package to use the system X11 libraries rather than MacPorts} {
     33        if { [file exists ${x11prefix}/bin/xload] && ! [string equal ${prefix} ${x11prefix}] } {
     34                fetch           { }
     35                checksum        { }
     36                build           { }
     37                destroot        {
     38                        xinstall -d ${destroot}${prefix}/share/doc/${name}
     39                        system "echo ${long_description} > ${destroot}${prefix}/share/doc/${name}/README.txt"
     40                }
     41                use_configure no
     42        }
     43}
  • dports/x11/xlogo/Portfile

     
    2828livecheck.regex     ${name}-(\[\\d.\]+)${extract.suffix}
    2929livecheck.url       ${master_sites}
    3030
     31
     32variant system_x11 description {Install a stub package to use the system X11 libraries rather than MacPorts} {
     33        if { [file exists ${x11prefix}/bin/xlogo] && ! [string equal ${prefix} ${x11prefix}] } {
     34                fetch           { }
     35                checksum        { }
     36                build           { }
     37                destroot        {
     38                        xinstall -d ${destroot}${prefix}/share/doc/${name}
     39                        system "echo ${long_description} > ${destroot}${prefix}/share/doc/${name}/README.txt"
     40                }
     41                use_configure no
     42        }
     43}
  • dports/x11/xmag/Portfile

     
    2828livecheck.regex     ${name}-(\[\\d.\]+)${extract.suffix}
    2929livecheck.url       ${master_sites}
    3030
     31
     32variant system_x11 description {Install a stub package to use the system X11 libraries rather than MacPorts} {
     33        if { [file exists ${x11prefix}/bin/xmag] && ! [string equal ${prefix} ${x11prefix}] } {
     34                fetch           { }
     35                checksum        { }
     36                build           { }
     37                destroot        {
     38                        xinstall -d ${destroot}${prefix}/share/doc/${name}
     39                        system "echo ${long_description} > ${destroot}${prefix}/share/doc/${name}/README.txt"
     40                }
     41                use_configure no
     42        }
     43}
  • dports/x11/xman/Portfile

     
    2828livecheck.regex     ${name}-(\[\\d.\]+)${extract.suffix}
    2929livecheck.url       ${master_sites}
    3030
     31
     32variant system_x11 description {Install a stub package to use the system X11 libraries rather than MacPorts} {
     33        if { [file exists ${x11prefix}/bin/xman] && ! [string equal ${prefix} ${x11prefix}] } {
     34                fetch           { }
     35                checksum        { }
     36                build           { }
     37                destroot        {
     38                        xinstall -d ${destroot}${prefix}/share/doc/${name}
     39                        system "echo ${long_description} > ${destroot}${prefix}/share/doc/${name}/README.txt"
     40                }
     41                use_configure no
     42        }
     43}
  • dports/x11/xmessage/Portfile

     
    2828livecheck.regex     ${name}-(\[\\d.\]+)${extract.suffix}
    2929livecheck.url       ${master_sites}
    3030
     31
     32variant system_x11 description {Install a stub package to use the system X11 libraries rather than MacPorts} {
     33        if { [file exists ${x11prefix}/bin/xmessage] && ! [string equal ${prefix} ${x11prefix}] } {
     34                fetch           { }
     35                checksum        { }
     36                build           { }
     37                destroot        {
     38                        xinstall -d ${destroot}${prefix}/share/doc/${name}
     39                        system "echo '${long_description}' > ${destroot}${prefix}/share/doc/${name}/README.txt"
     40                }
     41                use_configure no
     42        }
     43}
  • dports/x11/xmh/Portfile

     
    2828livecheck.regex     ${name}-(\[\\d.\]+)${extract.suffix}
    2929livecheck.url       ${master_sites}
    3030
     31
     32variant system_x11 description {Install a stub package to use the system X11 libraries rather than MacPorts} {
     33        if { [file exists ${x11prefix}/bin/xmh] && ! [string equal ${prefix} ${x11prefix}] } {
     34                fetch           { }
     35                checksum        { }
     36                build           { }
     37                destroot        {
     38                        xinstall -d ${destroot}${prefix}/share/doc/${name}
     39                        system "echo ${long_description} > ${destroot}${prefix}/share/doc/${name}/README.txt"
     40                }
     41                use_configure no
     42        }
     43}
  • dports/x11/xmore/Portfile

     
    2828livecheck.regex     ${name}-(\[\\d.\]+)${extract.suffix}
    2929livecheck.url       ${master_sites}
    3030
     31
     32variant system_x11 description {Install a stub package to use the system X11 libraries rather than MacPorts} {
     33        if { [file exists ${x11prefix}/bin/xmore] && ! [string equal ${prefix} ${x11prefix}] } {
     34                fetch           { }
     35                checksum        { }
     36                build           { }
     37                destroot        {
     38                        xinstall -d ${destroot}${prefix}/share/doc/${name}
     39                        system "echo ${long_description} > ${destroot}${prefix}/share/doc/${name}/README.txt"
     40                }
     41                use_configure no
     42        }
     43}
  • dports/x11/xsm/Portfile

     
    2828livecheck.regex     ${name}-(\[\\d.\]+)${extract.suffix}
    2929livecheck.url       ${master_sites}
    3030
     31
     32variant system_x11 description {Install a stub package to use the system X11 libraries rather than MacPorts} {
     33        if { [file exists ${x11prefix}/bin/xsm] && ! [string equal ${prefix} ${x11prefix}] } {
     34                fetch           { }
     35                checksum        { }
     36                build           { }
     37                destroot        {
     38                        xinstall -d ${destroot}${prefix}/share/doc/${name}
     39                        system "echo ${long_description} > ${destroot}${prefix}/share/doc/${name}/README.txt"
     40                }
     41                use_configure no
     42        }
     43}