From 63e461933dfcb30a02c9e766a10e844c51df438f Mon Sep 17 00:00:00 2001 From: nia Date: Tue, 12 May 2020 10:31:35 +0000 Subject: fig2dev: Update to 3.2.7b Patchlevel 7b (Oct 2019) NEW FEATURES: o A X color database is not needed, but can be provided. The location of the database can be given at compile time, default /etc/X11/rgb.txt. BUGS FIXED: Ticket numbers refer to https://sourceforge.net/p/mcj/tickets/#. Debian bug numbers refer to https://bugs.debian.org/#. o Do not clip objects with line-thickness 0 having arrows. Ticket #53. o Do not segfault on circle/half circle arrowheads with a magnification larger 42. Always draw circle arrowheads with 40 points. Ticket #52. o Allow circles or ellipses with negative radii. Ticket #49. o Avoid "dimension too large error" with tikz output by avoiding coordinate values smaller than -16383. o Make tests (test1.c) work with -fsanitize=address compiler option. o Obey join-style of lines in tikz output. o Pass utf8-strings to svg output, escape some chars (<>&). o Accept inclined boxes and change them to polygons. Fixes ticket #43. o Make tests #27 and #33 work on Mac Darwin, failed due to whitespace formatting differences. From Hanspeter Niederstrasser. Ticket #40. o Use only latex, neither etex or tex, to test tikz output. Usage of etex, after hint from Roland Rosenfeld, closed debian bug 920368. o For tikz output, do not draw arrows on a single point line. o Omit spurious showpage when including jpg-file. From Rainer Buchty. o Correct a few memory leaks and corruptions. See commit d1c54f6. o Change negative color numbers to default color. Fixes ticket #30. o A spline with one point would cause segfault. Fixed, see ticket #29. o Allow one char without newline in the last line of an input file. Fixes ticket #28. o Harden input, mainly against files in which an incomplete object would be created and freeing the object would violate memory, i.e, it may cause segfault. See, e.g., ticket #27. o Properly initalize line storage when reading fig files version 1.3. Would segfault when reading incomplete line and trying to free it. Fixes ticket #26, debian bug 906743. o Silently ignore the hundred-first and more comment lines. This fixes ticket #25 and debian bug 906740. o Use SetFigFont, not SetFigFontNFSS in pictex output. Fixes https://bugs.launchpad.net/ubuntu/+source/transfig/+bug/1359485 . o Accept blanks in color names (e.g., fig2dev -L eps -g"Misty Rose"..). o Correct typos in man-pages, debian 30_man_typo.patch. ------------------------------------- Patchlevel 7a (May 2018) NEW FEATURES: o Add option -w, wrap (create stand-alone perl file) for Perl/Tk output. o Distribute the X bitmaps files within fig2dev, no need to install these files. The files were needed for Tk and Perl/Tk output. BUGS FIXED: Ticket numbers refer to https://sourceforge.net/p/mcj/tickets/#. o Fix regression whereupon flipped ellipses were not read. Ticket #23. o Distribute i18n files ru_RU.CP1251.ps and uk_UA.KOI8-U.ps. o Make test "survive debian bug #890016" succeed on 32 bit systems. ------------------------------------- Patchlevel 7 (April 2018) OPTION LETTER CHANGES: o Language previous option current option ------------------------------------------------------------ cgm -b dummy -a epic -A scale -d scale eepic -A scale -d scale eepicemu -A scale -d scale gbx -i on|off -v ibmgl -m mag,xoff,yoff -m mag -x xoff -y yoff mp -I file -d file ps -S dummy -o NEW FEATURES: o Print language-specific help text by using fig2dev -L lang -h. o Add option -M, multipage, for MetaPost output language. o Add option -P, pagemode, and -z to choose a pagesize for pdf output. o Add option -W (scaling of figures not possible) for tikz. o Add option -b, border width, for LaTeX output language. o Add option -f for pstex_t and pdftex_t output language. o Add uk_UA and ru_RU encodings for PostScript output. Ticket #12. BUGS FIXED: o Update help text: Output help for dxf and textyl output language, add description of -g option for Tk/Tcl and Perl/Tk output, allow -f option for pstex_t and pdftex_t output language. Debian bug numbers refer to https://bugs.debian.org/#. Ticket numbers refer to https://sourceforge.net/p/mcj/tickets/#. o Sanitize input. Do not segfault on malformed input files. Fixes debian bugs 881143, 881144, 881396, 890015, 890016, 882021 and also 882022. o Do not put an %%Orientation: comment into PostScript output. Some viewers would rotate the resulting file, others not. o Fix build on NetBSD, which has a _setmode() function different from _setmode() on Windows. Ticket #17. Also, avoid alloca(). Ticket #16. o tikz output: Omit the semicolon after \pgftext[..]{...};. o Define PostScript patterns with larger tiles, may render better. #13 o Fix build in case libXpm is missing. Ticket #15. o Use netpbm programs instead of ghostscript, to produce smaller files. o Correctly embed eps files with binary preview (epsi, typically found on Microsoft systems). Also, allow to embed ps-files. Fixes debian bug 248807, ticket #8. o For compilation, do not depend on PATH_MAX being defined. --- print/fig2dev/Makefile | 4 +- print/fig2dev/PLIST | 54 ++-------------------- print/fig2dev/distinfo | 14 +++--- print/fig2dev/patches/patch-fig2dev_dev_readjpg.c | 17 ------- print/fig2dev/patches/patch-fig2dev_fig2dev.c | 17 ------- .../fig2dev/patches/patch-fig2dev_tests_atlocal.in | 9 ++-- 6 files changed, 16 insertions(+), 99 deletions(-) delete mode 100644 print/fig2dev/patches/patch-fig2dev_dev_readjpg.c delete mode 100644 print/fig2dev/patches/patch-fig2dev_fig2dev.c (limited to 'print/fig2dev') diff --git a/print/fig2dev/Makefile b/print/fig2dev/Makefile index 4146fa68fbd..d46a0e09324 100644 --- a/print/fig2dev/Makefile +++ b/print/fig2dev/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.4 2020/03/20 11:58:13 nia Exp $ +# $NetBSD: Makefile,v 1.5 2020/05/12 10:31:35 nia Exp $ -DISTNAME= fig2dev-3.2.6a +DISTNAME= fig2dev-3.2.7b CATEGORIES= graphics print MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mcj/} EXTRACT_SUFX= .tar.xz diff --git a/print/fig2dev/PLIST b/print/fig2dev/PLIST index 790523c580c..9c6bc64acc5 100644 --- a/print/fig2dev/PLIST +++ b/print/fig2dev/PLIST @@ -1,59 +1,10 @@ -@comment $NetBSD: PLIST,v 1.1 2017/10/03 14:59:08 wiz Exp $ +@comment $NetBSD: PLIST,v 1.2 2020/05/12 10:31:35 nia Exp $ bin/fig2dev bin/fig2ps2tex bin/pic2tpic man/man1/fig2dev.1 man/man1/fig2ps2tex.1 man/man1/pic2tpic.1 -share/fig2dev/bitmaps/bricks.bmp -share/fig2dev/bitmaps/circles.bmp -share/fig2dev/bitmaps/crosshatch.bmp -share/fig2dev/bitmaps/crosshatch30.bmp -share/fig2dev/bitmaps/crosshatch45.bmp -share/fig2dev/bitmaps/dash.bmp -share/fig2dev/bitmaps/dashDot.bmp -share/fig2dev/bitmaps/dashDotDot.bmp -share/fig2dev/bitmaps/dashDotDotDot.bmp -share/fig2dev/bitmaps/dot.bmp -share/fig2dev/bitmaps/fishscales.bmp -share/fig2dev/bitmaps/hexagons.bmp -share/fig2dev/bitmaps/horiz_saw.bmp -share/fig2dev/bitmaps/horizontal.bmp -share/fig2dev/bitmaps/left30.bmp -share/fig2dev/bitmaps/left45.bmp -share/fig2dev/bitmaps/leftshingle.bmp -share/fig2dev/bitmaps/octagons.bmp -share/fig2dev/bitmaps/p13.bmp -share/fig2dev/bitmaps/right30.bmp -share/fig2dev/bitmaps/right45.bmp -share/fig2dev/bitmaps/rightshingle.bmp -share/fig2dev/bitmaps/small_fishscales.bmp -share/fig2dev/bitmaps/sp0.bmp -share/fig2dev/bitmaps/sp1.bmp -share/fig2dev/bitmaps/sp10.bmp -share/fig2dev/bitmaps/sp11.bmp -share/fig2dev/bitmaps/sp12.bmp -share/fig2dev/bitmaps/sp13.bmp -share/fig2dev/bitmaps/sp14.bmp -share/fig2dev/bitmaps/sp15.bmp -share/fig2dev/bitmaps/sp16.bmp -share/fig2dev/bitmaps/sp17.bmp -share/fig2dev/bitmaps/sp18.bmp -share/fig2dev/bitmaps/sp19.bmp -share/fig2dev/bitmaps/sp2.bmp -share/fig2dev/bitmaps/sp20.bmp -share/fig2dev/bitmaps/sp3.bmp -share/fig2dev/bitmaps/sp4.bmp -share/fig2dev/bitmaps/sp5.bmp -share/fig2dev/bitmaps/sp6.bmp -share/fig2dev/bitmaps/sp7.bmp -share/fig2dev/bitmaps/sp8.bmp -share/fig2dev/bitmaps/sp9.bmp -share/fig2dev/bitmaps/vert_bricks.bmp -share/fig2dev/bitmaps/vert_leftshingle.bmp -share/fig2dev/bitmaps/vert_rightshingle.bmp -share/fig2dev/bitmaps/vert_saw.bmp -share/fig2dev/bitmaps/vertical.bmp share/fig2dev/i18n/cs_CZ.ps share/fig2dev/i18n/hr_HR.ps share/fig2dev/i18n/hu_HU.ps @@ -70,7 +21,8 @@ share/fig2dev/i18n/ko_KR.ps share/fig2dev/i18n/korean.ps share/fig2dev/i18n/pl_PL.ps share/fig2dev/i18n/ro_RO.ps +share/fig2dev/i18n/ru_RU.CP1251.ps share/fig2dev/i18n/ru_RU.KOI8-R.ps share/fig2dev/i18n/sk_SK.ps share/fig2dev/i18n/sl_SI.ps -share/fig2dev/rgb.txt +share/fig2dev/i18n/uk_UA.KOI8-U.ps diff --git a/print/fig2dev/distinfo b/print/fig2dev/distinfo index c615708cb59..d67ca72562e 100644 --- a/print/fig2dev/distinfo +++ b/print/fig2dev/distinfo @@ -1,9 +1,7 @@ -$NetBSD: distinfo,v 1.3 2020/03/12 17:40:44 wiz Exp $ +$NetBSD: distinfo,v 1.4 2020/05/12 10:31:35 nia Exp $ -SHA1 (fig2dev-3.2.6a.tar.xz) = e09145435f3306010eb006f9d7e118fccf77cd2b -RMD160 (fig2dev-3.2.6a.tar.xz) = 0498c32afdd4df51a54d513d1de8f9cc00997bf8 -SHA512 (fig2dev-3.2.6a.tar.xz) = 082c4d75c66187dc2bd7f3a50b6e117f03f495030fa89d6f70270e15b8f00647a94365e10797c5b1889b4ed1400d3fa6f4a3821e744c79b4483403a930e7d77f -Size (fig2dev-3.2.6a.tar.xz) = 507820 bytes -SHA1 (patch-fig2dev_dev_readjpg.c) = 705414eb61cdbd257b7a3bc8f500a0580b21acab -SHA1 (patch-fig2dev_fig2dev.c) = 5b52728ee9f9e6888b8e83d2e6ef346a74b35a81 -SHA1 (patch-fig2dev_tests_atlocal.in) = 3136991e18591227b4b3176d0fe88087b4281e78 +SHA1 (fig2dev-3.2.7b.tar.xz) = 8097c178b7fff1023112250938cc87837c0f564e +RMD160 (fig2dev-3.2.7b.tar.xz) = 133011bf9d998464b87fc952a739a58307cfb270 +SHA512 (fig2dev-3.2.7b.tar.xz) = 134023febf935e76bd5e45695e3718f6af823297743045cf5aaf91136047d8f217785cd150667aa893f8424430bf60e36cad907419118f27fee75aafb02cbe41 +Size (fig2dev-3.2.7b.tar.xz) = 512224 bytes +SHA1 (patch-fig2dev_tests_atlocal.in) = a4440e467472ba02b8a67cab0287f5859a5eb631 diff --git a/print/fig2dev/patches/patch-fig2dev_dev_readjpg.c b/print/fig2dev/patches/patch-fig2dev_dev_readjpg.c deleted file mode 100644 index 9ea06b06b83..00000000000 --- a/print/fig2dev/patches/patch-fig2dev_dev_readjpg.c +++ /dev/null @@ -1,17 +0,0 @@ -$NetBSD: patch-fig2dev_dev_readjpg.c,v 1.2 2017/10/04 12:01:43 wiz Exp $ - -NetBSD defines _setmode, but is not Windows. -https://sourceforge.net/p/mcj/tickets/17/ - ---- fig2dev/dev/readjpg.c.orig 2017-01-07 22:04:22.000000000 +0000 -+++ fig2dev/dev/readjpg.c -@@ -39,6 +39,9 @@ - #include "object.h" /* does #include */ - #include "psimage.h" - #include "creationdate.h" -+#ifdef __NetBSD__ -+#undef HAVE__SETMODE -+#endif - #ifdef HAVE__SETMODE /* see fig2dev.c */ - #include - #include diff --git a/print/fig2dev/patches/patch-fig2dev_fig2dev.c b/print/fig2dev/patches/patch-fig2dev_fig2dev.c deleted file mode 100644 index 23c29942967..00000000000 --- a/print/fig2dev/patches/patch-fig2dev_fig2dev.c +++ /dev/null @@ -1,17 +0,0 @@ -$NetBSD: patch-fig2dev_fig2dev.c,v 1.2 2017/10/04 12:01:43 wiz Exp $ - -NetBSD defines _setmode, but is not Windows. -https://sourceforge.net/p/mcj/tickets/17/ - ---- fig2dev/fig2dev.c.orig 2017-01-04 11:04:09.000000000 +0000 -+++ fig2dev/fig2dev.c -@@ -37,6 +37,9 @@ - #include - #include "bool.h" - #include -+#ifdef __NetBSD__ -+#undef HAVE__SETMODE -+#endif - /* setmode() exists on DOS/Windows. It sets file mode to text or binary. - * setmode() is declared in , O_BINARY is declared in . */ - #ifdef HAVE__SETMODE diff --git a/print/fig2dev/patches/patch-fig2dev_tests_atlocal.in b/print/fig2dev/patches/patch-fig2dev_tests_atlocal.in index 3df64f3da6c..c0cb2ecaf67 100644 --- a/print/fig2dev/patches/patch-fig2dev_tests_atlocal.in +++ b/print/fig2dev/patches/patch-fig2dev_tests_atlocal.in @@ -1,11 +1,12 @@ -$NetBSD: patch-fig2dev_tests_atlocal.in,v 1.1 2020/03/12 17:40:44 wiz Exp $ +$NetBSD: patch-fig2dev_tests_atlocal.in,v 1.2 2020/05/12 10:31:35 nia Exp $ Fix unportable test(1) operator. ---- fig2dev/tests/atlocal.in.orig 2016-02-14 20:54:26.000000000 +0000 +--- fig2dev/tests/atlocal.in.orig 2018-02-17 22:11:57.000000000 +0000 +++ fig2dev/tests/atlocal.in -@@ -1,6 +1,6 @@ - # @configure_input@ +@@ -18,7 +18,7 @@ + # atlocal.in + # Author: Thomas Loimer, 2017, 2018 -if test x"@abs_top_builddir@" == x"@abs_top_srcdir@"; then +if test x"@abs_top_builddir@" = x"@abs_top_srcdir@"; then -- cgit v1.2.3