blob: c3d3651ee07d381924710f1eab00045dbecd4b6a (
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
29
30
31
32
33
|
# 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 Tix(AutotoolsPackage):
"""Tix is a powerful high-level widget set that expands the capabilities
of your Tk/Tcl and Python applications."""
homepage = "https://sourceforge.net/projects/tix/"
url = "https://sourceforge.net/projects/tix/files/tix/8.4.3/Tix8.4.3-src.tar.gz/download"
version('8.4.3', sha256='562f040ff7657e10b5cffc2c41935f1a53c6402eb3d5f3189113d734fd6c03cb')
extends('tcl')
depends_on('tk@:8.5.99')
depends_on('tcl@:8.5.99')
def configure_args(self):
spec = self.spec
args = [
'--with-tcl={0}'.format(spec['tcl'].libs.directories[0]),
'--with-tk={0}'.format(spec['tk'].libs.directories[0]),
'--exec-prefix={0}'.format(self.prefix),
]
return args
@property
def libs(self):
return find_libraries(['libTix{0}'.format(self.version)],
root=self.prefix, recursive=True)
|