Skip to content

Commit

Permalink
flake8 fixes for libxau, libxcb, and xproto
Browse files Browse the repository at this point in the history
  • Loading branch information
lee218llnl committed Jun 10, 2016
1 parent c74cbed commit a842c32
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
5 changes: 3 additions & 2 deletions var/spack/repos/builtin/packages/libxau/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@
##############################################################################
from spack import *


class Libxau(Package):
"""The libXau package contains a library implementing the X11
Authorization Protocol. This is useful for restricting client
"""The libXau package contains a library implementing the X11
Authorization Protocol. This is useful for restricting client
access to the display."""

homepage = "http://www.linuxfromscratch.org/blfs/view/7.9/index.html"
Expand Down
12 changes: 7 additions & 5 deletions var/spack/repos/builtin/packages/libxcb/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
##############################################################################
from spack import *


class Libxcb(Package):
"""The X protocol C-language Binding (XCB) is a replacement
for Xlib featuring a small footprint, latency hiding, direct
Expand All @@ -39,13 +40,14 @@ class Libxcb(Package):
depends_on("xcb-proto")
depends_on("pkg-config")

# depends_on('pthread') # Ubuntu: apt-get install libpthread-stubs0-dev
depends_on('libxau') # Ubuntu: apt-get install libxau-dev
# depends_on('pthread') # Ubuntu: apt-get install libpthread-stubs0-dev
depends_on('libxau')

def patch(self):
filter_file('NEEDED="pthread-stubs xau >= 0.99.2"', 'NEEDED="xau >= 0.99.2"', 'configure')
filter_file('typedef struct xcb_auth_info_t {', 'typedef struct {', 'src/xcb.h')

filter_file('NEEDED="pthread-stubs xau >= 0.99.2"',
'NEEDED="xau >= 0.99.2"', 'configure')
filter_file('typedef struct xcb_auth_info_t {',
'typedef struct {', 'src/xcb.h')

def install(self, spec, prefix):
configure("--prefix=%s" % prefix)
Expand Down
3 changes: 2 additions & 1 deletion var/spack/repos/builtin/packages/xproto/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@
##############################################################################
from spack import *


class Xproto(Package):
"""The Xorg protocol headers provide the header files required to
"""The Xorg protocol headers provide the header files required to
build the system, and to allow other applications to build against
the installed X Window system."""

Expand Down

0 comments on commit a842c32

Please sign in to comment.