openbsd-ports/textproc/p5-LaTeX-Driver/patches/patch-Makefile_PL
sthen 0f1285be32 import textproc/p5-LaTeX-Driver, merged from submissions by Andrew Fresh
and Chris Bennett.

The LaTeX::Driver module takes care of running and re-running latex on
a LaTeX document so that forward references, tables of contents, and
lists of figures and tables are resolved.  It will also run bibtex and
makeindex if it detects that a bibliography or in index have been
specified, and will re-run latex again one or more times until the
formatting of the document has stabilized.

landry@ ok to import (though slight tweaks since the version he saw).
2012-06-27 08:54:27 +00:00

27 lines
1.4 KiB
Plaintext

$OpenBSD: patch-Makefile_PL,v 1.1.1.1 2012/06/27 08:54:27 sthen Exp $
--- Makefile.PL.orig Thu Mar 17 19:39:05 2011
+++ Makefile.PL Thu Mar 17 19:52:45 2011
@@ -39,14 +39,14 @@ EOF
#------------------------------------------------------------------------
-our $LATEX = ttprompt('latex path', find_program($ENV{PATH}, "latex"));
-our $PDFLATEX = ttprompt('pdflatex path', find_program($ENV{PATH}, "pdflatex"));
-our $BIBTEX = ttprompt('bibtex path', find_program($ENV{PATH}, "bibtex"));
-our $MAKEINDEX = ttprompt('makeindex path', find_program($ENV{PATH}, "makeindex"));
-our $DVIPS = ttprompt('dvips path', find_program($ENV{PATH}, "dvips"));
-our $DVIPDFM = ttprompt('dvipdfm path', find_program($ENV{PATH}, "dvipdfm"));
-our $PS2PDF = ttprompt('ps2pdf path', find_program($ENV{PATH}, "ps2pdf"));
-our $PDF2PS = ttprompt('pdf2ps path', find_program($ENV{PATH}, "pdf2ps"));
+our $LATEX = $ENV{PREFIX} . "/bin/latex";
+our $PDFLATEX = $ENV{PREFIX} . "/bin/pdflatex";
+our $BIBTEX = $ENV{PREFIX} . "/bin/bibtex";
+our $MAKEINDEX = $ENV{PREFIX} . "/bin/makeindex";
+our $DVIPS = $ENV{PREFIX} . "/bin/dvips";
+our $DVIPDFM = $ENV{PREFIX} . "/bin/dvipdfm";
+our $PS2PDF = $ENV{PREFIX} . "/bin/ps2pdf";
+our $PDF2PS = $ENV{PREFIX} . "/bin/pdf2ps";
if (!$LATEX and !$PDFLATEX) {
my $continue = ttprompt('You don\'t seem to have LaTeX installed. Continue anyway?', 'N');