source: trunk/dports/print/latex2html/Portfile

Last change on this file was 146841, checked in by aronnax@…, 18 months ago

latex2html: update to 2015 version from CTAN

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 146841 2016-03-18 19:04:54Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               texlive 1.0
6
7name                    latex2html
8version                 2015
9categories              print
10platforms               darwin
11maintainers             nomaintainer
12license                 GPL-2
13supported_archs         noarch
14
15description             Convert LaTeX into HTML.
16
17long_description        LATEX2HTML is a convertor written in Perl that \
18                        converts LATEX documents to HTML.
19
20homepage                https://www.ctan.org/pkg/${name}
21master_sites            http://ctan.sharelatex.com/tex-archive/support/${name}
22
23checksums               md5     78fa8e5a4c70f81a84b087980f7f9e8b \
24                        sha1    13c893850dd1136f2e276068131f0a264c1cae1a \
25                        rmd160  0ad90b995dc4f93a5905feac15c540a4ae03fd3a
26
27depends_run             bin:latex:texlive-latex \
28                        port:ghostscript \
29                        port:netpbm
30
31depends_lib             path:bin/perl:perl5
32
33patchfiles              patch-config-config.pl.diff
34
35configure.perl          ${prefix}/bin/perl
36
37set texmfdir ${texlive_texmfports}/tex/latex/html
38configure.args          --without-mktexlsr \
39                        --with-texpath=${texmfdir}
40
41post-destroot {
42    set docdir ${destroot}${prefix}/share/doc/${name}
43    xinstall -d ${docdir}
44    xinstall -m 644 -W ${worksrcpath} \
45        BUGS \
46        Changes \
47        FAQ \
48        LICENSE \
49        README \
50        TODO \
51        ${docdir}
52
53    xinstall -d -m 755 ${destroot}${texmfdir}
54    foreach file [ glob ${worksrcpath}/texinputs/* ] {
55        file copy -force ${file} ${destroot}${texmfdir}
56    }
57
58    # Newer versions of these files are already installed by
59    # texlive. Because ${texlive_texmfports} is earlier in the search
60    # path, the files installed by this port would shadow them. To
61    # prevent this, don't install the old versions.
62    delete ${destroot}${texmfdir}/url.sty
63    delete ${destroot}${texmfdir}/latin9.def
64}
65
66texlive.use_mktexlsr yes
67
68
69livecheck.type          regex
70livecheck.url           [lindex ${master_sites} 0]
71livecheck.regex         ${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.