summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarmac <xiaojun2@hisilicon.com>2021-03-20 22:16:09 +0800
committerGitHub <noreply@github.com>2021-03-20 15:16:09 +0100
commit46469786d882b9e8bdf6ad93226d36007319e4dc (patch)
tree899b4b91178b285bae02c099b2ffc39ad5f51f7b
parent17e51b2989887bb618224a915c4d1479fcde52e9 (diff)
downloadspack-46469786d882b9e8bdf6ad93226d36007319e4dc.tar.gz
spack-46469786d882b9e8bdf6ad93226d36007319e4dc.tar.bz2
spack-46469786d882b9e8bdf6ad93226d36007319e4dc.tar.xz
spack-46469786d882b9e8bdf6ad93226d36007319e4dc.zip
libtorrent: add new package at v0.13.8 (#22130)
-rw-r--r--var/spack/repos/builtin/packages/libtorrent/package.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libtorrent/package.py b/var/spack/repos/builtin/packages/libtorrent/package.py
new file mode 100644
index 0000000000..469ff834cc
--- /dev/null
+++ b/var/spack/repos/builtin/packages/libtorrent/package.py
@@ -0,0 +1,20 @@
+# Copyright 2013-2021 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 Libtorrent(AutotoolsPackage):
+ """LibTorrent is a BitTorrent library written in C++,
+ with a focus on high performance and good code."""
+
+ homepage = "https://github.com/rakshasa/libtorrent"
+ url = "https://github.com/rakshasa/libtorrent/archive/v0.13.8.tar.gz"
+
+ version('0.13.8', sha256='0f6c2e7ffd3a1723ab47fdac785ec40f85c0a5b5a42c1d002272205b988be722')
+
+ def autoreconf(self, spec, prefix):
+ bash = which('bash')
+ bash('./autogen.sh')