New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #21056: p5-template-toolkit-from-2.19-to-2.22.diff

File p5-template-toolkit-from-2.19-to-2.22.diff, 1.9 KB (added by vitaly@…, 3 years ago)

Patch for TT2 2.22

  • Portfile

    old new  
    33PortSystem              1.0 
    44 
    55PortGroup               perl5 1.0 
    6 perl5.setup             Template-Toolkit 2.19 
     6perl5.setup             Template-Toolkit 2.22 
    77maintainers             nomaintainer 
    88platforms               darwin 
    99 
     
    2020 
    2121homepage                http://www.template-toolkit.org/ 
    2222 
    23 checksums               md5     5c886d392ca57a13ded91fa64834913c 
    24  
    25 depends_lib-append      port:p5-appconfig \ 
    26                         port:p5-file-homedir \ 
    27                         port:p5-mac-carbon 
    28  
    29 patchfiles              patch-Makefile.PL 
     23checksums               md5     d98277f6420e5da6b93d99a8db2b3934 \ 
     24                        sha1    5e553cdb97a594e0d81c5bd7c9b5664f963ffa4f \ 
     25                        rmd160  bcb15f3cf7de5f9ec6de31f9b427c22f30c1592e 
    3026 
    3127configure.post_args     TT_PREFIX=${prefix}/share/tt2 \ 
    3228                        TT_ACCEPT=y \ 
    3329                        TT_QUIET=y 
    3430 
    35 # During install (or destroot in DP's case), parts are expected to be 
    36 # installed already, earlier in the install; this step causes the install 
    37 # to use the destroot'd version, then we switch it back in post-destroot 
    38 post-configure { 
    39     reinplace "s|${prefix}|${destroot}${prefix}|g" \ 
    40         ${worksrcpath}/docs/ttree.cfg ${worksrcpath}/examples/ttree.cfg 
    41 } 
    42  
    43 destroot.target-append  tt2_install tt2_splash tt2_html_docs tt2_examples 
    44  
    4531post-destroot { 
    4632    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} 
    4733    xinstall -m 644 -W ${worksrcpath} INSTALL README \ 
    4834        ${destroot}${prefix}/share/doc/${name} 
    49     reinplace "s|${destroot}${prefix}|${prefix}|g" \ 
    50         ${destroot}${prefix}/share/tt2/docs/ttree.cfg \ 
    51         ${destroot}${prefix}/share/tt2/examples/ttree.cfg 
    5235} 
    5336 
    54 variant DBI { 
    55     depends_lib-append  port:p5-dbi 
    56 }