diff options
author | darmac <xiaojun2@hisilicon.com> | 2020-05-31 10:45:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-30 21:45:59 -0500 |
commit | 2fdb6b5e44026287ad2d78adce9c3cb771a3c642 (patch) | |
tree | c214cc313df292a8d5c4e8f441018850059ca389 | |
parent | e2fa74c533b49cb3479d4c75d5b68f6993e33082 (diff) | |
download | spack-2fdb6b5e44026287ad2d78adce9c3cb771a3c642.tar.gz spack-2fdb6b5e44026287ad2d78adce9c3cb771a3c642.tar.bz2 spack-2fdb6b5e44026287ad2d78adce9c3cb771a3c642.tar.xz spack-2fdb6b5e44026287ad2d78adce9c3cb771a3c642.zip |
Add new package: canal (#16790)
-rw-r--r-- | var/spack/repos/builtin/packages/canal/package.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/canal/package.py b/var/spack/repos/builtin/packages/canal/package.py new file mode 100644 index 0000000000..57df9ea7f2 --- /dev/null +++ b/var/spack/repos/builtin/packages/canal/package.py @@ -0,0 +1,25 @@ +# 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 Canal(Package): + """Alibaba MySQL binlog incremental subscription & consumer components.""" + + homepage = "https://github.com/alibaba/canal/wiki" + url = "https://github.com/alibaba/canal/archive/canal-1.1.4.tar.gz" + + version('1.1.4', sha256='740e0adac56d7f281cba21eca173eef3e8d42aa3e0fb49709f92cb6a1451dfbc') + version('1.1.3', sha256='3fe75ca5eb5cb97eb35818426c1427542ccddb0de052cf154e948ef321822cbc') + version('1.1.2', sha256='097190f952bdf09b835ed68966f5a98fa8308322a6aab11c1bfd16cec1800cf2') + + depends_on('maven', type='build') + depends_on('java', type=('build', 'run')) + + def install(self, spec, prefix): + mvn = which('mvn') + mvn('install', '-DskipTests') + install_tree('.', prefix) |