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

63 lines
2.7 KiB
Python
Raw Normal View History

##############################################################################
# Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-647188
#
# For details, see https://github.com/spack/spack
# Please also see the NOTICE and LICENSE files for our notice and the LGPL.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License (as
# published by the Free Software Foundation) version 2.1, February 1999.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
# conditions of the GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##############################################################################
2016-01-14 00:21:52 +08:00
from spack import *
2016-08-10 16:50:00 +08:00
class Cereal(CMakePackage):
2016-08-10 16:50:00 +08:00
"""cereal is a header-only C++11 serialization library. cereal takes
arbitrary data types and reversibly turns them into different
representations, such as compact binary encodings, XML, or
JSON. cereal was designed to be fast, light-weight, and easy to
extend - it has no external dependencies and can be easily bundled
with other code or used standalone.
"""
2016-01-14 00:21:52 +08:00
homepage = "http://uscilab.github.io/cereal/"
url = "https://github.com/USCiLab/cereal/archive/v1.1.2.tar.gz"
2017-03-21 04:05:02 +08:00
version('1.2.2', '4c56c7b9499dba79404250ef9a040481')
2016-09-20 17:12:52 +08:00
version('1.2.1', '64476ed74c19068ee543b53ad3992261')
2016-07-09 03:20:09 +08:00
version('1.2.0', 'e372c9814696481dbdb7d500e1410d2b')
2016-01-14 00:21:52 +08:00
version('1.1.2', '34d4ad174acbff005c36d4d10e48cbb9')
version('1.1.1', '0ceff308c38f37d5b5f6df3927451c27')
version('1.1.0', '9f2d5f72e935c54f4c6d23e954ce699f')
version('1.0.0', 'd1bacca70a95cec0ddbff68b0871296b')
version('0.9.1', '8872d4444ff274ce6cd1ed364d0fc0ad')
2017-03-21 04:05:02 +08:00
patch("Boost.patch")
patch("Boost2.patch", when="@1.2.2:")
patch("pointers.patch")
2016-01-14 00:21:52 +08:00
2016-03-09 23:46:56 +08:00
depends_on('cmake@2.6.2:', type='build')
2016-01-14 00:21:52 +08:00
def cmake_args(self):
2016-01-14 00:21:52 +08:00
# Boost is only used for self-tests, which we are not running (yet?)
return [
'-DCMAKE_DISABLE_FIND_PACKAGE_Boost=TRUE',
'-DSKIP_PORTABILITY_TEST=TRUE',
'-DJUST_INSTALL_CEREAL=On',
'-DWITH_WERROR=Off',
]