diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2022-04-08 22:02:01 +0200 |
---|---|---|
committer | Harmen Stoppels <harmenstoppels@gmail.com> | 2022-04-11 11:42:45 +0200 |
commit | 9740c3b300ec6d3055433a4b552cb1a12d2aff77 (patch) | |
tree | 19a065e032e716c889299e61a8de8b1232594c8f /var | |
parent | b9d12df7a99c31bb9324e6f437ce5f6ff51d40c7 (diff) | |
download | spack-9740c3b300ec6d3055433a4b552cb1a12d2aff77.tar.gz spack-9740c3b300ec6d3055433a4b552cb1a12d2aff77.tar.bz2 spack-9740c3b300ec6d3055433a4b552cb1a12d2aff77.tar.xz spack-9740c3b300ec6d3055433a4b552cb1a12d2aff77.zip |
mg: remove custom phases, turn it into a Makefile package
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/mg/package.py | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/var/spack/repos/builtin/packages/mg/package.py b/var/spack/repos/builtin/packages/mg/package.py index 535d7302ba..ef03fc3605 100644 --- a/var/spack/repos/builtin/packages/mg/package.py +++ b/var/spack/repos/builtin/packages/mg/package.py @@ -6,7 +6,7 @@ from spack import * -class Mg(Package): +class Mg(MakefilePackage): """Mg is intended to be a small, fast, and portable editor for people who can't (or don't want to) run emacs for one reason or another, or are not familiar with the vi editor. It is compatible with @@ -20,18 +20,10 @@ class Mg(Package): depends_on('ncurses') - phases = ['configure', 'build', 'install'] - - def configure(self, spec, prefix): + def edit(self, spec, prefix): configure = Executable('./configure') args = [ '--mandir={0}'.format(self.prefix.man), '--prefix={0}'.format(self.prefix), ] configure(*args) - - def build(self, spec, prefix): - make() - - def install(self, spec, prefix): - make('install') |