# $Id$ #====================================================================== # Portfile for LaTeXML # (draft) #====================================================================== PortSystem 1.0 name LaTeXML version 0.8.0 categories tex maintainers bruce.miller@nist.gov description LaTeXML converts TeX to XML/HTML/MathML long_description \ LaTeXML converts TeX to XML,\ including HTML, XHTML, ePub with MathML. homepage http://dlmf.nist.gov/LaTeXML/ platforms darwin master_sites http://dlmf.nist.gov/LaTeXML/releases/ checksums rmd160 cfafc6f4f5e276543333f907a1ec0db3c25e424f \ sha256 a495019f2828f0734e9e41f0398f6c8d60ba6a934d4ccad4fea7d588ab060388 # Use: # openssl rmd160 LaTeXML-0.8.0.tar.gz # openssl sha256 LaTeXML-0.8.0.tar.gz #============================================================ # Dependencies depends_lib p5.16-archive-zip \ p5.16-file-which \ p5.16-getopt-long \ p5.16-image-size \ p5.16-io-string \ p5.16-json-xs \ p5.16-libwww-perl \ p5.16-parse-recdescent \ p5.16-time-hires \ p5.16-uri \ p5.16-xml-libxml \ p5.16-xml-libxslt \ p5.16-perlmagick # That last seems to be the way to depend on TeX # being installed, without necessarily requiring # _specifically_ texlive (eg MacTeX or something # else perhaps can work, if /usr/texbin is in # binpath in macports.conf) # # Also requires: DB_File, Pod::Parser and Test::More # but those should be in Perl's core modules. #============================================================ # LaTeXML works MUCH better if there is a TeX installed. # It (hopefully) will find any installation if it can find kpsewhich # However, we don't require a dependency here since # users may prefer MacTeX, or MacPort's texlive or .... # bin:texhash:texlive notes "${name} works best with some version of TeX installed. \ Please install MacTeX or 'sudo port install texlive' (or other system) first." #============================================================ # Configuration # Override configure to do it the perl way. configure.cmd ${prefix}/bin/perl5.16 Makefile.PL # Note that installation does # make install DESTDIR=${destroot} # which stages the installation to $destroot, NOT the eventual final installation. #============================================================ # Do this to enable testing # test.run yes #============================================================ # Get TeX to notice our style files, since this isn't done # when staging the installation to ${destpath} post-activate { system "mktexlsr" }