Ticket #17097: Portfile.diff

File Portfile.diff, 1.3 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 16 years ago)
  • Portfile

    old new  
    11# $Id: Portfile 36980 2008-05-21 22:43:10Z aschenke@macports.org $
    22
    33PortSystem       1.0
     4
    45name                 latexdiff
    56version              0.5
    67categories           tex
    7 maintainers          aschenke@macports.org
     8maintainers          aschenke
     9platforms            darwin
    810description          determine and mark up significant differences between latex files
    911long_description latexdiff is a Perl script, which compares two latex files \
    1012                 and marks up significant differences between them (i.e. a \
     
    2224distname         ${name}
    2325use_zip          yes
    2426
    25 depends_run      bin:perl:perl5.8
     27depends_run      path:bin/perl:perl5
    2628
    2729configure {
    28         reinplace "s|/usr/bin/perl -w|/usr/bin/env perl|g" \
     30        reinplace "s|/usr/bin/perl -w|${prefix}/bin/perl -w|g" \
    2931                ${worksrcpath}/latexdiff-so ${worksrcpath}/latexdiff-vc \
    3032                ${worksrcpath}/latexrevise
    3133}
     
    3436
    3537destroot.destdir INSTALLPATH=${destroot}${prefix} \
    3638                 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}