# 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 RubyRonn(Package):
    """Ronn builds manuals. It converts simple, human readable textfiles to
    roff for terminal display, and also to HTML for the web."""

    homepage = "https://rubygems.org/gems/ronn"
    url      = "https://github.com/rtomayko/ronn/archive/0.7.3.tar.gz"

    version('0.7.3', sha256='808aa6668f636ce03abba99c53c2005cef559a5099f6b40bf2c7aad8e273acb4')
    version('0.7.0', sha256='ea14337093de8707aa8a67b97357332fa8a03b0df722bdbf4f027fbe4379b185')

    extends('ruby')

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

# 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 RubyRonn(Package):
    """Ronn builds manuals. It converts simple, human readable textfiles to
    roff for terminal display, and also to HTML for the web."""

    homepage = "https://rubygems.org/gems/ronn"
    url      = "https://github.com/rtomayko/ronn/archive/0.7.3.tar.gz"

    version('0.7.3', sha256='808aa6668f636ce03abba99c53c2005cef559a5099f6b40bf2c7aad8e273acb4')
    version('0.7.0', sha256='ea14337093de8707aa8a67b97357332fa8a03b0df722bdbf4f027fbe4379b185')

    extends('ruby')

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

# 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) Ronn builds manuals. It converts simple, human readable textfiles to     roff for terminal display, and also to HTML for the web.