summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/asciidoctor/package.py
blob: 951d833f1a9620f569bb9ce36a40c49e4f082e1a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# 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 Asciidoctor(Package):
    """Modern asciidoc tool based on ruby"""

    homepage = "https://asciidoctor.org/"
    url      = "https://rubygems.org/downloads/asciidoctor-1.5.8.gem"

    version('1.5.8', sha256='9deaa93eacadda48671e18395b992eafba35d08f25ddbe28d25bb275831a8d62', expand=False)

    extends('ruby')

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