summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriarspider <iarspider@gmail.com>2021-01-28 20:42:53 +0100
committerGitHub <noreply@github.com>2021-01-28 20:42:53 +0100
commitf28026c0400877ecaa1c10f6b1447710f9c3627c (patch)
tree7605b4029f6487f38c2a4c97c9ee0e4cafe6b4c6
parenteeddaaea52a554f812a841dc14666970169fc778 (diff)
downloadspack-f28026c0400877ecaa1c10f6b1447710f9c3627c.tar.gz
spack-f28026c0400877ecaa1c10f6b1447710f9c3627c.tar.bz2
spack-f28026c0400877ecaa1c10f6b1447710f9c3627c.tar.xz
spack-f28026c0400877ecaa1c10f6b1447710f9c3627c.zip
pacparser: new package at v1.3.7 (#21372)
Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
-rw-r--r--var/spack/repos/builtin/packages/pacparser/package.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/pacparser/package.py b/var/spack/repos/builtin/packages/pacparser/package.py
new file mode 100644
index 0000000000..6f8a03f736
--- /dev/null
+++ b/var/spack/repos/builtin/packages/pacparser/package.py
@@ -0,0 +1,32 @@
+# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class Pacparser(MakefilePackage):
+ """pacparser is a library to parse proxy auto-config (PAC) files."""
+
+ homepage = "http://pacparser.github.io/"
+ url = "https://github.com/manugarg/pacparser/releases/download/1.3.7/pacparser-1.3.7.tar.gz"
+
+ version('1.3.7', sha256='eb48ec2fc202d12a4b882133048c7590329849f32c2285bc4dbe418f29aad249')
+
+ depends_on('python', when='+python')
+ depends_on('py-setuptools', when='+python', type=('build', 'run'))
+
+ variant('python', default=False,
+ description='Build and install python bindings')
+
+ def build(self, spec, prefix):
+ make('-C', 'src')
+ if '+python' in spec:
+ make('-C', 'src', 'pymod')
+
+ def install(self, spec, prefix):
+ make('-C', 'src', 'install', 'PREFIX=' + self.prefix)
+ if '+python' in spec:
+ make('-C', 'src', 'install-pymod', 'PREFIX=' + self.prefix,
+ 'EXTRA_ARGS=--prefix={0}'.format(prefix))