pkgsrc/graphics/gnuplot/patches/patch-src_variable.c
adam 8e8df2b5c2 gnuplot: updated to 5.2.1
Release 5.2.1

A few bug-fixes present in the distributed package for 5.2.1 are not yet
commited upstream because the repository is in the process of migration
from cvs to git.

* src/graphics.c (plot_betweencurves):
        plot 'foo' with filledcurves below y=bar
would fail to identify "below" regions where the y value foo[x] at the
start or end of the region was exactly equal to bar.

* src/axis.c (gen_tics):  `set log x; set xtics foo` would always place
the first axis tic at foo rather than at (foo / base^N) for suitable N.

* src/win/winmain.c (ConsolePutS, ConsolePutCh):  Use standard file IO
instead of Console API to enable word-wrapping on Windows 10 and to
allow for redirection of stdout/stderr.

* term/post.trm:  Raise the limit on number of relative moves before
a "stroke" so that a full circle as drawn by do_arc() does not glitch
due to insertion of a "stroke xx yy M" sequence that resets the
dot/dash pattern.

* src/plot2d.c (eval_plots): If the range for logscaled y axis is empty,
e.g. the plot holds a single point, auto-extend the range rather than
giving up with an error.
2017-11-03 15:00:10 +00:00

23 lines
913 B
C

$NetBSD: patch-src_variable.c,v 1.1 2017/11/03 15:00:10 adam Exp $
Add NetBSD native X and pkgsrc modular X directories to the candidate
font path list.
--- src/variable.c.orig 2013-07-03 16:31:53.000000000 +0000
+++ src/variable.c
@@ -279,6 +279,15 @@ static const struct path_table fontpath_
{ "$`kpsexpand '$TEXMFMAIN'`/fonts/type1!" },
{ "$`kpsexpand '$TEXMFDIST'`/fonts/type1!" },
#endif
+ /* NetBSD pkgsrc X.org */
+ { @PKGSRC_PREFIX@ "/lib/X11/fonts/Type1" },
+ { @PKGSRC_PREFIX@ "/lib/X11/fonts/truetype" },
+ /* NetBSD pkgsrc default font path */
+ { @PKGSRC_PREFIX@ "/share/fonts/X11/Type1" },
+ { @PKGSRC_PREFIX@ "/share/fonts/X11/TTF" },
+ /* NetBSD native X.org */
+ { "/usr/X11R7/lib/X11/fonts/Type1" },
+ { "/usr/X11R7/lib/X11/fonts/truetype" },
/* Linux paths */
{ "/usr/X11R6/lib/X11/fonts/Type1" },
{ "/usr/X11R6/lib/X11/fonts/truetype" },