spack/var/spack/repos/builtin/packages/libtorrent/package.py
Harmen Stoppels 7b9f8abce5
Add depends_on([c,cxx,fortran]) (#45217)
Add language dependencies `c`, `cxx`, and `fortran`.

These `depends_on` statements are auto-generated based on file extensions found
in source tarballs/zipfiles.

The `# generated` comment can be removed by package maintainers after
validating correctness.
2024-07-17 16:07:43 +02:00

25 lines
788 B
Python

# Copyright 2013-2024 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.package 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"
license("GPL-2.0-or-later")
version("0.13.8", sha256="0f6c2e7ffd3a1723ab47fdac785ec40f85c0a5b5a42c1d002272205b988be722")
depends_on("cxx", type="build") # generated
def autoreconf(self, spec, prefix):
bash = which("bash")
bash("./autogen.sh")