Add new package: 3proxy (#18831)

This commit is contained in:
darmac 2020-09-26 00:33:51 +08:00 committed by GitHub
parent 7bf0ebc5eb
commit 421f4e12a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,30 @@
# Copyright 2013-2020 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 *
import platform
class _3proxy(MakefilePackage):
"""3proxy - tiny free proxy server"""
homepage = "https://3proxy.org"
url = "https://github.com/z3APA3A/3proxy/archive/0.8.13.tar.gz"
version('0.8.13', sha256='a6d3cf9dd264315fa6ec848f6fe6c9057db005ce4ca8ed1deb00f6e1c3900f88')
version('0.8.12', sha256='c2ad3798b4f0df06cfcc7b49f658304e451d60e4834e2705ef83ddb85a03f849')
version('0.8.11', sha256='fc4295e1a462baa61977fcc21747db7861c4e3d0dcca86cbaa3e06017e5c66c9')
depends_on('autoconf', type='build')
depends_on('automake', type='build')
depends_on('libtool', type='build')
depends_on('m4', type='build')
def build(self, spec, prefix):
make('-f', 'Makefile.{0}'.format(platform.system()))
def install(self, spec, prefix):
make('-f', 'Makefile.{0}'.format(platform.system()),
'prefix={0}'.format(prefix), 'install')