qbank: remove custom phases

This commit is contained in:
Massimiliano Culpo 2022-04-11 17:19:33 +02:00
parent fd724fb38d
commit d7a6cb3e53

View File

@ -34,8 +34,6 @@ class Qbank(Package):
depends_on('perl@5.6:5.16', type=('build', 'run')) depends_on('perl@5.6:5.16', type=('build', 'run'))
depends_on('perl-dbi@1.00:', type=('build', 'run')) depends_on('perl-dbi@1.00:', type=('build', 'run'))
phases = ['configure', 'build', 'install']
def configure_args(self): def configure_args(self):
config_args = [ config_args = [
'--prefix', self.prefix, '--prefix', self.prefix,
@ -44,17 +42,14 @@ def configure_args(self):
return config_args return config_args
def configure(self, spec, prefix): def install(self, spec, prefix):
perl = which('perl') perl = which('perl')
perl('configure', *self.configure_args()) perl('configure', *self.configure_args())
def build(self, spec, prefix):
make() make()
if '+doc' in spec: if '+doc' in spec:
make('docs') make('docs')
def install(self, spec, prefix):
make('install') make('install')
if '+doc' in spec: if '+doc' in spec: