Hi, ports@:

   Here is a patch for graphics/asymptote to update to 2.82.
It build well on amd64-current system. And all tests passd.
   No other ports depnd on it.


Cheers !
wen
Index: Makefile
===================================================================
RCS file: /cvs/ports/graphics/asymptote/Makefile,v
retrieving revision 1.48
diff -u -p -r1.48 Makefile
--- Makefile    12 Aug 2022 22:25:14 -0000      1.48
+++ Makefile    17 Aug 2022 11:45:56 -0000
@@ -2,8 +2,7 @@ BROKEN-riscv64=         assertion "q.pre == 0 &
 
 COMMENT=               powerful descriptive vector graphics language
 
-DISTNAME=              asymptote-2.70
-REVISION=              4
+DISTNAME=              asymptote-2.82
 EXTRACT_SUFX=          .src.tgz
 CATEGORIES=            graphics
 
Index: distinfo
===================================================================
RCS file: /cvs/ports/graphics/asymptote/distinfo,v
retrieving revision 1.5
diff -u -p -r1.5 distinfo
--- distinfo    24 May 2021 10:15:04 -0000      1.5
+++ distinfo    17 Aug 2022 11:45:56 -0000
@@ -1,2 +1,2 @@
-SHA256 (asymptote-2.70.src.tgz) = 9cyROoWMM+kveatCHTVMD+K6vYf0Uq6d/3KakCqoDD8=
-SIZE (asymptote-2.70.src.tgz) = 4674495
+SHA256 (asymptote-2.82.src.tgz) = T2+8WqBYyNOFE1Rr5bIzu11/pQ45SG89hiSqdZWudI0=
+SIZE (asymptote-2.82.src.tgz) = 15070290
Index: patches/patch-settings_cc
===================================================================
RCS file: patches/patch-settings_cc
diff -N patches/patch-settings_cc
--- patches/patch-settings_cc   11 Mar 2022 19:22:06 -0000      1.3
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,15 +0,0 @@
-Cope with ghostscript pre-9.16. If updating GS, this patch is likely to
-trigger a failure and should be removed.
-
-Index: settings.cc
---- settings.cc.orig
-+++ settings.cc
-@@ -86,7 +86,7 @@ mode_t mask;
- 
- string systemDir=ASYMPTOTE_SYSDIR;
- string defaultPSdriver="ps2write";
--string defaultEPSdriver="eps2write";
-+string defaultEPSdriver="epswrite";
- string 
defaultAsyGL="https://vectorgraphics.github.io/asymptote/base/webgl/asygl-"+
-   string(AsyGLVersion)+".js";
- 
Index: patches/patch-xstream_h
===================================================================
RCS file: patches/patch-xstream_h
diff -N patches/patch-xstream_h
--- patches/patch-xstream_h     11 Mar 2022 19:22:06 -0000      1.3
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,15 +0,0 @@
-Index: xstream.h
---- xstream.h.orig
-+++ xstream.h
-@@ -54,6 +54,11 @@ inline bool_t xdr_u_long(XDR *__xdrs, unsigned long *_
- 
- #endif
- 
-+#ifdef __OpenBSD__
-+#define xdr_longlong_t xdr_int64_t
-+#define xdr_u_longlong_t xdr_u_int64_t
-+#endif
-+
- #ifdef _POSIX_SOURCE
- #undef _POSIX_SOURCE
- #include <rpc/rpc.h>
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/graphics/asymptote/pkg/PLIST,v
retrieving revision 1.12
diff -u -p -r1.12 PLIST
--- pkg/PLIST   11 Mar 2022 19:22:06 -0000      1.12
+++ pkg/PLIST   17 Aug 2022 11:45:56 -0000
@@ -53,6 +53,7 @@ share/asymptote/GUI/res/icons/android-ra
 share/asymptote/GUI/res/icons/android-refresh.svg
 share/asymptote/GUI/res/icons/arrow-move.svg
 share/asymptote/GUI/res/icons/arrow-resize.svg
+share/asymptote/GUI/res/icons/brush.svg
 share/asymptote/GUI/res/icons/bucket.svg
 share/asymptote/GUI/res/icons/center.svg
 share/asymptote/GUI/res/icons/centerorigin.svg
@@ -72,11 +73,13 @@ share/asymptote/GUI/res/icons/magnifying
 share/asymptote/GUI/res/icons/opencurve.svg
 share/asymptote/GUI/res/icons/openpolygon.svg
 share/asymptote/GUI/res/icons/plus-round.svg
+share/asymptote/GUI/res/icons/redo.svg
 share/asymptote/GUI/res/icons/save.svg
 share/asymptote/GUI/res/icons/social-python.svg
 share/asymptote/GUI/res/icons/subdirectory-left.svg
 share/asymptote/GUI/res/icons/text.svg
 share/asymptote/GUI/res/icons/triangle-stroked-15.svg
+share/asymptote/GUI/res/icons/undo.svg
 share/asymptote/GUI/setup.py
 share/asymptote/GUI/xasy.py
 share/asymptote/GUI/xasy2asy.py
@@ -156,8 +159,17 @@ share/asymptote/rationalSimplex.asy
 share/asymptote/reload.js
 share/asymptote/roundedpath.asy
 share/asymptote/shaders/
+share/asymptote/shaders/blend.glsl
+share/asymptote/shaders/compress.glsl
+share/asymptote/shaders/count.glsl
 share/asymptote/shaders/fragment.glsl
+share/asymptote/shaders/screen.glsl
+share/asymptote/shaders/sum1.glsl
+share/asymptote/shaders/sum2.glsl
+share/asymptote/shaders/sum2fast.glsl
+share/asymptote/shaders/sum3.glsl
 share/asymptote/shaders/vertex.glsl
+share/asymptote/shaders/zero.glsl
 share/asymptote/simplex.asy
 share/asymptote/size10.asy
 share/asymptote/size11.asy
@@ -177,6 +189,9 @@ share/asymptote/three_tube.asy
 share/asymptote/tree.asy
 share/asymptote/trembling.asy
 share/asymptote/tube.asy
+share/asymptote/v3d.asy
+share/asymptote/v3dheadertypes.asy
+share/asymptote/v3dtypes.asy
 share/asymptote/version.asy
 share/asymptote/webgl/
 share/asymptote/webgl/asygl.js
@@ -203,6 +218,7 @@ share/examples/asymptote/
 share/examples/asymptote/100d.pdb1
 share/examples/asymptote/100d.views
 share/examples/asymptote/1overx.asy
+share/examples/asymptote/AiryDisk.asy
 share/examples/asymptote/BezierPatch.asy
 share/examples/asymptote/BezierSaddle.asy
 share/examples/asymptote/BezierSurface.asy
@@ -333,6 +349,7 @@ share/examples/asymptote/generalaxis3.as
 share/examples/asymptote/genusthree.asy
 share/examples/asymptote/genustwo.asy
 share/examples/asymptote/graphmarkers.asy
+share/examples/asymptote/graphwithderiv.asy
 share/examples/asymptote/grid.asy
 share/examples/asymptote/grid3xyz.asy
 share/examples/asymptote/hatch.asy
@@ -484,6 +501,7 @@ share/examples/asymptote/subpictures.asy
 share/examples/asymptote/superpath.asy
 share/examples/asymptote/tanh.asy
 share/examples/asymptote/teapot.asy
+share/examples/asymptote/teapotIBL.asy
 share/examples/asymptote/tensor.asy
 share/examples/asymptote/tetra.asy
 share/examples/asymptote/textpath.asy
@@ -505,6 +523,7 @@ share/examples/asymptote/trumpet.asy
 share/examples/asymptote/truncatedIcosahedron.asy
 share/examples/asymptote/tvgen.asy
 share/examples/asymptote/twistedtubes.asy
+share/examples/asymptote/twoSpheres.asy
 share/examples/asymptote/unitcircle.asy
 share/examples/asymptote/unitcircle3.asy
 share/examples/asymptote/unitoctant.asy
@@ -541,5 +560,4 @@ share/texmf-local/tex/latex/asymptote/
 share/texmf-local/tex/latex/asymptote/asycolors.sty
 share/texmf-local/tex/latex/asymptote/asymptote.sty
 share/texmf-local/tex/latex/asymptote/latexmkrc
-share/texmf-local/tex/latex/asymptote/ocg.sty
 @tag mktexlsr-local

Reply via email to