New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #19096: Portfile.diff

File Portfile.diff, 0.8 KB (added by mcalhoun@…, 3 years ago)
  • Portfile

    old new  
    2222depends_run \ 
    2323        port:mkfontscale 
    2424 
     25variant system_x11 description {Install a stub package to use the system X11 libraries rather than MacPorts} { 
     26        if { [file exists ${x11prefix}/bin/mkfontdir] && ! [string equal ${prefix} ${x11prefix}] } { 
     27                depends_build 
     28                depends_lib 
     29                depends_run 
     30                fetch           { } 
     31                checksum        { } 
     32                extract         { } 
     33                patch           { } 
     34                build           { } 
     35                destroot        { 
     36                        xinstall -d ${destroot}${prefix}/share/doc/${name} 
     37                        system "echo ${long_description} > ${destroot}${prefix}/share/doc/${name}/README.txt" 
     38                } 
     39                use_configure no 
     40        } 
     41} 
     42 
    2543livecheck.check regex 
    2644livecheck.url   [lindex ${master_sites} 0]?C=M&O=D 
    2745livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)