From a00a09a234886d3bb4e53f873579a56aca11d3ba Mon Sep 17 00:00:00 2001 From: stefanosoffia Date: Thu, 4 Jan 2018 21:45:25 +0100 Subject: Added i3 and its dependencies. (#6805) --- var/spack/repos/builtin/packages/i3/package.py | 53 ++++++++++++++++++++++ var/spack/repos/builtin/packages/libev/package.py | 42 +++++++++++++++++ .../repos/builtin/packages/libxkbcommon/package.py | 51 +++++++++++++++++++++ .../packages/startup-notification/package.py | 39 ++++++++++++++++ .../repos/builtin/packages/xcb-util-xrm/package.py | 48 ++++++++++++++++++++ 5 files changed, 233 insertions(+) create mode 100644 var/spack/repos/builtin/packages/i3/package.py create mode 100644 var/spack/repos/builtin/packages/libev/package.py create mode 100644 var/spack/repos/builtin/packages/libxkbcommon/package.py create mode 100644 var/spack/repos/builtin/packages/startup-notification/package.py create mode 100644 var/spack/repos/builtin/packages/xcb-util-xrm/package.py (limited to 'var') diff --git a/var/spack/repos/builtin/packages/i3/package.py b/var/spack/repos/builtin/packages/i3/package.py new file mode 100644 index 0000000000..44dbbf7111 --- /dev/null +++ b/var/spack/repos/builtin/packages/i3/package.py @@ -0,0 +1,53 @@ +############################################################################## +# Copyright (c) 2013-2017, 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/spack/spack +# Please also see the NOTICE and LICENSE files 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 I3(AutotoolsPackage): + """i3, improved tiling wm. i3 is a tiling window manager, completely + written from scratch. The target platforms are GNU/Linux and BSD operating + systems, our code is Free and Open Source Software (FOSS) under the BSD + license. i3 is primarily targeted at advanced users and developers.""" + + homepage = "https://i3wm.org/" + url = "https://github.com/i3/i3/archive/4.14.1.tar.gz" + + version('4.14.1', 'bdbb6d7bb5a647c8b7b53ed10de84cc5') + + depends_on('autoconf', type='build') + depends_on('automake', type='build') + depends_on('libtool', type='build') + depends_on('m4', type='build') + + depends_on('libev') + depends_on('startup-notification') + depends_on('xcb-util-cursor') + depends_on('xcb-util-keysyms') + depends_on('xcb-util-wm') + depends_on('xcb-util-xrm') + depends_on('libxkbcommon') + depends_on('yajl') + depends_on('cairo+X') + depends_on('pango+X') diff --git a/var/spack/repos/builtin/packages/libev/package.py b/var/spack/repos/builtin/packages/libev/package.py new file mode 100644 index 0000000000..aea5362ce9 --- /dev/null +++ b/var/spack/repos/builtin/packages/libev/package.py @@ -0,0 +1,42 @@ +############################################################################## +# Copyright (c) 2013-2017, 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/spack/spack +# Please also see the NOTICE and LICENSE files 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 Libev(AutotoolsPackage): + """A full-featured and high-performance event loop that is loosely modelled + after libevent, but without its limitations and bugs.""" + + homepage = "http://software.schmorp.de/pkg/libev.html" + url = "http://dist.schmorp.de/libev/libev-4.24.tar.gz" + list_url = "http://dist.schmorp.de/libev/Attic/" + + version('develop', git='https://github.com/enki/libev') + version('4.24', '94459a5a22db041dec6f98424d6efe54') + + depends_on('autoconf', type='build', when='@develop') + depends_on('automake', type='build', when='@develop') + depends_on('libtool', type='build', when='@develop') + depends_on('m4', type='build', when='@develop') diff --git a/var/spack/repos/builtin/packages/libxkbcommon/package.py b/var/spack/repos/builtin/packages/libxkbcommon/package.py new file mode 100644 index 0000000000..d51f079381 --- /dev/null +++ b/var/spack/repos/builtin/packages/libxkbcommon/package.py @@ -0,0 +1,51 @@ +############################################################################## +# Copyright (c) 2013-2017, 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/spack/spack +# Please also see the NOTICE and LICENSE files 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 Libxkbcommon(AutotoolsPackage): + """xkbcommon is a library to handle keyboard descriptions, including + loading them from disk, parsing them and handling their state. It's mainly + meant for client toolkits, window systems, and other system + applications.""" + + homepage = "https://xkbcommon.org/" + url = "https://github.com/xkbcommon/libxkbcommon/archive/xkbcommon-0.8.0.tar.gz" + + version('0.8.0', '0d9738fb2ed2dcc6e2c6920d94e135ce') + + depends_on('autoconf', type='build') + depends_on('automake', type='build') + depends_on('libtool', type='build') + depends_on('m4', type='build') + depends_on('bison', type='build') + depends_on('xkbdata') + + def configure_args(self): + spec = self.spec + args = [] + args.append('--with-xkb-config-root={0}' + .format(spec['xkbdata'].prefix)) + return args diff --git a/var/spack/repos/builtin/packages/startup-notification/package.py b/var/spack/repos/builtin/packages/startup-notification/package.py new file mode 100644 index 0000000000..46d677c3fe --- /dev/null +++ b/var/spack/repos/builtin/packages/startup-notification/package.py @@ -0,0 +1,39 @@ +############################################################################## +# Copyright (c) 2013-2017, 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/spack/spack +# Please also see the NOTICE and LICENSE files 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 StartupNotification(AutotoolsPackage): + """startup-notification contains a reference implementation of the + freedesktop startup notification protocol.""" + + homepage = "https://www.freedesktop.org/wiki/Software/startup-notification/" + url = "http://www.freedesktop.org/software/startup-notification/releases/startup-notification-0.12.tar.gz" + + version('0.12', '2cd77326d4dcaed9a5a23a1232fb38e9') + + depends_on('libx11') + depends_on('libxcb') + depends_on('xcb-util') diff --git a/var/spack/repos/builtin/packages/xcb-util-xrm/package.py b/var/spack/repos/builtin/packages/xcb-util-xrm/package.py new file mode 100644 index 0000000000..e7e376f79d --- /dev/null +++ b/var/spack/repos/builtin/packages/xcb-util-xrm/package.py @@ -0,0 +1,48 @@ +############################################################################## +# Copyright (c) 2013-2017, 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/spack/spack +# Please also see the NOTICE and LICENSE files 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 XcbUtilXrm(AutotoolsPackage): + """XCB util-xrm module provides the 'xrm' library, i.e. utility functions + for the X resource manager.""" + + homepage = "https://github.com/Airblader/xcb-util-xrm" + url = "https://github.com/Airblader/xcb-util-xrm/archive/v1.2.tar.gz" + + # This GitHub project includes some git submodules, which must be fetched + # in order to build it. + version('1.2', + git='https://github.com/Airblader/xcb-util-xrm', + tag='v1.2', + submodules=True) + + depends_on('autoconf', type='build') + depends_on('automake', type='build') + depends_on('libtool', type='build') + depends_on('m4', type='build') + depends_on('pkgconfig', type='build') + + depends_on('libxcb@1.4:') -- cgit v1.2.3-70-g09d2