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

25 lines
903 B
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)
2015-09-22 07:40:23 +08:00
from spack import *
2016-08-10 16:50:00 +08:00
class Gflags(CMakePackage):
2015-09-22 07:40:23 +08:00
"""The gflags package contains a C++ library that implements
commandline flags processing. It includes built-in support for
standard types such as string and the ability to define flags
in the source file in which they are used. Online documentation
available at: https://gflags.github.io/gflags/"""
homepage = "https://gflags.github.io/gflags"
url = "https://github.com/gflags/gflags/archive/v2.1.2.tar.gz"
version('2.1.2', sha256='d8331bd0f7367c8afd5fcb5f5e85e96868a00fd24b7276fa5fcee1e5575c2662')
2015-09-22 07:40:23 +08:00
depends_on('cmake@2.8.12:', type='build')
2016-03-09 23:46:56 +08:00
def cmake_args(self):
return ['-DBUILD_SHARED_LIBS=ON']