New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 81389


Ignore:
Timestamp:
07/29/11 18:52:49 (4 years ago)
Author:
ryandesign@…
Message:

pango, pango-devel: add variant to build modules statically instead of dynamically (#12735); use unversioned docdir

Location:
trunk/dports/x11
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/x11/pango-devel/Portfile

    r79553 r81389  
    99set my_name             pango 
    1010version                 1.29.3 
     11revision                1 
    1112set branch              [join [lrange [split ${version} .] 0 1] .] 
    1213categories              x11 
     
    107108    --without-x 
    108109 
     110variant builtin_modules description {Build the modules into Pango statically (most users do not need this variant)} { 
     111    configure.args-append   --with-included-modules 
     112} 
     113 
    109114variant no_x11 conflicts x11 description {Legacy compatibility variant} {} 
    110115variant x11 { 
     
    126131        xinstall -d ${destroot}${prefix}/etc/pango 
    127132    } 
    128     xinstall -m 0644 ${worksrcpath}/modules/pangorc \ 
    129         ${destroot}${prefix}/etc/pango 
    130     reinplace "s|\\.\\./modules/|${prefix}/etc/pango/|g" \ 
    131         ${destroot}${prefix}/etc/pango/pangorc 
    132      
    133     system "env LANG=C DYLD_LIBRARY_PATH=${destroot}${prefix}/lib \ 
    134         ${destroot}${prefix}/bin/pango-querymodules ${destroot}${prefix}/lib/pango/1.6.0/modules/*.so \ 
    135         >${destroot}${prefix}/etc/pango/pango.modules" 
    136     reinplace s|${destroot}||g ${destroot}${prefix}/etc/pango/pango.modules 
    137      
    138     set docdir ${prefix}/share/doc/${name}-${version} 
     133    if {![variant_isset builtin_modules]} { 
     134        xinstall -m 0644 ${worksrcpath}/modules/pangorc \ 
     135            ${destroot}${prefix}/etc/pango 
     136        reinplace "s|\\.\\./modules/|${prefix}/etc/pango/|g" \ 
     137            ${destroot}${prefix}/etc/pango/pangorc 
     138 
     139        system "env LANG=C DYLD_LIBRARY_PATH=${destroot}${prefix}/lib \ 
     140            ${destroot}${prefix}/bin/pango-querymodules ${destroot}${prefix}/lib/pango/1.6.0/modules/*.so \ 
     141            >${destroot}${prefix}/etc/pango/pango.modules" 
     142        reinplace s|${destroot}||g ${destroot}${prefix}/etc/pango/pango.modules 
     143    } 
     144 
     145    set docdir ${prefix}/share/doc/${name} 
    139146    xinstall -d ${destroot}${docdir} 
    140147    xinstall -m 0644 -W ${worksrcpath} AUTHORS ChangeLog COPYING MAINTAINERS NEWS README THANKS \ 
  • trunk/dports/x11/pango/Portfile

    r78854 r81389  
    99epoch                   1 
    1010version                 1.28.4 
     11revision                1 
    1112set branch              [join [lrange [split ${version} .] 0 1] .] 
    1213categories              x11 
     
    105106    --without-x 
    106107 
     108variant builtin_modules description {Build the modules into Pango statically (most users do not need this variant)} { 
     109    configure.args-append   --with-included-modules 
     110} 
     111 
    107112variant no_x11 conflicts x11 description {Legacy compatibility variant} {} 
    108113variant x11 { 
     
    124129        xinstall -d ${destroot}${prefix}/etc/pango 
    125130    } 
    126     xinstall -m 0644 ${worksrcpath}/modules/pangorc \ 
    127         ${destroot}${prefix}/etc/pango 
    128     reinplace "s|\\.\\./modules/|${prefix}/etc/pango/|g" \ 
    129         ${destroot}${prefix}/etc/pango/pangorc 
    130      
    131     system "env LANG=C DYLD_LIBRARY_PATH=${destroot}${prefix}/lib \ 
    132         ${destroot}${prefix}/bin/pango-querymodules ${destroot}${prefix}/lib/pango/1.6.0/modules/*.so \ 
    133         >${destroot}${prefix}/etc/pango/pango.modules" 
    134     reinplace s|${destroot}||g ${destroot}${prefix}/etc/pango/pango.modules 
    135      
    136     set docdir ${prefix}/share/doc/${name}-${version} 
     131    if {![variant_isset builtin_modules]} { 
     132        xinstall -m 0644 ${worksrcpath}/modules/pangorc \ 
     133            ${destroot}${prefix}/etc/pango 
     134        reinplace "s|\\.\\./modules/|${prefix}/etc/pango/|g" \ 
     135            ${destroot}${prefix}/etc/pango/pangorc 
     136 
     137        system "env LANG=C DYLD_LIBRARY_PATH=${destroot}${prefix}/lib \ 
     138            ${destroot}${prefix}/bin/pango-querymodules ${destroot}${prefix}/lib/pango/1.6.0/modules/*.so \ 
     139            >${destroot}${prefix}/etc/pango/pango.modules" 
     140        reinplace s|${destroot}||g ${destroot}${prefix}/etc/pango/pango.modules 
     141    } 
     142 
     143    set docdir ${prefix}/share/doc/${name} 
    137144    xinstall -d ${destroot}${docdir} 
    138145    xinstall -m 0644 -W ${worksrcpath} AUTHORS ChangeLog COPYING MAINTAINERS NEWS README THANKS \ 
Note: See TracChangeset for help on using the changeset viewer.