# $Id: Portfile 82553 2011-08-15 19:22:39Z jmr@macports.org $
#======================================================================
# Portfile for LaTeXML
# (draft)
#======================================================================
PortSystem 1.0
name LaTeXML
version 0.7.0
revision 1
categories tex
maintainers bruce.miller@nist.gov adfernandes
description LaTeXML converts TeX to XML
long_description \
   LaTeXML converts TeX to XML,\
   including XHTML with MathML.

homepage http://dlmf.nist.gov/LaTeXML/
platforms darwin
master_sites http://dlmf.nist.gov/LaTeXML/releases/
checksums md5 61fc79ed5391728c8b00465ab48c6697 \
         sha1 3cbc416ea71ff1c21b5ac1493a1b925297eb674d \
         rmd160 0230ffc3a1604b891c65276a4e9f745018b3e78a
# Use:
# md5sum LaTeXML-0.7.0.tar.gz
# openssl sha1 LaTeXML-0.7.0.tar.gz
# openssl rmd160 LaTeXML-0.7.0.tar.gz
#============================================================
# Dependencies
depends_lib port:p5.12-parse-recdescent \
  	    port:p5.12-xml-libxml \
  	    port:p5.12-xml-libxslt \
  	    port:p5.12-perlmagick \
	    bin:texhash:texlive
# 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)
#============================================================
# Configuration
# Override configure to do it the perl way.
configure.cmd ${prefix}/bin/perl5.12 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" }

