Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 04 May 2026 16:42:22 +0000
From:      Rene Ladan <rene@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 5e7f3368846a - main - math/xgraph: Remove expired port
Message-ID:  <69f8cc6e.2523e.55cc2bfd@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by rene:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5e7f3368846aa1f24847cc0d9c484c0fa2aa9bfc

commit 5e7f3368846aa1f24847cc0d9c484c0fa2aa9bfc
Author:     Rene Ladan <rene@FreeBSD.org>
AuthorDate: 2026-05-04 16:42:06 +0000
Commit:     Rene Ladan <rene@FreeBSD.org>
CommitDate: 2026-05-04 16:42:06 +0000

    math/xgraph: Remove expired port
    
    2026-04-30 math/xgraph: Obsolete software, unmaintained upstream
---
 MOVED                            |  1 +
 math/Makefile                    |  1 -
 math/xgraph/Makefile             | 39 -------------------
 math/xgraph/distinfo             |  2 -
 math/xgraph/files/patch-dialog.c | 20 ----------
 math/xgraph/files/patch-hpgl.c   | 13 -------
 math/xgraph/files/patch-ps.c     | 10 -----
 math/xgraph/files/patch-xgraph.c | 84 ----------------------------------------
 math/xgraph/files/patch-xgraph.h | 39 -------------------
 math/xgraph/files/patch-xtb.c    | 11 ------
 math/xgraph/files/patch-xtb.h    | 11 ------
 math/xgraph/pkg-descr            |  2 -
 math/xgraph/pkg-plist            |  7 ----
 13 files changed, 1 insertion(+), 239 deletions(-)

diff --git a/MOVED b/MOVED
index 020d2bb7cbd2..f416b5824f3a 100644
--- a/MOVED
+++ b/MOVED
@@ -5268,3 +5268,4 @@ lang/elm||2026-05-04|Has expired: Depends on a deprecated compiler's version
 ports-mgmt/portsnap||2026-05-04|Has expired: portsnap infrastructure will be removed after the EOL of 13.x
 lang/ruby32||2026-05-04|Has expired: Please migrate to newer version. Ruby 3.2 is expected to reach its EoL on March 31, 2026
 lang/ghc92||2026-05-04|Has expired: Old version
+math/xgraph||2026-05-04|Has expired: Obsolete software, unmaintained upstream
diff --git a/math/Makefile b/math/Makefile
index 478f67b0efdc..011ff37818bb 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -1316,7 +1316,6 @@
     SUBDIR += xblas
     SUBDIR += xfce4-calculator-plugin
     SUBDIR += xgap
-    SUBDIR += xgraph
     SUBDIR += xlapack
     SUBDIR += xldlas
     SUBDIR += xlife++
diff --git a/math/xgraph/Makefile b/math/xgraph/Makefile
deleted file mode 100644
index f0d0942a614d..000000000000
--- a/math/xgraph/Makefile
+++ /dev/null
@@ -1,39 +0,0 @@
-PORTNAME=	xgraph
-PORTVERSION=	11.3.2.20000910
-PORTREVISION=	6
-CATEGORIES=	math print
-MASTER_SITES=	ftp://ftp.cs.utoronto.ca/pub/radford/
-DISTNAME=	xgraph-11
-
-MAINTAINER=	bofh@FreeBSD.org
-COMMENT=	Program that helps you plot graphs
-
-DEPRECATED=	Obsolete software, unmaintained upstream
-EXPIRATION_DATE=	2026-04-30
-
-LICENSE=	XGRAPH
-LICENSE_NAME=	xgraph license
-LICENSE_FILE=	${WRKSRC}/COPYING
-LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
-
-USES=		imake tar:Z xorg
-USE_XORG=	x11 xext
-
-WRKSRC=		${WRKDIR}/${PORTNAME}
-
-OPTIONS_DEFINE=	EXAMPLES
-
-.include <bsd.port.options.mk>
-
-.if ${OPSYS} == FreeBSD
-CFLAGS+=	-Wno-error=int-conversion
-.endif
-
-post-extract:
-	@${SED} -ne '2,19 {s|^ \* *||;p;}' < ${WRKSRC}/copyright.h > ${WRKSRC}/COPYING
-
-post-install-EXAMPLES-on:
-	@${MKDIR} ${STAGEDIR}${PREFIX}/share/examples/xgraph
-	${INSTALL_DATA} ${WRKSRC}/examples/*.xg ${STAGEDIR}${PREFIX}/share/examples/xgraph
-
-.include <bsd.port.mk>
diff --git a/math/xgraph/distinfo b/math/xgraph/distinfo
deleted file mode 100644
index d6cb99b67e21..000000000000
--- a/math/xgraph/distinfo
+++ /dev/null
@@ -1,2 +0,0 @@
-SHA256 (xgraph-11.tar.Z) = ecba2b5d044f0e323da3a9fcdf245caca7a1c056c8378d9d50316861ebd7b99b
-SIZE (xgraph-11.tar.Z) = 157489
diff --git a/math/xgraph/files/patch-dialog.c b/math/xgraph/files/patch-dialog.c
deleted file mode 100644
index 567707c21dfc..000000000000
--- a/math/xgraph/files/patch-dialog.c
+++ /dev/null
@@ -1,20 +0,0 @@
---- dialog.c.orig	2000-08-03 16:40:44 UTC
-+++ dialog.c
-@@ -702,7 +702,7 @@ xtb_frame *frame;		/* Returned frame */
-     new_info->lines = (Window *) malloc((unsigned) (sizeof(Window) * E_LINES));
- 
-     lineptr = text;
--    while (getline(&lineptr, line)) {
-+    while (get_line(&lineptr, line)) {
- 	if (new_info->num_lines >= new_info->alloc_lines) {
- 	    new_info->alloc_lines *= 2;
- 	    new_info->lines = (Window *) realloc((char *) new_info->lines,
-@@ -800,7 +800,7 @@ char *err_text;
- 
- 
- 
--int getline(tptr, lptr)
-+int get_line(tptr, lptr)
- char **tptr;
- char *lptr;
- /*
diff --git a/math/xgraph/files/patch-hpgl.c b/math/xgraph/files/patch-hpgl.c
deleted file mode 100644
index 3fb8f90bed3d..000000000000
--- a/math/xgraph/files/patch-hpgl.c
+++ /dev/null
@@ -1,13 +0,0 @@
---- hpgl.c.orig	2000-08-02 18:31:56 UTC
-+++ hpgl.c
-@@ -13,9 +13,8 @@
- #include "xgout.h"
- #include "plotter.h"
- #include <stdio.h>
-+#include <stdlib.h>
- #include <math.h>
--#define MAX(a,b) ( ((a)>(b)) ? (a) : (b) )
--#define MIN(a,b) ( ((a)<(b)) ? (a) : (b) )
- /* char *malloc(); */
- 
- static void hpglText();
diff --git a/math/xgraph/files/patch-ps.c b/math/xgraph/files/patch-ps.c
deleted file mode 100644
index 258a6144fa27..000000000000
--- a/math/xgraph/files/patch-ps.c
+++ /dev/null
@@ -1,10 +0,0 @@
---- ps.c.orig	2000-08-02 21:17:34 UTC
-+++ ps.c
-@@ -59,7 +59,6 @@
- #define PS(str)		OUT(psFile, str)
- #define PSU(str)	OUT(ui->psFile, str)
- #define IY(val)		(ui->height_devs - val)
--#define MAX(a, b)	((a) > (b) ? (a) : (b))
- 
- /*
-  * Globals
diff --git a/math/xgraph/files/patch-xgraph.c b/math/xgraph/files/patch-xgraph.c
deleted file mode 100644
index 6aa8f81deeb2..000000000000
--- a/math/xgraph/files/patch-xgraph.c
+++ /dev/null
@@ -1,84 +0,0 @@
---- xgraph.c.orig	2000-09-10 14:05:47 UTC
-+++ xgraph.c
-@@ -74,8 +74,6 @@
- #define BTNPAD		1
- #define BTNINTER	3
- 
--#define MAX(a,b)	((a) > (b) ? (a) : (b))
--#define MIN(a,b)	((a) < (b) ? (a) : (b))
- #define ABS(x)		((x) < 0 ? -(x) : (x))
- #define ZERO_THRES	1.0E-07
- 
-@@ -333,6 +331,7 @@ char *argv[];
- 	if (!strm) {
- 	    (void) fprintf(stderr, "Warning:  cannot open file `%s'\n",
- 			   inFileNames[idx]);
-+	    errs++;
- 	} else {
- 	    if ((maxitems = ReadData(strm, inFileNames[idx])) < 0) {
- 		errs++;
-@@ -403,6 +402,7 @@ char *argv[];
-     fg_color = PM_COLOR("Foreground");
-     bg_color = PM_COLOR("Background");
-     XRecolorCursor(disp, zoomCursor, &fg_color, &bg_color);
-+    init_X(NULL);
- 
-     Num_Windows = 1;
-     while (Num_Windows > 0) {
-@@ -415,6 +415,13 @@ char *argv[];
- 	    continue;
- 	}
- 	switch (theEvent.type) {
-+	case ConfigureNotify:
-+		win_info->dev_info.area_w = theEvent.xconfigure.width;
-+		win_info->dev_info.area_h = theEvent.xconfigure.height;
-+		init_X(win_info->dev_info.user_state);
-+		XClearArea(disp, theEvent.xany.window, 1, 1, win_info->dev_info.area_w, win_info->dev_info.area_h, 0);
-+		DrawWindow(win_info);
-+		break;
- 	case Expose:
- 	    if (theEvent.xexpose.count <= 0) {
- 		XWindowAttributes win_attr;
-@@ -423,6 +430,7 @@ char *argv[];
- 		win_info->dev_info.area_w = win_attr.width;
- 		win_info->dev_info.area_h = win_attr.height;
- 		init_X(win_info->dev_info.user_state);
-+		XClearArea(disp, theEvent.xany.window, 1, 1, win_info->dev_info.area_w, win_info->dev_info.area_h, 0);
- 		DrawWindow(win_info);
- 	    }
- 	    break;
-@@ -715,7 +723,7 @@ int primary;			/* Is this the primary window? */
-         if (sizehints.x<0) sizehints.x = 0;
-         sizehints.y += 25; 
-     }
--#endif
-+#else
- 
-     /* Aspect ratio computation */
-     if (asp < 1.0) {
-@@ -723,6 +731,7 @@ int primary;			/* Is this the primary window? */
-     } else {
- 	height = ((int) (((double) NORMSIZE) / asp));
-     }
-+#endif
-     height = MAX(MINDIM, height);
-     width = MAX(MINDIM, width);
- 
-@@ -789,7 +798,7 @@ int primary;			/* Is this the primary window? */
- 
- 	new_info->flags = 0;
- 	XSelectInput(disp, new_window,
--		     ExposureMask|KeyPressMask|ButtonPressMask);
-+		     ExposureMask|KeyPressMask|ButtonPressMask|StructureNotifyMask);
- 	if (!theCursor) {
- 	    theCursor = XCreateFontCursor(disp, XC_top_left_arrow);
- 	    fg_color = PM_COLOR("Foreground");
-@@ -1478,6 +1487,8 @@ LineInfo *result;		/* Returned result */
- 	    while (*line && (*line != '\n') && (*line != '"')) line++;
- 	    if (*line) *line = '\0';
- 	} else {
-+	    /* treat comma's as white space */
-+	    for (first=line; *first; ++first) if (*first == ',') *first = ' ';
- 	    first = line;
- 	    while (*line && !isspace(*line)) line++;
- 	    if (*line) {
diff --git a/math/xgraph/files/patch-xgraph.h b/math/xgraph/files/patch-xgraph.h
deleted file mode 100644
index b0d831d37055..000000000000
--- a/math/xgraph/files/patch-xgraph.h
+++ /dev/null
@@ -1,39 +0,0 @@
---- xgraph.h.orig	1997-07-16 18:40:41 UTC
-+++ xgraph.h
-@@ -5,7 +5,12 @@
- #ifndef _XGRAPH_H_
- #define _XGRAPH_H_
- 
-+#include <stdio.h>
-+#include <stdlib.h>
-+#include <string.h>
- #include <X11/Xos.h>
-+#undef index
-+#undef rindex
- #include <X11/Xlib.h>
- #include <X11/Xutil.h>
- #include <X11/cursorfont.h>
-@@ -33,20 +38,9 @@ extern void do_hardcopy();	/* Carries out hardcopy    
- extern void ho_dialog();	/* Hardcopy dialog         */
- extern void set_X();		/* Initializes X device    */
- 
--#if 0
--/* To make lint happy */
--extern char *malloc();
--extern char *realloc();
--extern char *sprintf();
--extern char *strcpy();
--extern char *strcat();
--extern char *rindex();
--extern char *index();
--extern void exit();
--extern void free();
--extern double atof();
-+#ifndef MAX
-+#define MAX(a,b)	((a) > (b) ? (a) : (b))
-+#define MIN(a,b)	((a) < (b) ? (a) : (b))
- #endif
--
--extern void abort();
- 
- #endif /* _XGRAPH_H_ */
diff --git a/math/xgraph/files/patch-xtb.c b/math/xgraph/files/patch-xtb.c
deleted file mode 100644
index f6486b81813b..000000000000
--- a/math/xgraph/files/patch-xtb.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- xtb.c.orig	2000-08-02 18:33:01 UTC
-+++ xtb.c
-@@ -198,7 +198,7 @@ Window win;
- {
-     xtb_data data;
- 
--    if (!XFindContext(t_disp, win, h_context, &data)) {
-+    if (!XFindContext(t_disp, win, h_context, (XPointer*)&data)) {
- 	return ((struct h_info *) data)->info;
-     } else {
- 	return (xtb_data) 0;
diff --git a/math/xgraph/files/patch-xtb.h b/math/xgraph/files/patch-xtb.h
deleted file mode 100644
index c5fb862b979b..000000000000
--- a/math/xgraph/files/patch-xtb.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- xtb.h.orig	1997-07-16 18:40:41 UTC
-+++ xtb.h
-@@ -164,7 +164,7 @@ typedef union xtb_fmt_defn {
-     xtb_fmt_align align;
- } xtb_fmt;
- 
--#define NE	0
-+#define NE	((xtb_fmt *) 0)
- 
- DECLARE(xtb_w, xtb_fmt *, (xtb_frame *w));
-    /* Returns formatting structure for frame */
diff --git a/math/xgraph/pkg-descr b/math/xgraph/pkg-descr
deleted file mode 100644
index 8883827c4656..000000000000
--- a/math/xgraph/pkg-descr
+++ /dev/null
@@ -1,2 +0,0 @@
-xgraph is a program that will help you draw graphs.  It is pretty old
-(based on X11R3!) and required lots of hacks to make it compile.
diff --git a/math/xgraph/pkg-plist b/math/xgraph/pkg-plist
deleted file mode 100644
index 795c2f1fa35d..000000000000
--- a/math/xgraph/pkg-plist
+++ /dev/null
@@ -1,7 +0,0 @@
-bin/xgraph
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/bar.xg
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/surface.xg
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/surface2.xg
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/surface3.xg
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/xgtest.xg
-share/man/man1/xgraph.1.gz


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69f8cc6e.2523e.55cc2bfd>