pacparser: add v1.4.5 (#46639)
This commit is contained in:
parent
ff7e1b5918
commit
5c52ded1be
@ -10,11 +10,12 @@ class Pacparser(MakefilePackage):
|
||||
"""pacparser is a library to parse proxy auto-config (PAC) files."""
|
||||
|
||||
homepage = "https://pacparser.github.io/"
|
||||
url = "https://github.com/manugarg/pacparser/releases/download/v1.4.0/pacparser-v1.4.0.tar.gz"
|
||||
url = "https://github.com/manugarg/pacparser/archive/refs/tags/v1.4.5.tar.gz"
|
||||
git = "https://github.com/manugarg/pacparser.git"
|
||||
|
||||
license("LGPL-3.0-or-later")
|
||||
|
||||
version("1.4.5", sha256="fac205f41d000e245519244dc3e730e649a0ac1c61b5f2d1d0660056e1680b2d")
|
||||
version("1.4.0", sha256="2e66c5fe635cd5dcb9bccca4aced925eca712632b81bada3b63682159c0f910e")
|
||||
version("1.3.9", commit="4bbfb15c96ea0b2aede2f7371e59f66e15722d41")
|
||||
version("1.3.8", sha256="4e2872de565b2b64ffc81ba503e0eba35b3f7ef4a023ddd4a328c7b9d2cac266")
|
||||
@ -33,6 +34,12 @@ class Pacparser(MakefilePackage):
|
||||
|
||||
variant("python", default=False, description="Build and install python bindings")
|
||||
|
||||
def url_for_version(self, version):
|
||||
if version <= Version("1.4.0"):
|
||||
return f"https://github.com/manugarg/pacparser/releases/download/v{version}/pacparser-v{version}.tar.gz"
|
||||
else:
|
||||
return f"https://github.com/manugarg/pacparser/archive/refs/tags/v{version}.tar.gz"
|
||||
|
||||
def build(self, spec, prefix):
|
||||
make('CC="%s"' % self.compiler.cc, 'CXX="%s"' % self.compiler.cxx, "-C", "src")
|
||||
if "+python" in spec:
|
||||
|
Loading…
Reference in New Issue
Block a user