2017-03-17 14:16:30 +08:00
|
|
|
##############################################################################
|
2017-09-07 11:44:16 +08:00
|
|
|
# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
|
2017-03-17 14:16:30 +08:00
|
|
|
# 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
|
|
|
|
#
|
2017-11-05 08:08:04 +08:00
|
|
|
# For details, see https://github.com/spack/spack
|
2017-06-25 13:22:55 +08:00
|
|
|
# Please also see the NOTICE and LICENSE files for our notice and the LGPL.
|
2017-03-17 14:16:30 +08:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
##############################################################################
|
|
|
|
from spack import *
|
|
|
|
|
|
|
|
|
|
|
|
class Libbson(AutotoolsPackage):
|
|
|
|
"""libbson is a library providing useful routines related to building,
|
|
|
|
parsing, and iterating BSON documents."""
|
|
|
|
|
|
|
|
homepage = "https://github.com/mongodb/libbson"
|
2017-09-12 13:02:48 +08:00
|
|
|
url = "https://github.com/mongodb/libbson/releases/download/1.7.0/libbson-1.7.0.tar.gz"
|
2017-03-17 14:16:30 +08:00
|
|
|
|
2017-11-15 00:21:05 +08:00
|
|
|
version('1.8.1', '42601455cf7f450b46f62c4e6115c440')
|
2017-09-28 00:19:10 +08:00
|
|
|
version('1.8.0', '8b3c64570eec721f951831958e707a5a')
|
2017-09-12 13:02:48 +08:00
|
|
|
version('1.7.0', 'e196ad77dd8458ebc1166e6135030b63')
|
2017-06-25 20:09:47 +08:00
|
|
|
version('1.6.3', 'b7bdb314197106fcfb4af105a582d343')
|
2017-04-08 19:40:55 +08:00
|
|
|
version('1.6.2', 'c128a2ae3e35295e1176465be60f19db')
|
2017-03-17 14:16:30 +08:00
|
|
|
version('1.6.1', '4d6779451bc5764a7d4982c01e7bd8c2')
|
|
|
|
|
2017-04-08 19:40:55 +08:00
|
|
|
depends_on('autoconf', type='build', when='@1.6.1')
|
|
|
|
depends_on('automake', type='build', when='@1.6.1')
|
|
|
|
depends_on('libtool', type='build', when='@1.6.1')
|
|
|
|
depends_on('m4', type='build', when='@1.6.1')
|
2017-03-17 14:16:30 +08:00
|
|
|
|
2017-04-08 19:40:55 +08:00
|
|
|
@property
|
|
|
|
def force_autoreconf(self):
|
|
|
|
# 1.6.1 tarball is broken
|
|
|
|
return self.spec.satisfies('@1.6.1')
|