From 9740c3b300ec6d3055433a4b552cb1a12d2aff77 Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Fri, 8 Apr 2022 22:02:01 +0200 Subject: mg: remove custom phases, turn it into a Makefile package --- var/spack/repos/builtin/packages/mg/package.py | 12 ++---------- 1 file 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') -- cgit v1.2.3-70-g09d2