summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/ruby-gnuplot/package.py
blob: a947c001aa227db6591adac06ec02aadce49f7bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 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 RubyGnuplot(Package):
    """Utility library to aid in interacting with gnuplot from ruby"""

    homepage = "https://rubygems.org/gems/gnuplot/versions/2.6.2"
    url      = "https://rubygems.org/downloads/gnuplot-2.6.2.gem"

    version('2.6.2', 'ff36a37cf71b9cd6273fcd14bbfd82df', expand=False)

    depends_on('gnuplot+X')

    extends('ruby')

    def install(self, spec, prefix):
        gem('install', 'gnuplot-{0}.gem'.format(self.version))