gnuplot: make readline optional (#34179)
* gnuplot: make readline optional * Update package.py Co-authored-by: iarspider <iarspider@users.noreply.github.com>
This commit is contained in:
		| @@ -51,9 +51,10 @@ class Gnuplot(AutotoolsPackage): | |||||||
|         description="Enable PBM (Portable Bit Map) and other older bitmap terminals", |         description="Enable PBM (Portable Bit Map) and other older bitmap terminals", | ||||||
|     ) |     ) | ||||||
|     variant("qt", default=False, description="Build with QT") |     variant("qt", default=False, description="Build with QT") | ||||||
|  |     variant("readline", default=True, description="Build with readline") | ||||||
| 
 | 
 | ||||||
|     # required dependencies |     # required dependencies | ||||||
|     depends_on("readline") |     depends_on("readline", when="+readline") | ||||||
|     depends_on("pkgconfig", type="build") |     depends_on("pkgconfig", type="build") | ||||||
|     depends_on("libxpm") |     depends_on("libxpm") | ||||||
|     depends_on("iconv") |     depends_on("iconv") | ||||||
| @@ -79,9 +80,10 @@ def configure_args(self): | |||||||
|             "--disable-silent-rules", |             "--disable-silent-rules", | ||||||
|             # Per upstream: "--with-tutorial is horribly out of date." |             # Per upstream: "--with-tutorial is horribly out of date." | ||||||
|             "--without-tutorial", |             "--without-tutorial", | ||||||
|             "--with-readline=%s" % spec["readline"].prefix, |  | ||||||
|         ] |         ] | ||||||
| 
 | 
 | ||||||
|  |         options += self.with_or_without("readline", "prefix") | ||||||
|  | 
 | ||||||
|         if "+pbm" in spec: |         if "+pbm" in spec: | ||||||
|             options.append("--with-bitmap-terminals") |             options.append("--with-bitmap-terminals") | ||||||
|         else: |         else: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 iarspider
					iarspider