This is a bug report for math/pari port, specifically in gphelp
gphelp is part of the help system of pari/gp: e.g. in terminal one can run
keyword search:
$ gphelp -k "elliptic curves"
ellheight ellheightmatrix ellinit ellisogenyapply
[...]
However, gphelp installed by the latest (pari 2.15.4) port is broken:
$ gphelp -k "elliptic curves"
Could not find translation file, docdir='/usr/local/bin' at
/usr/local/bin/gphelp line 151.
The reason for this are the lines
mv ${PREFIX}/share/pari/doc ${PREFIX}/share/doc/pari
mv ${PREFIX}/share/pari/[A-Z]* ${PREFIX}/share/doc/pari
in the port's Makefile which cause the function (i.e. Perl's "sub") get_docdir
in gphelp to fail.
A workaround is to
$ export GPDOCDIR=/usr/local/share/doc/pari
Needless to say, this has to be fixed in port, either by
directly adjusting the paths get_docdir is using, or, less hackily,
use install-doctex and other similar Makefile targets of pari/gp.
These targets do "the right thing" to gphelp if one specifies
DOCDIR env. var., as
gmake DOCDIR=/usr/local/share/doc/pari install
Best,
Dima