Ticket #30156: Portfile.rtf2latex2e.diff

File Portfile.rtf2latex2e.diff, 2.1 KB (added by macports@…, 13 years ago)
  • Portfile

    old new  
    33PortSystem 1.0
    44
    55name       rtf2latex2e
    6 version    1.0fc1
     6version    2-0-1
    77categories      tex
    88platforms       darwin
    99maintainers     jmpp openmaintainer
    1010
    11 platform powerpc        { configure.args --host=powerpc }
    12 platform i386           { configure.args --host=i386 }
    13 
    14 description     Filter to convert rtf files into LaTeX2e code.
     11description         Filter to convert rtf files into LaTeX2e code.
    1512long_description        rtf2LaTeX2e is an RTF filter that generates LaTeX2e specific code, based \
    1613                        on Paul DuBois' RTF reader. Its main features are detecting different text \
    1714                        styles, reading embedded figures, tables, equations, footnotes, support for \
    1815                        the inputenc package, translating hyperlinks.
    1916
    20 homepage        http://sourceforge.net/projects/rtf2latex2e/
    21 master_sites    sourceforge
    22 distfiles       ${name}Unix1${extract.suffix}
    23 distname        ${name}Unix-${version}
    24 checksums       md5 805a064142f50efa5a49f4f1bf6d6b79
     17homepage        http://rtf2latex2e.sourceforge.net/
     18master_sites    sourceforge:rtf2latex2e/rtf2latex2e-unix/2-0
     19distfiles           ${name}-${version}.zip
     20use_zip         yes
     21use_configure   no
     22destroot.destdir    PREFIX=${destroot}${prefix}
     23distname            ${name}-${version}
     24checksums           md5 b98f0199ab6e1d0f51b6f52262f22361 \
     25                sha1 cdef15299affe8bd5c52414ce9b8dde0e114ca3c \
     26                rmd160 63e7bd2aa3b4d3ef2e0da3d211bed6daf4c2a8bd
    2527
    2628depends_build   bin:convert:ImageMagick
    27 
    28 worksrcdir      ${distname}/Unix
    29 
    30 patchfiles      patch-Makefile.in.diff \
    31                 patch-rtf2LaTeX2e.h.diff \
    32                 patch-rtf2LaTeX2e-driver.c.diff \
    33                 patch-LaTeX2e-writer.c.diff
    34 
    35 post-configure  { reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Makefile }
    36 
    37 post-destroot   {
    38                 file delete ${destroot}${prefix}/bin/${name}
    39                 file delete -force ${destroot}${prefix}/share/${name}/Unix
    40                 file delete -force ${destroot}${prefix}/share/${name}/src
    41                 system "cd ${destroot}${prefix} && ln -s ../share/${name}/${name}.bin bin/${name}"
    42                 xinstall -d -m 755 ${destroot}${prefix}/share/doc
    43                 system "cd ${destroot}${prefix} && ln -s ../${name}/doc share/doc/${name}"
    44 }