2015-03-22 13:23:47 +00:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2017-09-23 14:23:15 +00:00
|
|
|
;;; Copyright © 2015, 2016, 2017 Alex Kost <alezost@gmail.com>
|
|
|
|
;;; Copyright © 2016 Danny Milosavljevic <dannym@scratchpost.org>
|
2015-03-22 13:23:47 +00:00
|
|
|
;;;
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
;;; your option) any later version.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix 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
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
;;;
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
(define-module (gnu packages lirc)
|
|
|
|
#:use-module (guix packages)
|
|
|
|
#:use-module (guix download)
|
2016-08-16 21:28:09 +00:00
|
|
|
#:use-module (guix git-download)
|
2015-03-22 13:23:47 +00:00
|
|
|
#:use-module (guix build-system gnu)
|
2016-08-16 21:28:09 +00:00
|
|
|
#:use-module (guix build-system python)
|
2015-03-22 13:23:47 +00:00
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
|
|
|
#:use-module (gnu packages)
|
|
|
|
#:use-module (gnu packages pkg-config)
|
2016-05-28 20:34:20 +00:00
|
|
|
#:use-module (gnu packages libusb)
|
2015-03-22 13:23:47 +00:00
|
|
|
#:use-module (gnu packages linux)
|
2015-10-02 13:53:24 +00:00
|
|
|
#:use-module (gnu packages xml)
|
2015-03-22 13:23:47 +00:00
|
|
|
#:use-module (gnu packages xorg)
|
|
|
|
#:use-module (gnu packages python))
|
|
|
|
|
|
|
|
(define-public lirc
|
|
|
|
(package
|
|
|
|
(name "lirc")
|
2017-09-23 14:23:15 +00:00
|
|
|
(version "0.10.1")
|
2015-03-22 13:23:47 +00:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
2016-07-21 06:35:30 +00:00
|
|
|
(uri (string-append "mirror://sourceforge/lirc/LIRC/" version
|
|
|
|
"/lirc-" version ".tar.bz2"))
|
2015-03-22 13:23:47 +00:00
|
|
|
(sha256
|
|
|
|
(base32
|
2017-09-23 14:23:15 +00:00
|
|
|
"1whlyifvvc7w04ahq07nnk1h18wc8j7c6wnvlb6mszravxh3qxcb"))
|
2018-11-29 13:11:35 +00:00
|
|
|
(patches (search-patches "lirc-localstatedir.patch"
|
|
|
|
"lirc-reproducible-build.patch"))))
|
2015-03-22 13:23:47 +00:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
2017-09-23 14:23:15 +00:00
|
|
|
'(#:configure-flags
|
|
|
|
'("--localstatedir=/var"
|
|
|
|
;; "configure" script fails to enable "devinput" driver as it
|
|
|
|
;; checks for "/dev/input" directory (which is not available),
|
|
|
|
;; so enable it explicitly.
|
|
|
|
"--enable-devinput")
|
2016-05-28 20:34:20 +00:00
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
2017-06-26 14:06:08 +00:00
|
|
|
(add-after 'unpack 'disable-kernel-sniffing
|
|
|
|
(lambda _
|
|
|
|
;; Correct the faulty assumption that systemd support should be
|
|
|
|
;; hard-wired when a build host's /proc/version contains "Ubuntu".
|
|
|
|
(substitute* "configure"
|
|
|
|
(("kernelversion=.*") "kernelversion=irrelevant\n"))
|
|
|
|
#t))
|
2016-05-28 20:34:20 +00:00
|
|
|
(add-after 'unpack 'patch-lirc-make-devinput
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
;; 'lirc-make-devinput' script assumes that linux headers
|
|
|
|
;; are placed in "/usr/...".
|
|
|
|
(let ((headers (assoc-ref inputs "linux-headers")))
|
|
|
|
(substitute* "tools/lirc-make-devinput"
|
|
|
|
(("/usr/include") (string-append headers "/include"))))
|
|
|
|
#t))
|
|
|
|
(add-after 'unpack 'patch-doc/Makefile.in
|
|
|
|
(lambda _
|
|
|
|
;; Lirc wants to install several images and a useless html page
|
|
|
|
;; to "$(localstatedir)/lib/lirc/". This makes 'install' phase
|
|
|
|
;; fail as localstatedir is "/var", so do not install these
|
|
|
|
;; files there (the same images are installed in
|
|
|
|
;; "share/doc/lirc/images/" anyway).
|
|
|
|
(substitute* "doc/Makefile.in"
|
|
|
|
(("^vardocs_DATA =.*") "vardocs_DATA =\n")
|
|
|
|
(("^varimage_DATA =.*") "varimage_DATA =\n"))
|
|
|
|
#t)))))
|
2015-03-22 13:23:47 +00:00
|
|
|
(native-inputs
|
2015-10-02 13:53:24 +00:00
|
|
|
`(("pkg-config" ,pkg-config)
|
|
|
|
("libxslt" ,libxslt)))
|
2015-03-22 13:23:47 +00:00
|
|
|
(inputs
|
|
|
|
`(("libx11" ,libx11)
|
2016-05-28 20:34:20 +00:00
|
|
|
("libusb-compat" ,libusb-compat)
|
|
|
|
("linux-headers" ,linux-libre-headers)
|
2015-03-22 13:23:47 +00:00
|
|
|
("alsa-lib" ,alsa-lib)
|
|
|
|
("python" ,python)))
|
|
|
|
(home-page "http://www.lirc.org/")
|
|
|
|
(synopsis "Linux Infrared Remote Control")
|
|
|
|
(description
|
|
|
|
"LIRC allows computers to send and receive IR signals of many commonly
|
|
|
|
used remote controls. The most important part of LIRC is the 'lircd' daemon
|
|
|
|
that decodes IR signals received by the device drivers. The second daemon
|
|
|
|
program 'lircmd' allows to translate IR signals to mouse movements. The
|
|
|
|
user space applications allow you to control your computer with a remote
|
|
|
|
control: you can send X events to applications, start programs and much more
|
|
|
|
on just one button press.")
|
|
|
|
(license license:gpl2+)))
|
2016-08-16 21:28:09 +00:00
|
|
|
|
|
|
|
(define-public python-lirc
|
2016-08-19 21:41:22 +00:00
|
|
|
(let ((commit "4091fe918f3eed2513dad008828565cace408d2f")
|
|
|
|
(revision "1"))
|
2016-08-16 21:28:09 +00:00
|
|
|
(package
|
2016-08-19 21:41:22 +00:00
|
|
|
(name "python-lirc")
|
|
|
|
(version (string-append "1.2.1-" revision "." (string-take commit 7)))
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/tompreston/python-lirc.git")
|
|
|
|
(commit commit)))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0cm47s5pvijfs3v2k7hmpxv3mvp4n5la0ihnsczk5ym3iq166jil"))
|
|
|
|
(file-name (string-append name "-" version))))
|
|
|
|
(build-system python-build-system)
|
|
|
|
(inputs
|
|
|
|
`(("lirc" ,lirc)))
|
|
|
|
(native-inputs
|
|
|
|
`(("python-cython" ,python-cython)))
|
2016-08-16 21:28:09 +00:00
|
|
|
(arguments
|
2016-08-19 21:41:22 +00:00
|
|
|
`(#:tests? #f ; the only tests that exist are human-interactive
|
2016-08-16 21:28:09 +00:00
|
|
|
#:phases
|
2016-08-19 21:41:22 +00:00
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-before 'build 'build-from-cython-files
|
|
|
|
(lambda _
|
|
|
|
(zero? (system* "make" "py3")))))))
|
|
|
|
(home-page "https://github.com/tompreston/python-lirc")
|
|
|
|
(synopsis "Python bindings for LIRC")
|
|
|
|
(description "@code{lirc} is a Python module which provides LIRC bindings.")
|
|
|
|
(license license:gpl3)
|
|
|
|
(properties `((python2-variant . ,(delay python2-lirc)))))))
|
|
|
|
|
|
|
|
(define-public python2-lirc
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant python-lirc))))
|
|
|
|
(package
|
|
|
|
(inherit base)
|
|
|
|
(arguments
|
|
|
|
`(#:tests? #f ; the only tests that exist are human-interactive
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-before 'build 'build-from-cython-files
|
|
|
|
(lambda _
|
|
|
|
(zero? (system* "make" "py2")))))))
|
|
|
|
(native-inputs
|
gnu: Remove python-setuptools and python2-setuptools from inputs (part 2)
This patch contains the changes where removing setuptools from the inputs
affected some code-lines beside.
* gnu/packages/admin.scm (ansible): Remove all [inputs], [native-inputs] and
[propagated-inputs] where python-setuptools or python2-setuptools are the
sole entries. Remove python-setuptools and python2-setuptools listed on a
line by its own from [inputs], [native-inputs] and [propagated-inputs].
* gnu/packages/backup.scm (duplicity): Likewise.
* gnu/packages/bioinformatics.scm (bamm, python2-pybedtools,
python2-bx-python, python2-dendropy, python-pysam, python2-pysam, clipper,
crossmap, cutadapt, deeptools, grit, idr, python2-warpedlmm,
pbtranscript-tofu, seqmagick): Likewise.
* gnu/packages/docbook.scm (dblatex): Likewise.
* gnu/packages/freedesktop.scm (python-pyxdg, python2-pyxdg): Likewise.
* gnu/packages/lirc.scm (python2-lirc): Likewise.
* gnu/packages/mp3.scm (eyed3): Likewise.
* gnu/packages/nutrition.scm (gourmet): Likewise.
* gnu/packages/openstack.scm (python-hacking, python2-hacking,
python-os-testr, python2-os-testr,
python-stevedore, python2-stevedore,
python-tempest-lib, python2-tempest-lib,
python-oslo.log, python2-oslo.log,
python-keystoneclient, python2-keystoneclient): Likewise.
* gnu/packages/password-utils.scm (assword): Likewise.
* gnu/packages/python.scm (python-passlib, python2-passlib,
python-babel, python2-babel,
python-parse-type,
python-pytest, python2-pytest,
python-scripttest, python2-scripttest,
python-testtools, python2-testtools,
python-testscenarios, python2-testscenarios,
python-subunit, python2-subunit,
python-pbr-0.11,
python-pbr, python2-pbr,
python-testrepository, python2-testrepository,
behave,
python-wheel, python2-wheel,
python-requests, python2-requests,
python-jsonschema, python2-jsonschema,
python-pyjwt, python2-pyjwt,
python-virtualenv, python2-virtualenv,
python-jinja2, python2-jinja2,
python-joblib, python2-joblib,
python-sphinx, python2-sphinx,
python-feedgenerator, python2-feedgenerator,
python-scikit-image, python2-scikit-image,
python-redis, python2-redis,
python2-fastlmm,
python-numpydoc, python2-numpydoc,
python-matplotlib, python2-matplotlib,
python2-pysnptools,
python-rpy2, python2-rpy2,
python-pillow, python2-pillow,
python-pycparser, python2-pycparser,
python-cffi, python2-cffi,
python-cairocffi, python2-cairocffi,
python-drmaa, python2-drmaa,
python-pathpy, python2-pathpy,
python-simplegeneric, python2-simplegeneric,
python-ipython, python2-ipython,
python-apsw, python2-apsw,
python-lxml, python2-lxml,
python-networkx, python2-networkx,
python-pyzmq, python2-pyzmq,
python-mccabe, python2-mccabe,
python-mccabe-0.2.1,
python-flake8, python2-flake8,
python-flake8-2.2.4,
python-mistune, python2-mistune,
python-ptyprocess, python2-ptyprocess,
python-llfuse, python2-llfuse,
python-webob, python2-webob,
python-xlrd, python2-xlrd,
python-tables, python2-tables,
python-pip, python2-pip,
python-libarchive-c, python2-libarchive-c,
python-docopt, python2-docopt,
python-pyrfc3339, python2-pyrfc3339,
python-configobj, python2-configobj,
python-clint, python2-clint,
python-rply, python2-rply,
python2-rpython,
python-widgetsnbextension, python2-widgetsnbextension
jupyter,
python-jupyter-console, python2-jupyter-console,
python-hy, python2-hy,
python-urllib3, python2-urllib3,
python-rsa, python2-rsa,
python-tox, python2-tox,
python2-hypothesis,
python-paste, python2-paste,
python-pastescript, python2-pastescript,
python2-unicodecsv,
python-pkgconfig, python2-pkgconfig,
python2-rope,
python-sqlparse, python2-sqlparse,
python-gevent, python2-gevent,
python-tabulate, python2-tabulate,
python-arrow, python2-arrow,
python-cleo, python2-cleo,
python-fake-factory, python2-fake-factory,
ptpython): Likewise.
* gnu/packages/rdf.scm (python-rdflib, python2-rdflib): Likewise.
* gnu/packages/terminals.scm (asciinema): Likewise.
* gnu/packages/version-control.scm (git-annex-remote-hubic): Likewise.
* gnu/packages/xdisorg.scm (arandr): Likewise.
2016-09-28 11:30:54 +00:00
|
|
|
`(("python2-cython" ,python2-cython))))))
|