1 | # $Id$ |
---|
2 | #====================================================================== |
---|
3 | # Portfile for LaTeXML |
---|
4 | # (draft) |
---|
5 | #====================================================================== |
---|
6 | PortSystem 1.0 |
---|
7 | name LaTeXML |
---|
8 | version 0.8.0 |
---|
9 | categories tex |
---|
10 | maintainers bruce.miller@nist.gov |
---|
11 | description LaTeXML converts TeX to XML/HTML/MathML |
---|
12 | long_description \ |
---|
13 | LaTeXML converts TeX to XML,\ |
---|
14 | including HTML, XHTML, ePub with MathML. |
---|
15 | |
---|
16 | homepage http://dlmf.nist.gov/LaTeXML/ |
---|
17 | platforms darwin |
---|
18 | master_sites http://dlmf.nist.gov/LaTeXML/releases/ |
---|
19 | checksums rmd160 cfafc6f4f5e276543333f907a1ec0db3c25e424f \ |
---|
20 | sha256 a495019f2828f0734e9e41f0398f6c8d60ba6a934d4ccad4fea7d588ab060388 |
---|
21 | # Use: |
---|
22 | # openssl rmd160 LaTeXML-0.8.0.tar.gz |
---|
23 | # openssl sha256 LaTeXML-0.8.0.tar.gz |
---|
24 | #============================================================ |
---|
25 | # Dependencies |
---|
26 | depends_lib p5.16-archive-zip \ |
---|
27 | p5.16-file-which \ |
---|
28 | p5.16-getopt-long \ |
---|
29 | p5.16-image-size \ |
---|
30 | p5.16-io-string \ |
---|
31 | p5.16-json-xs \ |
---|
32 | p5.16-libwww-perl \ |
---|
33 | p5.16-parse-recdescent \ |
---|
34 | p5.16-time-hires \ |
---|
35 | p5.16-uri \ |
---|
36 | p5.16-xml-libxml \ |
---|
37 | p5.16-xml-libxslt \ |
---|
38 | p5.16-perlmagick |
---|
39 | |
---|
40 | # That last seems to be the way to depend on TeX |
---|
41 | # being installed, without necessarily requiring |
---|
42 | # _specifically_ texlive (eg MacTeX or something |
---|
43 | # else perhaps can work, if /usr/texbin is in |
---|
44 | # binpath in macports.conf) |
---|
45 | # |
---|
46 | # Also requires: DB_File, Pod::Parser and Test::More |
---|
47 | # but those should be in Perl's core modules. |
---|
48 | #============================================================ |
---|
49 | # LaTeXML works MUCH better if there is a TeX installed. |
---|
50 | # It (hopefully) will find any installation if it can find kpsewhich |
---|
51 | # However, we don't require a dependency here since |
---|
52 | # users may prefer MacTeX, or MacPort's texlive or .... |
---|
53 | # bin:texhash:texlive |
---|
54 | notes "${name} works best with some version of TeX installed. \ |
---|
55 | Please install MacTeX or 'sudo port install texlive' (or other system) first." |
---|
56 | |
---|
57 | #============================================================ |
---|
58 | # Configuration |
---|
59 | # Override configure to do it the perl way. |
---|
60 | configure.cmd ${prefix}/bin/perl5.16 Makefile.PL |
---|
61 | |
---|
62 | # Note that installation does |
---|
63 | # make install DESTDIR=${destroot} |
---|
64 | # which stages the installation to $destroot, NOT the eventual final installation. |
---|
65 | |
---|
66 | #============================================================ |
---|
67 | # Do this to enable testing |
---|
68 | # test.run yes |
---|
69 | |
---|
70 | #============================================================ |
---|
71 | # Get TeX to notice our style files, since this isn't done |
---|
72 | # when staging the installation to ${destpath} |
---|
73 | post-activate { system "mktexlsr" } |
---|
74 | |
---|