spack/var/spack/repos/builtin/packages/libffi/package.py

26 lines
1.0 KiB
Python
Raw Normal View History

# Copyright 2013-2019 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)
2014-10-31 06:02:06 +08:00
from spack import *
2016-08-10 16:50:00 +08:00
class Libffi(AutotoolsPackage):
2014-10-31 06:02:06 +08:00
"""The libffi library provides a portable, high level programming
interface to various calling conventions. This allows a programmer
to call any function specified by a call interface description at
run time."""
homepage = "https://sourceware.org/libffi/"
2016-08-10 16:50:00 +08:00
version('3.2.1', '83b89587607e3eb65c70d361f13bab43',
url="https://www.mirrorservice.org/sites/sourceware.org/pub/libffi/libffi-3.2.1.tar.gz")
2016-08-10 16:50:00 +08:00
# version('3.1', 'f5898b29bbfd70502831a212d9249d10',url =
# "ftp://sourceware.org/pub/libffi/libffi-3.1.tar.gz") # Has a bug
# $(lib64) instead of ${lib64} in libffi.pc
@property
def headers(self):
# The headers are probably in self.prefix.lib but we search everywhere
return find_headers('ffi', self.prefix, recursive=True)