# $Id: Portfile 36283 2008-04-25 13:35:43Z jmr@macports.org $ PortSystem 1.0 name latex2man version 1.19 revision 1 categories textproc platforms darwin maintainers nomaintainer description Translator program intended to translate a LaTeX document into man long_description \ Latex2man is a tool to translate UNIX manual pages written \ with LaTeX into a format understood by the UNIX man(1)-command. \ Alternatively HTML, TexInfo, or LaTeX code can be produced too. homepage http://www.informatik-vollmer.de/software/latex2man.php master_sites http://www.informatik-vollmer.de/software checksums md5 59fb43f8d9e4f56609a81e77b57b312c depends_run bin:tex:texlive worksrcdir ${name} configure { reinplace "s|\$(HOME)/man|${destroot}${prefix}/share/man|g" ${worksrcpath}/Makefile reinplace "s|\$(HOME)/info|${destroot}${prefix}/share/info|g" ${worksrcpath}/Makefile reinplace "s|\$(HOME)/public_html|${destroot}${prefix}/share/doc/latex2man|g" ${worksrcpath}/Makefile reinplace "s|\$(HOME)/tex/inputs|${destroot}${prefix}/share/texmf-local/tex/latex/latex2man|g" ${worksrcpath}/Makefile reinplace "s|\$(HOME)|${destroot}${prefix}|g" ${worksrcpath}/Makefile reinplace "s|/usr/local/bin/perl|${prefix}/bin/perl|" ${worksrcpath}/latex2man } pre-destroot { file mkdir ${destroot}${prefix}/share/doc/latex2man file mkdir ${destroot}${prefix}/share/texmf-local/tex/latex/latex2man } post-activate { system "\ texhash && \ fmtutil-sys --enablefmt latex2man && \ fmtutil-sys --missing && \ fmtutil-sys --all" # These are required so that local additions are picked # up if teTeX is updated: system "mktexlsr" system "updmap-sys" }