Ticket #16627: rtf2latex2e.diff

File rtf2latex2e.diff, 1.2 KB (added by blb@…, 16 years ago)

diff to Portfile

  • Portfile

     
    99maintainers     jmpp openmaintainer
    1010
    1111platform powerpc        { configure.args --host=powerpc }
     12platform i386           { configure.args --host=i386 }
    1213
    1314description     Filter to convert rtf files into LaTeX2e code.
    1415long_description        rtf2LaTeX2e is an RTF filter that generates LaTeX2e specific code, based \
     
    3435post-configure  { reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Makefile }
    3536
    3637post-destroot   {
    37                 file delete ${destroot}${prefix}/bin/${name}
    38                 file delete -force ${destroot}${prefix}/share/${name}/Unix
    39                 file delete -force ${destroot}${prefix}/share/${name}/src
    40                 cd ${destroot}${prefix}
    41                 system "ln -s ../share/${name}/${name}.bin bin/${name}"
     38                delete ${destroot}${prefix}/bin/${name}
     39                delete ${destroot}${prefix}/share/${name}/Unix
     40                delete ${destroot}${prefix}/share/${name}/src
     41                system "cd ${destroot}${prefix} && ln -s ../share/${name}/${name}.bin bin/${name}"
    4242                xinstall -d -m 755 ${destroot}${prefix}/share/doc
    43                 system "ln -s ../${name}/doc share/doc/${name}"
     43                system "cd ${destroot}${prefix} && ln -s ../${name}/doc share/doc/${name}"
    4444}