summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/qtkeychain/package.py
blob: 209780943e96771dd4e3468a907ab1f82b20c0b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Copyright 2013-2022 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 Qtkeychain(CMakePackage):
    """Platform-independent Qt API for storing passwords securely."""

    homepage = "https://github.com/frankosterfeld/qtkeychain"
    url      = "https://github.com/frankosterfeld/qtkeychain/archive/v0.9.1.tar.gz"

    version('0.9.1', sha256='9c2762d9d0759a65cdb80106d547db83c6e9fdea66f1973c6e9014f867c6f28e')

    depends_on('qt+dbus')
    depends_on('libsecret')

    def cmake_args(self):
        args = []
        if self.spec['qt'].version.up_to(1) == Version(4):
            args.append('-DBUILD_WITH_QT4=ON')
        return args