Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Changeset 39649 for trunk

Show
Ignore:
Timestamp:
08/27/08 14:46:39 (3 months ago)
Author:
ryandesign@…
Message:

dcraw: build the message catalogs in the build phase, not the destroot phase

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/dports/graphics/dcraw/Portfile

    r39646 r39649  
    3535post-extract { 
    3636    xinstall -W ${filespath} Makefile.in ${worksrcpath}/Makefile 
     37    xinstall -d ${worksrcpath}/build 
    3738    # Move "install" script; it conflicts with the destroot phase ("make install") 
    3839    move ${worksrcpath}/install ${worksrcpath}/install.sh 
     
    5051} 
    5152 
     53set my_locales          {eo ru fr it de pt es zh_TW zh_CN nl pl hu ca cs sv} 
     54 
     55post-build { 
     56    foreach locale ${my_locales} { 
     57        if {[file exist ${worksrcpath}/dcraw_${locale}.po]} { 
     58            system "msgfmt -o ${worksrcpath}/build/dcraw_${locale}.mo ${worksrcpath}/dcraw_${locale}.po" 
     59        } 
     60    } 
     61} 
     62 
    5263post-destroot { 
    5364    xinstall -m 644 -W ${worksrcpath} dcraw.1 ${destroot}${prefix}/share/man/man1 
    54     foreach lang {eo ru fr it de pt es zh_TW zh_CN nl pl hu ca cs sv} { 
    55         if {[file exist ${worksrcpath}/dcraw_${lang}.1]} { 
    56             xinstall -m 755 -d ${destroot}${prefix}/share/man/${lang}/man1 
    57             xinstall -m 644 -W ${worksrcpath} dcraw_${lang}.1 ${destroot}${prefix}/share/man/${lang}/man1/dcraw.1 
     65    foreach locale ${my_locales} { 
     66        if {[file exist ${worksrcpath}/dcraw_${locale}.1]} { 
     67            xinstall -m 755 -d ${destroot}${prefix}/share/man/${locale}/man1 
     68            xinstall -m 644 -W ${worksrcpath} dcraw_${locale}.1 ${destroot}${prefix}/share/man/${locale}/man1/dcraw.1 
    5869        } 
    59         if {[file exist ${worksrcpath}/dcraw_${lang}.po]} { 
    60             xinstall -m 755 -d ${destroot}${prefix}/share/locale/${lang}/LC_MESSAGES 
    61             system "msgfmt -o ${destroot}${prefix}/share/locale/${lang}/LC_MESSAGES/dcraw.mo ${worksrcpath}/dcraw_${lang}.po" 
     70        if {[file exist ${worksrcpath}/build/dcraw_${locale}.mo]} { 
     71            xinstall -m 755 -d ${destroot}${prefix}/share/locale/${locale}/LC_MESSAGES 
     72            xinstall -m 644 -W ${worksrcpath}/build dcraw_${locale}.mo ${destroot}${prefix}/share/locale/${locale}/LC_MESSAGES/dcraw.mo 
    6273        } 
    6374    }