source: trunk/dports/tex/latexdiff/Portfile

Last change on this file was 151898, checked in by mojca@…, 13 months ago

latexdiff: switch to perl5.24 (#52081)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 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 151898 2016-08-23 21:44:00Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           perl5 1.0
6
7# PortGroup         github 1.0
8# github.setup      ftilmann latexdiff 1.1.1
9name                latexdiff
10version             1.2.0
11revision            1
12categories          tex
13maintainers         nomaintainer
14license             GPL-3+
15platforms           darwin
16supported_archs     noarch
17description         determine and mark up significant differences between latex files
18long_description    \
19    latexdiff is a Perl script, which compares two latex files and marks up \
20    significant differences between them (i.e. a diff for latex files). Various \
21    options are available for visual markup using standard latex packages such \
22    as \"color.sty\". Changes not directly affecting visible text, for example in \
23    formatting commands, are still marked in the latex source.
24
25homepage            http://www.ctan.org/pkg/latexdiff
26master_sites        https://github.com/ftilmann/${name}/releases/download/${version}/
27
28checksums           rmd160  2c33daeac9dc0d89b1bfc3a77872be62c8208b3c \
29                    sha256  b139b7a289236b4daf1e94258253869be87b6c13a0dfecddf5259140f16c96cd
30
31perl5.branches      5.24
32
33depends_run         port:perl${perl5.major} \
34                    port:p${perl5.major}-algorithm-diff
35
36post-patch {
37    reinplace -W ${worksrcpath} "s|/usr/bin/env perl|${perl5.bin}|g" \
38        latexdiff latexdiff-fast latexdiff-so latexdiff-vc latexrevise
39}
40
41use_configure       no
42
43build               {}
44
45destroot.destdir    INSTALLPATH=${destroot}${prefix} \
46                    INSTALLMANPATH=${destroot}${prefix}/share/man
47
48destroot {
49    # install scripts
50    xinstall -m 755 -W ${worksrcpath} latexdiff latexdiff-fast latexdiff-so latexdiff-vc latexrevise ${destroot}${prefix}/bin
51
52    # install man pages
53    xinstall -m 644 -W ${worksrcpath} latexdiff.1 latexdiff-vc.1 latexrevise.1 ${destroot}${prefix}/share/man/man1
54
55    # install docs
56    set docdir ${prefix}/share/doc/${name}
57    xinstall -m 755 -d ${destroot}${docdir}/examples
58    xinstall -m 644 -W ${worksrcpath} COPYING README doc/example-diff.tex doc/latexdiff-man.pdf doc/latexdiff-man.tex ${destroot}${docdir}
59
60    # install examples
61    xinstall -m 644 -W ${worksrcpath}/example example-draft.tex example-rev.tex ${destroot}${docdir}/examples
62}
63
64livecheck.type      regex
65livecheck.url       ${homepage}
66livecheck.regex     "<td>(\\d+(\\.\\d+)*) ?</td>"
Note: See TracBrowser for help on using the repository browser.