2014-09-29 07:30:36 +02:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2016-08-22 19:25:17 +02:00
|
|
|
;;; Copyright © 2014, 2015, 2016 Eric Bavier <bavier@member.fsf.org>
|
2016-05-27 13:56:49 +02:00
|
|
|
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
|
2017-04-26 07:02:27 +02:00
|
|
|
;;; Copyright © 2017 Vasile Dumitrascu <va511e@yahoo.com>
|
2019-01-25 11:20:51 +01:00
|
|
|
;;; Copyright © 2019 Ricardo Wurmus <rekado@elephly.net>
|
2014-09-29 07:30:36 +02: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 synergy)
|
|
|
|
#:use-module (guix packages)
|
2015-06-28 18:32:17 +02:00
|
|
|
#:use-module ((guix licenses) #:select (gpl2))
|
2019-01-25 11:20:51 +01:00
|
|
|
#:use-module (guix git-download)
|
2014-09-29 07:30:36 +02:00
|
|
|
#:use-module (guix build-system cmake)
|
|
|
|
#:use-module (gnu packages)
|
2019-01-25 11:20:51 +01:00
|
|
|
#:use-module (gnu packages avahi)
|
2014-09-29 07:30:36 +02:00
|
|
|
#:use-module (gnu packages curl)
|
gnu: Move contents of zip module into compression module.
* gnu/packages/zip.scm (zip, unzip, zziplib, perl-zip): Move to...
* gnu/packages/compression.scm: ...here.
* gnu/packages/zip.scm: Delete file.
* gnu/local.mk (GNU_SYSTEM_MODULES): Unregister deleted file.
* po/packages/POTFILES.in: Unregister deleted file.
* gnu/packages/{audio, avr, bioinformatics, busybox, cdrom, ci, compression,
docbook, documentation, fonts, fpga, game-development, games, gl, gnome,
gnuzilla, graphics, guile, haskell, image, java, kodi, ldc, libreoffice,
markup, maths, mc, monitoring, music, php, pretty-print, python, scheme,
smalltalk, statistics, synergy, tex, textutils, video, web-browsers, xml,
zip}.scm, guix/build-system/{ant, font}.scm, guix/{download, packages}.scm:
Adapt module import.
2017-06-12 20:40:01 +02:00
|
|
|
#:use-module (gnu packages compression)
|
2014-09-29 07:30:36 +02:00
|
|
|
#:use-module (gnu packages python)
|
2019-01-25 11:20:51 +01:00
|
|
|
#:use-module (gnu packages qt)
|
gnu: Move content of openssl module into tls module.
* gnu/packages/openssl.scm (openssl, perl-net-ssleay): Move to...
* gnu/packages/tls.scm: ...here.
* gnu/packages/openssl.scm: Delete file.
* gnu-system.am (GNU_SYSTEM_MODULES): Unregister deleted file.
* gnu/packages/{admin.scm, bittorrent.scm, certs.scm, ci.scm,
cyrus-sasl.scm, databases.scm, dns.scm, ebook.scm, enlightenment.scm,
gnunet.scm, libreoffice.scm, links.scm, mail.scm, messaging.scm,
networking.scm, ntp.scm, openldap.scm, package-management.scm, pdf.scm,
python.scm, qt.scm, rdesktop.scm, rdf.scm, ruby.scm, ssh.scm,
synergy.scm, tor.scm, version-control.scm, video.scm, vpn.scm,
w3m.scm, web.scm, weechat.scm, xiph.scm}: Adapt module import.
2015-07-05 18:27:24 +02:00
|
|
|
#:use-module (gnu packages tls)
|
2014-09-29 07:30:36 +02:00
|
|
|
#:use-module (gnu packages xorg)
|
|
|
|
#:use-module (srfi srfi-26))
|
|
|
|
|
|
|
|
(define-public synergy
|
|
|
|
(package
|
|
|
|
(name "synergy")
|
2019-01-25 11:20:51 +01:00
|
|
|
(version "1.10.1")
|
2014-09-29 07:30:36 +02:00
|
|
|
(source
|
|
|
|
(origin
|
2019-01-25 11:20:51 +01:00
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/symless/synergy-core.git")
|
|
|
|
(commit (string-append "v" version "-stable"))))
|
|
|
|
(file-name (git-file-name name version))
|
2014-09-29 07:30:36 +02:00
|
|
|
(sha256
|
|
|
|
(base32
|
2019-01-25 11:20:51 +01:00
|
|
|
"112w2xrp04cysd14xk1ax7cllqpcki0pyica4ivrdngr5qw0r9hp"))
|
2015-06-28 18:32:17 +02:00
|
|
|
(modules '((guix build utils)))
|
|
|
|
(snippet
|
2019-01-25 11:20:51 +01:00
|
|
|
;; Remove unnecessary bundled source and binaries
|
2017-11-10 15:16:54 +01:00
|
|
|
'(begin
|
2019-01-25 11:20:51 +01:00
|
|
|
(delete-file-recursively "ext/openssl")
|
2017-11-10 15:16:54 +01:00
|
|
|
#t))))
|
2014-09-29 07:30:36 +02:00
|
|
|
(build-system cmake-build-system)
|
2019-01-25 11:20:51 +01:00
|
|
|
(arguments
|
|
|
|
`(#:tests? #f ; there is no test target
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'fix-headers
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
(setenv "CPLUS_INCLUDE_PATH"
|
|
|
|
(string-append (assoc-ref inputs "avahi")
|
|
|
|
"/include/avahi-compat-libdns_sd/:"
|
|
|
|
(getenv "CPLUS_INCLUDE_PATH")))
|
|
|
|
;; See https://github.com/symless/synergy-core/pull/6359/
|
|
|
|
(substitute* "src/gui/src/ScreenSetupView.cpp"
|
|
|
|
(("#include <QtGui>" m)
|
|
|
|
(string-append m "\n#include <QHeaderView>")))
|
|
|
|
(substitute* "src/gui/src/ActionDialog.cpp"
|
|
|
|
(("#include <QtGui>" m)
|
|
|
|
(string-append m "\n#include <QButtonGroup>")))
|
|
|
|
#t)))))
|
2014-09-29 07:30:36 +02:00
|
|
|
(inputs
|
2019-01-25 11:20:51 +01:00
|
|
|
`(("avahi" ,avahi)
|
|
|
|
("python" ,python-wrapper)
|
2015-06-28 18:32:17 +02:00
|
|
|
("openssl" ,openssl)
|
2014-09-29 07:30:36 +02:00
|
|
|
("curl" ,curl)
|
|
|
|
("libxi" ,libxi)
|
|
|
|
("libx11" ,libx11)
|
|
|
|
("libxtst" ,libxtst)
|
2019-01-25 11:20:51 +01:00
|
|
|
("xinput" ,xinput)
|
|
|
|
("qtbase" ,qtbase)))
|
2017-11-10 15:16:54 +01:00
|
|
|
(home-page "https://symless.com/synergy")
|
2014-09-29 07:30:36 +02:00
|
|
|
(synopsis "Mouse and keyboard sharing utility")
|
|
|
|
(description
|
2017-11-10 15:16:54 +01:00
|
|
|
"Synergy brings your computers together in one cohesive experience; it's
|
2014-09-29 07:30:36 +02:00
|
|
|
software for sharing one mouse and keyboard between multiple computers on your
|
|
|
|
desk.")
|
|
|
|
(license gpl2)))
|