Skip to content

Commit

Permalink
Merge a842c32 into bc038eb
Browse files Browse the repository at this point in the history
  • Loading branch information
lee218llnl committed Jun 10, 2016
2 parents bc038eb + a842c32 commit 3a59c8a
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 4 deletions.
43 changes: 43 additions & 0 deletions var/spack/repos/builtin/packages/libxau/package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
##############################################################################
# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-647188
#
# For details, see https://github.com/llnl/spack
# Please also see the LICENSE file for our notice and the LGPL.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License (as
# published by the Free Software Foundation) version 2.1, February 1999.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
# conditions of the GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##############################################################################
from spack import *


class Libxau(Package):
"""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"
url = "http://ftp.x.org/pub/individual/lib/libXau-1.0.8.tar.bz2"

depends_on("xproto")
version('1.0.8', '685f8abbffa6d145c0f930f00703b21b')

def install(self, spec, prefix):
configure("--prefix=%s" % prefix)

make()
make("install")
11 changes: 7 additions & 4 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,12 +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('xau') # Ubuntu: apt-get install libxau-dev
# depends_on('pthread') # Ubuntu: apt-get install libpthread-stubs0-dev
depends_on('libxau')

def patch(self):
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
42 changes: 42 additions & 0 deletions var/spack/repos/builtin/packages/xproto/package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
##############################################################################
# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-647188
#
# For details, see https://github.com/llnl/spack
# Please also see the LICENSE file for our notice and the LGPL.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License (as
# published by the Free Software Foundation) version 2.1, February 1999.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
# conditions of the GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##############################################################################
from spack import *


class Xproto(Package):
"""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."""

homepage = "http://www.linuxfromscratch.org/blfs/view/cvs/index.html"
url = "https://www.x.org/archive/individual/proto/xproto-7.0.29.tar.gz" # NOQA: ignore=E501

version('7.0.29', '16a78dd2c5ad73011105c96235f6a0af')

def install(self, spec, prefix):
configure("--prefix=%s" % prefix)

make()
make("install")

0 comments on commit 3a59c8a

Please sign in to comment.