diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/ruby-svn2git/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/ruby-svn2git/package.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/ruby-svn2git/package.py b/var/spack/repos/builtin/packages/ruby-svn2git/package.py new file mode 100644 index 0000000000..6373247051 --- /dev/null +++ b/var/spack/repos/builtin/packages/ruby-svn2git/package.py @@ -0,0 +1,29 @@ +# 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 RubySvn2git(Package): + """svn2git is a tiny utility for migrating projects from Subversion to Git + while keeping the trunk, branches and tags where they should be. It uses + git-svn to clone an svn repository and does some clean-up to make sure + branches and tags are imported in a meaningful way, and that the code + checked into master ends up being what's currently in your svn trunk rather + than whichever svn branch your last commit was in.""" + + homepage = "https://github.com/nirvdrum/svn2git/" + url = "https://github.com/nirvdrum/svn2git/archive/v2.4.0.tar.gz" + + version('2.4.0', 'f19ac6eb0634aa1fed31a1e40a2aeaa2') + + depends_on('git') + depends_on('subversion+perl') + + extends('ruby') + + def install(self, spec, prefix): + gem('build', 'svn2git.gemspec') + gem('install', 'svn2git-{0}.gem'.format(self.version)) |