Various updates to the intltool package (#3545)
This commit is contained in:
parent
df777bf077
commit
0b4c39a9e0
@ -25,23 +25,36 @@
|
|||||||
from spack import *
|
from spack import *
|
||||||
|
|
||||||
|
|
||||||
class Intltool(Package):
|
class Intltool(AutotoolsPackage):
|
||||||
"""intltool is a set of tools to centralize translation of many different
|
"""intltool is a set of tools to centralize translation of many different
|
||||||
file formats using GNU gettext-compatible PO files.
|
file formats using GNU gettext-compatible PO files."""
|
||||||
|
|
||||||
"""
|
homepage = 'https://freedesktop.org/wiki/Software/intltool/'
|
||||||
homepage = 'https://freedesktop.org/wiki/Software/intltool/'
|
url = 'https://launchpad.net/intltool/trunk/0.51.0/+download/intltool-0.51.0.tar.gz'
|
||||||
|
list_url = 'https://launchpad.net/intltool/+download'
|
||||||
|
|
||||||
version('0.51.0', '12e517cac2b57a0121cda351570f1e63')
|
version('0.51.0', '12e517cac2b57a0121cda351570f1e63')
|
||||||
|
|
||||||
def url_for_version(self, version):
|
# requires XML::Parser perl module
|
||||||
"""Handle version-based custom URLs."""
|
# depends_on('perl@5.8.1:', type='build')
|
||||||
return 'https://launchpad.net/intltool/trunk/%s/+download/intltool-%s.tar.gz' % (version, version)
|
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def check(self):
|
||||||
|
# `make check` passes but causes `make install` to fail
|
||||||
|
pass
|
||||||
|
|
||||||
# configure, build, install:
|
def _make_executable(self, name):
|
||||||
options = ['--prefix=%s' % prefix]
|
return Executable(join_path(self.prefix.bin, name))
|
||||||
configure(*options)
|
|
||||||
make()
|
def setup_dependent_package(self, module, dependent_spec):
|
||||||
make('install')
|
# intltool is very likely to be a build dependency,
|
||||||
|
# so we add the tools it provides to the dependent module
|
||||||
|
executables = [
|
||||||
|
'intltool-extract',
|
||||||
|
'intltoolize',
|
||||||
|
'intltool-merge',
|
||||||
|
'intltool-prepare',
|
||||||
|
'intltool-update'
|
||||||
|
]
|
||||||
|
|
||||||
|
for name in executables:
|
||||||
|
setattr(module, name, self._make_executable(name))
|
||||||
|
Loading…
Reference in New Issue
Block a user