blob: 47dfc425fac1440152385dc405417683ce0675b5 (
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
|
# Copyright 2013-2019 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
config_args = ['--with-tcl={0}'.format(spec['tcl'].prefix.lib),
'--with-tk={0}'.format(spec['tk'].prefix.lib),
'--exec-prefix={0}'.format(spec.prefix)]
return config_args
def install(self, spec, prefix):
make('install')
with working_dir(self.prefix.lib):
symlink('Tix{0}/libTix{0}.{1}'.format(self.version, dso_suffix),
'libtix.{0}'.format(dso_suffix))
|