summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2021-07-21 08:19:02 -0400
committerGitHub <noreply@github.com>2021-07-21 14:19:02 +0200
commit9b48827a1009d2aea89bd7dddde5d4550e9e60ca (patch)
tree02b9035d393aa4f3fa0eb7f5f73a9c912709e3b5
parent7c5f48c99bffe3878e4e75177801d396c28f7cc5 (diff)
downloadspack-9b48827a1009d2aea89bd7dddde5d4550e9e60ca.tar.gz
spack-9b48827a1009d2aea89bd7dddde5d4550e9e60ca.tar.bz2
spack-9b48827a1009d2aea89bd7dddde5d4550e9e60ca.tar.xz
spack-9b48827a1009d2aea89bd7dddde5d4550e9e60ca.zip
pgplot: add libs method (#24999)
-rw-r--r--var/spack/repos/builtin/packages/pgplot/package.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/pgplot/package.py b/var/spack/repos/builtin/packages/pgplot/package.py
index 1cad3f68c3..89a0513773 100644
--- a/var/spack/repos/builtin/packages/pgplot/package.py
+++ b/var/spack/repos/builtin/packages/pgplot/package.py
@@ -82,3 +82,10 @@ class Pgplot(MakefilePackage):
install('libcpgplot.a', prefix.lib)
install('libpgplot.a', prefix.lib)
install('libpgplot.so', prefix.lib)
+
+ @property
+ def libs(self):
+ shared = "+shared" in self.spec
+ return find_libraries(
+ "lib*pgplot", root=self.prefix, shared=shared, recursive=True
+ )