Ticket #17956: system_x11.extra.patch

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

Add a few more system_x11 variants

  • dports/x11/fslsfonts/Portfile

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

     
    3131livecheck.regex     ${name}-(\[\\d.\]+)${extract.suffix}
    3232livecheck.url       ${master_sites}
    3333
     34variant system_x11 description {Install a stub package to use the system X11 libraries rather than MacPorts} {
     35        if { [file exists ${x11prefix}/bin/appres] && ! [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/listres/Portfile

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

     
    4040                        LUIT_LIBS="-L${x11prefix}/lib -lfontenc -lX11"
    4141        }
    4242}
     43
     44variant system_x11 description {Install a stub package to use the system X11 libraries rather than MacPorts} {
     45        if { [file exists ${x11prefix}/bin/luit] && ! [string equal ${prefix} ${x11prefix}] } {
     46                fetch           { }
     47                checksum        { }
     48                patch           { }
     49                build           { }
     50                destroot        {
     51                        xinstall -d ${destroot}${prefix}/share/doc/${name}
     52                        system "echo '${long_description}' > ${destroot}${prefix}/share/doc/${name}/README.txt"
     53                }
     54                use_configure no
     55        }
     56}
  • dports/x11/xeyes/Portfile

     
    3535                        XEYES_LIBS="-L${x11prefix}/lib -lXmu -lXt -lXext -lX11 -lSM -lICE"
    3636        }
    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/xeyes] && ! [string equal ${prefix} ${x11prefix}] } {
     41                fetch           { }
     42                checksum        { }
     43                build           { }
     44                destroot        {
     45                        xinstall -d ${destroot}${prefix}/share/doc/${name}
     46                        system "echo '${long_description}' > ${destroot}${prefix}/share/doc/${name}/README.txt"
     47                }
     48                use_configure no
     49        }
     50}