summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/elfutils/package.py
blob: 926d23458468b7ceea4c1c7d1b22ccbadcdecde3 (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
from spack import *

class Elfutils(Package):
    """elfutils is a collection of various binary tools such as
    eu-objdump, eu-readelf, and other utilities that allow you to
    inspect and manipulate ELF files. Refer to Table 5.Tools Included
    in elfutils for Red Hat Developer for a complete list of binary
    tools that are distributed with the Red Hat Developer Toolset
    version of elfutils."""

    homepage = "https://fedorahosted.org/elfutils/"

    version('0.163',
            git='git://git.fedorahosted.org/git/elfutils.git',
            tag='elfutils-0.163')

    provides('elf')

    def install(self, spec, prefix):
        autoreconf = which('autoreconf')
        autoreconf('-if')

        configure('--prefix=%s' % prefix, '--enable-maintainer-mode')
        make()
        make("install")