From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:37934) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1DtE-0000oK-I6 for guix-patches@gnu.org; Tue, 05 Mar 2019 12:30:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h1DtD-0005fm-Gs for guix-patches@gnu.org; Tue, 05 Mar 2019 12:30:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:48096) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h1DtD-0005fa-Bf for guix-patches@gnu.org; Tue, 05 Mar 2019 12:30:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h1DtD-0002bV-74 for guix-patches@gnu.org; Tue, 05 Mar 2019 12:30:03 -0500 Subject: [bug#34758] [PATCH 4/4] gnu: Add cdemu-client. Resent-Message-ID: From: Pierre Neidhardt Date: Tue, 5 Mar 2019 18:28:53 +0100 Message-Id: <20190305172853.21358-3-mail@ambrevar.xyz> In-Reply-To: <20190305172853.21358-1-mail@ambrevar.xyz> References: <20190305172853.21358-1-mail@ambrevar.xyz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 34758@debbugs.gnu.org * gnu/packages/cdrom.scm (cdemu-client): New variable. --- gnu/packages/cdrom.scm | 49 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/cdrom.scm b/gnu/packages/cdrom.scm index 48d6f58a2..9fd3b9201 100644 --- a/gnu/packages/cdrom.scm +++ b/gnu/packages/cdrom.scm @@ -945,3 +945,52 @@ between the CDemu userspace daemon and linux kernel.") (description "CDemu is a software suite designed to emulate an optical drive and disc (including CD-ROMs and DVD-ROMs).") (license gpl2+))) + +(define-public cdemu-client + (package + (name "cdemu-client") + (version "3.2.0") + (source (origin + (method url-fetch) + (uri (string-append + "https://downloads.sourceforge.net/cdemu/cdemu-client-" + version ".tar.bz2")) + (sha256 + (base32 + "1zwz987pb2pakfk9kz8a6xa9hq1ip48cn4ryl9z85dik8k2sizm9")))) + (build-system cmake-build-system) + (native-inputs + `(("pkg-config" ,pkg-config) + ("intltool" ,intltool))) + (inputs + `(("python" ,python) + ("python-pygobject" ,python-pygobject) + ("cdemu-daemon" ,cdemu-daemon))) + (arguments + ;; No tests. + `(#:tests? #f + #:phases + (modify-phases %standard-phases + (add-after 'install 'patch-shebang + (lambda* (#:key outputs #:allow-other-keys) + (patch-shebang (string-append (assoc-ref outputs "out") + "/bin/cdemu")) + #t)) + (add-after 'patch-shebang 'wrap-program + (lambda* (#:key outputs #:allow-other-keys) + (let ((prog (string-append (assoc-ref outputs "out") + "/bin/cdemu"))) + (wrap-program prog + `("PYTHONPATH" = (,(getenv "PYTHONPATH"))) + ;; `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))) + ) + #t)))))) + (home-page "https://cdemu.sourceforge.io/") + (synopsis "Command-line client for controlling cdemu-daemon") + (description "CDEmu client is a simple command-line client for controlling +CDEmu daemon. + +It provides a way to perform the key tasks related to controlling the CDEmu +daemon, such as loading and unloading devices, displaying devices' status and +retrieving/setting devices' debug masks.") + (license gpl2+))) -- 2.20.1