summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/pacvim/package.py
blob: 1a2fa456371772b9300572a23d9fc92c7cc9be8a (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
24
25
# 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 Pacvim(MakefilePackage):
    """Pacvim is a command-line-based game based off of Pacman.
       The main purpose of this software is to familiarize individuals
       with Vim."""

    homepage = "https://github.com/jmoon018/PacVim"
    url      = "https://github.com/jmoon018/PacVim/archive/v1.1.1.tar.gz"

    version('1.1.1', sha256='c869c5450fbafdfe8ba8a8a9bba3718775926f276f0552052dcfa090d21acb28')

    depends_on('ncurses')

    def edit(self, stage, prefix):
        makefile = FileFilter('Makefile')

        makefile.filter(r'PREFIX = /usr/local',
                        'PREFIX={0}'.format(self.prefix))