numdiff: fix dependency type on macOS (#2538)

This commit is contained in:
Denis Davydov 2016-12-11 20:38:40 +01:00 committed by Todd Gamblin
parent 42dbd4f855
commit 6475937fc2

View File

@ -26,7 +26,7 @@
import sys import sys
class Numdiff(Package): class Numdiff(AutotoolsPackage):
"""Numdiff is a little program that can be used to compare putatively """Numdiff is a little program that can be used to compare putatively
similar files line by line and field by field, ignoring small numeric similar files line by line and field by field, ignoring small numeric
differences or/and different numeric formats.""" differences or/and different numeric formats."""
@ -36,10 +36,4 @@ class Numdiff(Package):
version('5.8.1', 'a295eb391f6cb1578209fc6b4f9d994e') version('5.8.1', 'a295eb391f6cb1578209fc6b4f9d994e')
depends_on('gettext', when=sys.platform == 'darwin', type='build') depends_on('gettext', when=sys.platform == 'darwin')
def install(self, spec, prefix):
options = ['--prefix=%s' % prefix]
configure(*options)
make()
make('install')