source: trunk/dports/tex/latexdiff/Portfile @ 99736

Last change on this file since 99736 was 99736, checked in by jmr@…, 7 years ago

fix incorrect deactivate hacks, and simplify others by removing compatibility with old base versions

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 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 99736 2012-11-15 15:13:11Z jmr@macports.org $
3
4PortSystem       1.0
5
6name                 latexdiff
7version              0.5
8revision         1
9categories           tex
10maintainers          aschenke
11license             GPL-2
12platforms            darwin
13supported_archs  noarch
14description          determine and mark up significant differences between latex files
15long_description latexdiff is a Perl script, which compares two latex files \
16                 and marks up significant differences between them (i.e. a \
17                 diff for latex files). Various options are available for \
18                 visual markup using standard latex packages such as \
19                 color.sty. Changes not directly affecting visible text, for \
20                 example in formatting commands, are still marked in the latex \
21                 source.
22homepage         http://www.ctan.org/tex-archive/support/latexdiff/
23master_sites     ftp://tug.ctan.org/pub/tex-archive/support/
24checksums            md5 70fdec50c25c5807e7ec071b88d4af49 \
25                                 sha1 804eddcfb117204ba2ada69193a4432c486fb69e \
26                                 rmd160 6a88afb1ca605dc9fd42721356c9d2322e55d54a
27dist_subdir      ${name}/${version}
28distname         ${name}
29use_zip          yes
30
31depends_run      path:bin/perl:perl5
32
33configure {
34        reinplace "s|/usr/bin/perl -w|${prefix}/bin/perl -w|g" \
35                ${worksrcpath}/latexdiff-so ${worksrcpath}/latexdiff-vc \
36                ${worksrcpath}/latexrevise
37}
38
39build            { }
40
41destroot.destdir INSTALLPATH=${destroot}${prefix} \
42                 INSTALLMANPATH=${destroot}${prefix}/share/man
43
44post-destroot {
45        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
46        xinstall -m 644 ${worksrcpath}/latexdiff-man.pdf ${destroot}${prefix}/share/doc/${name}
47        xinstall -m 644 ${worksrcpath}/CHANGES ${destroot}${prefix}/share/doc/${name}
48        xinstall -m 644 ${worksrcpath}/LICENSE ${destroot}${prefix}/share/doc/${name}
49        xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
50       
51        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/example
52        xinstall -m 644 ${worksrcpath}/example/example-draft.tex ${destroot}${prefix}/share/doc/${name}/example
53        xinstall -m 644 ${worksrcpath}/example/example-rev.tex ${destroot}${prefix}/share/doc/${name}/example
54}
55
56pre-activate {
57    # texlive-bin-extra used to contain latexdiff, but doesn't
58    # anymore. If the old version is installed, deactivate it to avoid
59    # a conflict.
60    if {[file exists $prefix/bin/latexdiff]
61        && ![catch {set vers [lindex [registry_active texlive-bin-extra] 0]}]
62        && [vercmp [lindex $vers 1] 19536] < 0} {
63        registry_deactivate_composite texlive-bin-extra "" [list ports_nodepcheck 1]
64    }
65}
Note: See TracBrowser for help on using the repository browser.