On Mon, May 23, 2011 at 04:44:42PM -0500, Chris Bennett wrote: > I have gotten the build and run depends probably right. > But it has a Makefile.PL that asks questions about the locations of files > that texlive_base installs are at. The questions have all the right answers > (but that could change later upstream?) > > And texlive could change thoses locations later anyway. > What is the preferred way to deal with a script asking for file locations? > Patch the Makefile.PL? Feed it the answers? > > What is another port that deals with this, I'll look at it. > > Chris Bennett >
OK, I have fixed script problem by patching to not ask where files are at. Makefile.PL does -x for them and they are located at defaults anyway. I have found all the run and build depends, quite a few come as required by texlive_base so I did not add them to Makefile I also get an error on regress since the file lastpage.sty is not included in testdata. This issue was reported upstream as a bug a long time ago and not fixed. I found a copy of lastpage.sty online, downloaded it, added to testdata. Passes regress with it. Should I add this file to testdata myself? Makefile: COMMENT= LaTeX::Driver - Latex driver MODULES= cpan DISTNAME= LaTeX-Driver-0.08 CATEGORIES= textproc USE_GROFF= Yes # PERL PERMIT_PACKAGE_CDROM= Yes PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM= Yes PERMIT_DISTFILES_FTP= Yes RUN_DEPENDS= devel/p5-Class-Accessor \ devel/p5-Exception-Class \ devel/p5-File-Slurp \ texlive_base-2010:print/texlive/base \ textproc/p5-Template \ devel/p5-Devel-StackTrace BUILD_DEPENDS= ${RUN_DEPENDS} .include <bsd.port.mk> patch-Makefile.PL: --- Makefile.PL.orig Wed May 25 07:37:37 2011 +++ Makefile.PL Wed May 25 07:39:14 2011 @@ -39,14 +39,14 @@ #------------------------------------------------------------------------ -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 = find_program($ENV{PATH}, "latex"); +our $PDFLATEX = find_program($ENV{PATH}, "pdflatex"); +our $BIBTEX = find_program($ENV{PATH}, "bibtex"); +our $MAKEINDEX = find_program($ENV{PATH}, "makeindex"); +our $DVIPS = find_program($ENV{PATH}, "dvips"); +our $DVIPDFM = find_program($ENV{PATH}, "dvipdfm"); +our $PS2PDF = find_program($ENV{PATH}, "ps2pdf"); +our $PDF2PS = find_program($ENV{PATH}, "pdf2ps"); if (!$LATEX and !$PDFLATEX) { my $continue = ttprompt('You don\'t seem to have LaTeX installed. Continue anyway?', 'N'); OK? Comments? Chris Bennett