Ticket #43598: Portfile

File Portfile, 2.5 KB (added by brucemiller (bruce miller), 10 years ago)

proposed Portfile for LaTeXML 0.8.0

Line 
1# $Id$
2#======================================================================
3# Portfile for LaTeXML
4# (draft)
5#======================================================================
6PortSystem 1.0
7name LaTeXML
8version 0.8.0
9categories tex
10maintainers bruce.miller@nist.gov
11description LaTeXML converts TeX to XML/HTML/MathML
12long_description \
13   LaTeXML converts TeX to XML,\
14   including HTML, XHTML, ePub with MathML.
15
16homepage http://dlmf.nist.gov/LaTeXML/
17platforms darwin
18master_sites http://dlmf.nist.gov/LaTeXML/releases/
19checksums 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
26depends_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
54notes "${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.
60configure.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}
73post-activate { system "mktexlsr" }
74