Add new package: mongodb-async-driver (#17787)

This commit is contained in:
darmac 2020-08-01 03:45:35 +08:00 committed by GitHub
parent 8df17d3830
commit e938e439b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,24 @@
# Copyright 2013-2020 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 MongodbAsyncDriver(Package):
"""The MongoDB Asynchronous Java Driver."""
homepage = "http://www.allanbank.com/mongodb-async-driver/"
url = "https://github.com/allanbank/mongodb-async-driver/archive/rel_2.0.1.tar.gz"
version('2.0.1', sha256='87f22c16f3744a847eeb8276ed132bf235f025db0b7dee0d0f239d5cdcab720c')
version('2.0.0', sha256='8cffe4c960d42550be30c27d66f5de6df4edb5ee7a094c50519986dc5cbcf9b8')
depends_on('maven', type='build')
depends_on('java@8', type=('build', 'run'))
def install(self, spec, prefix):
mvn = which('mvn')
mvn('package', '-DskipTests')
install_tree('.', prefix)