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

Last change on this file since 50984 was 41580, checked in by aschenke@…, 12 years ago

added requested enhancements (ticket #17097)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 41580 2008-11-06 11:45:22Z aschenke@macports.org $
2
3PortSystem       1.0
4
5name                 latexdiff
6version              0.5
7categories           tex
8maintainers          aschenke
9platforms            darwin
10description          determine and mark up significant differences between latex files
11long_description latexdiff is a Perl script, which compares two latex files \
12                 and marks up significant differences between them (i.e. a \
13                 diff for latex files). Various options are available for \
14                 visual markup using standard latex packages such as \
15                 color.sty. Changes not directly affecting visible text, for \
16                 example in formatting commands, are still marked in the latex \
17                 source.
18homepage         http://www.ctan.org/tex-archive/support/latexdiff/
19master_sites     ftp://tug.ctan.org/pub/tex-archive/support/
20checksums            md5 70fdec50c25c5807e7ec071b88d4af49 \
21                                 sha1 804eddcfb117204ba2ada69193a4432c486fb69e \
22                                 rmd160 6a88afb1ca605dc9fd42721356c9d2322e55d54a
23dist_subdir      ${name}/${version}
24distname         ${name}
25use_zip          yes
26
27depends_run      path:bin/perl:perl5
28
29configure {
30        reinplace "s|/usr/bin/perl -w|${prefix}/bin/perl -w|g" \
31                ${worksrcpath}/latexdiff-so ${worksrcpath}/latexdiff-vc \
32                ${worksrcpath}/latexrevise
33}
34
35build            { }
36
37destroot.destdir INSTALLPATH=${destroot}${prefix} \
38                 INSTALLMANPATH=${destroot}${prefix}/share/man
39
40post-destroot {
41        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
42        xinstall -m 644 ${worksrcpath}/latexdiff-man.pdf ${destroot}${prefix}/share/doc/${name}
43        xinstall -m 644 ${worksrcpath}/CHANGES ${destroot}${prefix}/share/doc/${name}
44        xinstall -m 644 ${worksrcpath}/LICENSE ${destroot}${prefix}/share/doc/${name}
45        xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
46       
47        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/example
48        xinstall -m 644 ${worksrcpath}/example/example-draft.tex ${destroot}${prefix}/share/doc/${name}/example
49        xinstall -m 644 ${worksrcpath}/example/example-rev.tex ${destroot}${prefix}/share/doc/${name}/example
50}
Note: See TracBrowser for help on using the repository browser.