summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/libaio/package.py
blob: 56872455cd79cf5a094e2d4ce9575590b6b4bf3c (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-2018 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 Libaio(Package):
    """This is the linux native Asynchronous I/O interface library."""

    homepage = "http://lse.sourceforge.net/io/aio.html"
    url      = "https://debian.inf.tu-dresden.de/debian/pool/main/liba/libaio/libaio_0.3.110.orig.tar.gz"

    version('0.3.110', '2a35602e43778383e2f4907a4ca39ab8')

    def install(self, spec, prefix):
        # libaio is not supported on OS X
        if spec.satisfies('arch=darwin-x86_64'):
            # create a dummy directory
            mkdir(prefix.lib)
            return

        make('prefix={0}'.format(prefix), 'install')