From 16443f4dc7820b6052bb8dcce6e940e7305fc44f Mon Sep 17 00:00:00 2001 From: drochner Date: Mon, 5 Jul 2004 10:54:16 +0000 Subject: recognize "netbsd" as OS version --- math/yacas/distinfo | 3 ++- math/yacas/patches/patch-aa | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 math/yacas/patches/patch-aa (limited to 'math/yacas') diff --git a/math/yacas/distinfo b/math/yacas/distinfo index 35dc5464f32..a5a4a98e037 100644 --- a/math/yacas/distinfo +++ b/math/yacas/distinfo @@ -1,4 +1,5 @@ -$NetBSD: distinfo,v 1.4 2004/03/12 01:15:45 dmcmahill Exp $ +$NetBSD: distinfo,v 1.5 2004/07/05 10:54:16 drochner Exp $ SHA1 (yacas-1.0.56.tar.gz) = b21af18975289148e6bc868cda0212ed67c74bba Size (yacas-1.0.56.tar.gz) = 1931182 bytes +SHA1 (patch-aa) = 5b16cdd2fed2697d78dd1ebb594cfaedbe47e751 diff --git a/math/yacas/patches/patch-aa b/math/yacas/patches/patch-aa new file mode 100644 index 00000000000..a91cbe50f60 --- /dev/null +++ b/math/yacas/patches/patch-aa @@ -0,0 +1,15 @@ +$NetBSD: patch-aa,v 1.6 2004/07/05 10:54:16 drochner Exp $ + +--- ./scripts/osdep.rep/code.ys.orig 2003-04-17 23:12:02.000000000 +0200 ++++ ./scripts/osdep.rep/code.ys +@@ -8,8 +8,9 @@ PlatformOS() := Eval( + If(GreaterThan(Length(OSVersion()),6) And StringMid(1,6,OSVersion()) = "darwin", "Unix", + If(GreaterThan(Length(OSVersion()),7) And StringMid(1,7,OSVersion()) = "solaris", "Unix", + If(GreaterThan(Length(OSVersion()),7) And StringMid(1,7,OSVersion()) = "freebsd", "Unix", ++ If(GreaterThan(Length(OSVersion()),6) And StringMid(1,6,OSVersion()) = "netbsd", "Unix", + If(OSVersion() = "Win32", "Win32", +- /* otherwise */ Check(False, "Unsupported platform ":OSVersion()))))))); ++ /* otherwise */ Check(False, "Unsupported platform ":OSVersion())))))))); + + // this lists the available OS-specific modules + SupportedOSes := -- cgit v1.2.3