cvector: new package at v1.0.3 (#21533)

This commit is contained in:
ketsubouchi 2021-02-13 01:07:25 +09:00 committed by GitHub
parent ad0ba8ce68
commit 1e7fe89e1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,25 @@
# 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 Cvector(MakefilePackage):
"""CVector -- ANSI C API for Dynamic Arrays"""
homepage = "http://cvector.sourceforge.net/"
url = "https://downloads.sourceforge.net/project/cvector/cvector/CVector-1.0.3/CVector-1.0.3.tar.gz"
version('1.0.3', sha256='d3fa92de3cd5ba8697abdbb52080248b2c252a81cf40a8ec639be301518d0ce3')
depends_on('libtool', type='build')
def edit(self, spec, prefix):
mf = FileFilter('Makefile')
mf.filter(r'^CC.+', "CC = {0}".format(spack_cc))
mf.filter(r'^INSTALL_PREFIX .+', "INSTALL_PREFIX = {0}".format(prefix))
def build(self, spec, prefix):
pass