summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/qwtpolar/package.py
blob: 7e6fa96220a21f1f1eadb407387eba9716aad3e4 (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
25
26
27
28
# 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 Qwtpolar(QMakePackage):
    """The QwtPolar library contains classes for displaying values on a polar
    coordinate system.
    """

    homepage = "https://qwtpolar.sourceforge.io"
    url = "https://sourceforge.net/projects/qwtpolar/files/qwtpolar/1.1.1/qwtpolar-1.1.1.tar.bz2"

    version("1.1.1", sha256="6168baa9dbc8d527ae1ebf2631313291a1d545da268a05f4caa52ceadbe8b295")

    depends_on("qt@4.4:")
    depends_on("qwt@6.1:")

    def patch(self):
        # Modify hardcoded prefix
        filter_file(
            r"/usr/local/qwtpolar-\$\$QWT_POLAR_VERSION.*", self.prefix, "qwtpolarconfig.pri"
        )
        # Don't build examples as they're causing qmake to throw errors
        filter_file(r"QwtPolarExamples", "", "qwtpolarconfig.pri")