Update emacs: current release, use our x11 bits (#2052)

* Update emacs: current release, use our x11 bits

Add checksum for 25.1 release.

Rework the X support:

- use Spack's X11 bits
- add ability to specify an X toolkit (gtk or athena, default is gtk).
- change toolkit names to align with Emacs' configure usage.

* PEP8 cleanups.

* glib dependency should not be type=build

I'd like to blame that on a typo, but it's a few too many characters
for that to be viable.  I'm not sure what I was thinking.

* Pass X variant down: emacs->pango->cairo

* X variants default to False, warn on bad toolkit

Change the X variants for emacs, pango and cairo to default to False.

Check that the toolkit is a valid choice and give a reasonable error if
not.

* Fix flake8 issue, reword warning text

* gtkplus needs to use +X variant for pango to work

In order for a useful variant of pango to be built into the spec I
needed to make the dependency on gtkplus explicitly specify it's X
variant.  The X variant is the default, but that wasn't enough to make
it happy.  Since it's happiness is the most imporant thing in the
world, this change! :)
This commit is contained in:
George Hartzell
2016-12-08 09:43:29 -08:00
committed by becker33
parent ed8060abe0
commit 65df417444
4 changed files with 21 additions and 12 deletions

View File

@@ -38,9 +38,13 @@ class Pango(Package):
version('1.36.8', '217a9a753006275215fa9fa127760ece')
version('1.40.1', '6fc88c6529890d6c8e03074d57a3eceb')
variant('X', default=False, description="Enable an X toolkit")
depends_on("pkg-config", type="build")
depends_on("harfbuzz")
depends_on("cairo")
depends_on("cairo~X", when='~X')
depends_on("cairo+X", when='+X')
depends_on("glib")
def install(self, spec, prefix):