summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/ruby-narray/package.py
blob: 52f1db091fc4cab1b2536e3d347e792c789d181a (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
# 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 RubyNarray(Package):
    """Numo::NArray is an Numerical N-dimensional Array class for fast
       processing and easy manipulation of multi-dimensional numerical data,
       similar to numpy.ndaray."""

    homepage = "https://rubygems.org/gems/narray"
    git      = "https://github.com/ruby-numo/narray.git"

    version('0.9.0.9', commit='9cadbbccf1e01b6d1bc143c19d598cad1c420869')

    extends('ruby')

    def install(self, spec, prefix):
        gem('build', 'numo-narray.gemspec')
        gem('install', 'numo-narray-{0}.gem'.format(self.version))