diff --git a/tex/texlive-bibtex-extra/Portfile b/tex/texlive-bibtex-extra/Portfile index 02eff4ba066..2d16c46c3d8 100644 --- a/tex/texlive-bibtex-extra/Portfile +++ b/tex/texlive-bibtex-extra/Portfile @@ -5,7 +5,7 @@ PortGroup texlive 1.0 name texlive-bibtex-extra version 78219 -revision 2 +revision 3 categories tex maintainers {dports @drkp} @@ -53,7 +53,23 @@ post-patch { } { reinplace "s|@@TEXMFDIST@@|${texlive_texmfdist}|" ${worksrcpath}/${f} } + + # Fix perl paths for any perl scripts that have non-core + # dependencies. + reinplace -E "1 s,^#! ?(/usr/bin/env perl|/usr/bin/perl),#!${prefix}/bin/perl${perl5.major}," \ + ${worksrcpath}/runfiles/texmf-dist/scripts/crossrefware/bbl2bib.pl \ + ${worksrcpath}/runfiles/texmf-dist/scripts/crossrefware/bibdoiadd.pl \ + ${worksrcpath}/runfiles/texmf-dist/scripts/crossrefware/bibmradd.pl \ + ${worksrcpath}/runfiles/texmf-dist/scripts/crossrefware/bibzbladd.pl } +PortGroup perl5 1.0 +perl5.branches 5.34 + +# dependencies for crossrefware (bbl2bib, bibdoiadd, bibmradd, bibzbladd) +depends_run-append port:p${perl5.major}-libwww-perl \ + port:p${perl5.major}-uri \ + port:p${perl5.major}-json + texlive.texmfport