[101769] trunk/dports/tex/latexdiff/Portfile
Ryan Schmidt
ryandesign at macports.org
Fri Jan 18 19:00:41 PST 2013
On Jan 18, 2013, at 15:51, aschenke at macports.org wrote:
> Revision: 101769
> https://trac.macports.org/changeset/101769
> Author: aschenke at macports.org
> Date: 2013-01-18 13:51:55 -0800 (Fri, 18 Jan 2013)
> Log Message:
> -----------
> latexdiff: update to version 1.02; updated homepage; added dependency on p5-algorithm-diff
>
> Modified Paths:
> --------------
> trunk/dports/tex/latexdiff/Portfile
>
> Modified: trunk/dports/tex/latexdiff/Portfile
> ===================================================================
> --- trunk/dports/tex/latexdiff/Portfile 2013-01-18 21:32:37 UTC (rev 101768)
> +++ trunk/dports/tex/latexdiff/Portfile 2013-01-18 21:51:55 UTC (rev 101769)
> @@ -4,7 +4,7 @@
> PortSystem 1.0
>
> name latexdiff
> -version 0.5
> +version 1.0.2
> revision 1
Don't change it now but remember for future reference that the revision should drop to 0 when the version is increased.
> -depends_run path:bin/perl:perl5
> +depends_run path:bin/perl:perl5 \
> + port:p5-algorithm-diff
Don't declare a dependency on a stub port. (All p5- ports are stub ports -- they don't install anything.) Instead, declare a dependency on the specific subport you want. Usually for perl modules that's the p5.12 version. Furthermore, ensure that "perl5.12" is being executed, not "perl".
> +destroot {
> + # install scripts
> + xinstall -m 755 ${worksrcpath}/latexdiff ${destroot}${prefix}/bin
> + xinstall -m 755 ${worksrcpath}/latexdiff-fast ${destroot}${prefix}/bin
> + xinstall -m 755 ${worksrcpath}/latexdiff-so ${destroot}${prefix}/bin
> + xinstall -m 755 ${worksrcpath}/latexdiff-vc ${destroot}${prefix}/bin
> + xinstall -m 755 ${worksrcpath}/latexrevise ${destroot}${prefix}/bin
> +
> + # install man pages
> + xinstall -m 644 ${worksrcpath}/latexdiff.1 ${destroot}${prefix}/share/man/man1
> + xinstall -m 644 ${worksrcpath}/latexdiff-vc.1 ${destroot}${prefix}/share/man/man1
> + xinstall -m 644 ${worksrcpath}/latexrevise.1 ${destroot}${prefix}/share/man/man1
> +
> + # install docs
> xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
> - xinstall -m 644 ${worksrcpath}/latexdiff-man.pdf ${destroot}${prefix}/share/doc/${name}
> - xinstall -m 644 ${worksrcpath}/CHANGES ${destroot}${prefix}/share/doc/${name}
> - xinstall -m 644 ${worksrcpath}/LICENSE ${destroot}${prefix}/share/doc/${name}
> + xinstall -m 644 ${worksrcpath}/doc/latexdiff-man.pdf ${destroot}${prefix}/share/doc/${name}
> + xinstall -m 644 ${worksrcpath}/doc/latexdiff-man.tex ${destroot}${prefix}/share/doc/${name}
> + xinstall -m 644 ${worksrcpath}/doc/example-diff.tex ${destroot}${prefix}/share/doc/${name}
> + xinstall -m 644 ${worksrcpath}/COPYING ${destroot}${prefix}/share/doc/${name}
> xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
xinstall can install multiple files to the same destination using the -W argument; this would simplify your destroot greatly.
More information about the macports-dev
mailing list