From 0fb671a19ed6e4afe8693ae2a17f0caaee9acca3 Mon Sep 17 00:00:00 2001
From: Tom Payerle <payerle@umd.edu>
Date: Wed, 3 Jun 2020 23:08:07 -0400
Subject: [PATCH] Gnuplot fix 16928 (#16929)

* gnuplot: Fix for #16928

Dependency for --with-wx flag mistyped (should be wxwidgets)

* Revert "gnuplot: Fix for #16928"

This reverts commit 2b85814e5ccf5c9b2c70c7959994e89c18fdc3d8.

* gnuplot: Fix for #16928

Dependency spec for --with-wx flag mistyped (should be wxwidgets, not
wx)
---
 var/spack/repos/builtin/packages/gnuplot/package.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/var/spack/repos/builtin/packages/gnuplot/package.py b/var/spack/repos/builtin/packages/gnuplot/package.py
index 9fb79e6746..59e527fcde 100644
--- a/var/spack/repos/builtin/packages/gnuplot/package.py
+++ b/var/spack/repos/builtin/packages/gnuplot/package.py
@@ -122,7 +122,7 @@ def configure_args(self):
             options.append('--with-qt=no')
 
         if '+wx' in spec:
-            options.append('--with-wx=%s' % spec['wx'].prefix)
+            options.append('--with-wx=%s' % spec['wxwidgets'].prefix)
         else:
             options.append('--disable-wxwidgets')
 
-- 
GitLab