Convert gettext to AutotoolsPackage (#3510)
This commit is contained in:
parent
9b5f5fccf0
commit
07397e8ef7
@ -25,8 +25,9 @@
|
|||||||
from spack import *
|
from spack import *
|
||||||
|
|
||||||
|
|
||||||
class Gettext(Package):
|
class Gettext(AutotoolsPackage):
|
||||||
"""GNU internationalization (i18n) and localization (l10n) library."""
|
"""GNU internationalization (i18n) and localization (l10n) library."""
|
||||||
|
|
||||||
homepage = "https://www.gnu.org/software/gettext/"
|
homepage = "https://www.gnu.org/software/gettext/"
|
||||||
url = "http://ftpmirror.gnu.org/gettext/gettext-0.19.7.tar.xz"
|
url = "http://ftpmirror.gnu.org/gettext/gettext-0.19.7.tar.xz"
|
||||||
|
|
||||||
@ -60,9 +61,10 @@ class Gettext(Package):
|
|||||||
depends_on('libunistring', when='+libunistring')
|
depends_on('libunistring', when='+libunistring')
|
||||||
# depends_on('cvs')
|
# depends_on('cvs')
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def configure_args(self):
|
||||||
|
spec = self.spec
|
||||||
|
|
||||||
config_args = [
|
config_args = [
|
||||||
'--prefix={0}'.format(prefix),
|
|
||||||
'--disable-java',
|
'--disable-java',
|
||||||
'--disable-csharp',
|
'--disable-csharp',
|
||||||
'--with-included-glib',
|
'--with-included-glib',
|
||||||
@ -97,7 +99,4 @@ def install(self, spec, prefix):
|
|||||||
else:
|
else:
|
||||||
config_args.append('--with-included-libunistring')
|
config_args.append('--with-included-libunistring')
|
||||||
|
|
||||||
configure(*config_args)
|
return config_args
|
||||||
|
|
||||||
make()
|
|
||||||
make("install")
|
|
||||||
|
Loading…
Reference in New Issue
Block a user