diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/harfbuzz/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/harfbuzz/package.py | 50 |
1 files changed, 42 insertions, 8 deletions
diff --git a/var/spack/repos/builtin/packages/harfbuzz/package.py b/var/spack/repos/builtin/packages/harfbuzz/package.py index e27727be93..7ccc6aa645 100644 --- a/var/spack/repos/builtin/packages/harfbuzz/package.py +++ b/var/spack/repos/builtin/packages/harfbuzz/package.py @@ -6,19 +6,26 @@ from spack import * -class Harfbuzz(AutotoolsPackage): +class Harfbuzz(MesonPackage): """The Harfbuzz package contains an OpenType text shaping engine.""" homepage = "https://github.com/harfbuzz/harfbuzz" url = "https://github.com/harfbuzz/harfbuzz/releases/download/2.9.1/harfbuzz-2.9.1.tar.xz" git = "https://github.com/harfbuzz/harfbuzz.git" - version('2.9.1', sha256='0edcc980f526a338452180e701d6aba6323aef457b6686976a7d17ccbddc51cf') - version('2.6.8', sha256='6648a571a27f186e47094121f0095e1b809e918b3037c630c7f38ffad86e3035') - version('2.3.1', sha256='f205699d5b91374008d6f8e36c59e419ae2d9a7bb8c5d9f34041b9a5abcae468') - version('2.1.3', sha256='613264460bb6814c3894e3953225c5357402915853a652d40b4230ce5faf0bee') - version('1.9.0', sha256='11eca62bf0ac549b8d6be55f4e130946399939cdfe7a562fdaee711190248b00') - version('1.4.6', sha256='21a78b81cd20cbffdb04b59ac7edfb410e42141869f637ae1d6778e74928d293') - version('0.9.37', sha256='255f3b3842dead16863d1d0c216643d97b80bfa087aaa8fc5926da24ac120207') + version('4.2.1', sha256='bd17916513829aeff961359a5ccebba6de2f4bf37a91faee3ac29c120e3d7ee1') + version('4.1.0', sha256='f7984ff4241d4d135f318a93aa902d910a170a8265b7eaf93b5d9a504eed40c8') + version('4.0.1', sha256='98f68777272db6cd7a3d5152bac75083cd52a26176d87bc04c8b3929d33bce49') + version('3.4.0', sha256='7158a87c4db82521fc506711f0c8864115f0292d95f7136c8812c11811cdf952') + version('3.3.2', sha256='1c13bca136c4f66658059853e2c1253f34c88f4b5c5aba6050aba7b5e0ce2503') + version('3.2.0', sha256='0ada50a1c199bb6f70843ab893c55867743a443b84d087d54df08ad883ebc2cd') + version('3.1.2', sha256='4056b1541dd8bbd8ec29207fe30e568805c0705515632d7fec53a94399bc7945') + version('2.9.1', sha256='0edcc980f526a338452180e701d6aba6323aef457b6686976a7d17ccbddc51cf', deprecated=True) + version('2.6.8', sha256='6648a571a27f186e47094121f0095e1b809e918b3037c630c7f38ffad86e3035', deprecated=True) + version('2.3.1', sha256='f205699d5b91374008d6f8e36c59e419ae2d9a7bb8c5d9f34041b9a5abcae468', deprecated=True) + version('2.1.3', sha256='613264460bb6814c3894e3953225c5357402915853a652d40b4230ce5faf0bee', deprecated=True) + version('1.9.0', sha256='11eca62bf0ac549b8d6be55f4e130946399939cdfe7a562fdaee711190248b00', deprecated=True) + version('1.4.6', sha256='21a78b81cd20cbffdb04b59ac7edfb410e42141869f637ae1d6778e74928d293', deprecated=True) + version('0.9.37', sha256='255f3b3842dead16863d1d0c216643d97b80bfa087aaa8fc5926da24ac120207', deprecated=True) variant('graphite2', default=False, description='enable support for graphite2 font engine') @@ -51,8 +58,20 @@ class Harfbuzz(AutotoolsPackage): flags.append('-std=gnu99') return (None, None, flags) + def meson_args(self): + args = [] + + # disable building of gtk-doc files following #9885 and #9771 + args.append('-Ddocs=disabled') + args.append('-Dgraphite2=' + + ('enabled' if self.spec.satisfies('+graphite2') else 'disabled')) + + return args + + @when('@:2.9') def configure_args(self): args = [] + # disable building of gtk-doc files following #9771 args.append('--disable-gtk-doc-html') true = which('true') @@ -66,3 +85,18 @@ class Harfbuzz(AutotoolsPackage): def patch(self): change_sed_delimiter('@', ';', 'src/Makefile.in') + + @when('@:2.9') + def meson(self, spec, prefix): + """Run the AutotoolsPackage configure phase""" + configure('--prefix=' + prefix, *self.configure_args()) + + @when('@:2.9') + def build(self, spec, prefix): + """Run the AutotoolsPackage build phase""" + make() + + @when('@:2.9') + def install(self, spec, prefix): + """Run the AutotoolsPackage install phase""" + make('install') |