# $Id: Portfile,v 1.1 2005/01/21 02:06:27 jmpp Exp $ PortSystem 1.0 name rtf2latex2e version 1.0fc1 categories textproc platforms darwin maintainers jmpp@opendarwin.org platform powerpc { configure.args --host=powerpc } description Filter to convert rtf files into LaTeX2e code. long_description rtf2LaTeX2e is an RTF filter that generates LaTeX2e specific code, based \ on Paul DuBois' RTF reader. Its main features are detecting different text \ styles, reading embedded figures, tables, equations, footnotes, support for \ the inputenc package, translating hyperlinks. homepage http://sourceforge.net/projects/rtf2latex2e/ master_sites sourceforge distfiles ${name}Unix1${extract.suffix} distname ${name}Unix-${version} checksums md5 805a064142f50efa5a49f4f1bf6d6b79 depends_build bin:convert:ImageMagick worksrcdir ${distname}/Unix patchfiles patch-Makefile.in.diff \ patch-rtf2LaTeX2e.h.diff \ patch-rtf2LaTeX2e-driver.c.diff \ patch-LaTeX2e-writer.c.diff post-configure { reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Makefile } post-destroot { file delete ${destroot}${prefix}/bin/${name} file delete -force ${destroot}${prefix}/share/${name}/Unix file delete -force ${destroot}${prefix}/share/${name}/src cd ${destroot}${prefix} system "ln -s ../share/${name}/${name}.bin bin/${name}" xinstall -d -m 755 ${destroot}${prefix}/share/doc system "ln -s ../${name}/doc share/doc/${name}" }