From patchwork Tue Nov 12 03:28:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fredrik Salomonsson X-Patchwork-Id: 70273 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 849D427BBE9; Tue, 12 Nov 2024 03:55:28 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id E74DD27BBE2 for ; Tue, 12 Nov 2024 03:55:26 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tAhzd-00052Z-4q; Mon, 11 Nov 2024 22:55:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tAhzb-00050R-2n for guix-patches@gnu.org; Mon, 11 Nov 2024 22:55:03 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tAhza-00048g-Pb for guix-patches@gnu.org; Mon, 11 Nov 2024 22:55:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=SxjbbjDnlZqAZdcEoKqPzJK4ELp6F/vrQBr5gQwlpJw=; b=I0acSDitCB+jyAXkXrRKqTzszyi5WPjF5LNR/3jsQt4xqjQrBSpeEcEf7L9z6Xiogdvwm+34o4MKS+lWmhndgQbTepBhk0DBUQ6C1JXpKq/Tsig2u6Q3wOpQUkrIRJVSrQYtY+QvEe61fUErBlEzFq64amtNT8DLgdb1N6i58yJP/we6QQrdBq7t30P7/7G0QygFz6h8SHYayvDL5671k3LglojW65H1kbORiy3/YPG5uArROwRZF6fE3dwKL6D0nlHXa8dA0IiFYgy6FqLgA3BcJafNhJQXgKzRPu0c1m6rexUt0PLH5KOEwjXVvhsU5paYoFouKgM3qx/+hIe7Mw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tAhza-0005nb-KS for guix-patches@gnu.org; Mon, 11 Nov 2024 22:55:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74315] [PATCH 1/1] gnu: Add ptouch-print. Resent-From: Fredrik Salomonsson Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 12 Nov 2024 03:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74315 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74315@debbugs.gnu.org Cc: Fredrik Salomonsson Received: via spool by 74315-submit@debbugs.gnu.org id=B74315.173138367722247 (code B ref 74315); Tue, 12 Nov 2024 03:55:02 +0000 Received: (at 74315) by debbugs.gnu.org; 12 Nov 2024 03:54:37 +0000 Received: from localhost ([127.0.0.1]:59978 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tAhzB-0005mk-Bu for submit@debbugs.gnu.org; Mon, 11 Nov 2024 22:54:37 -0500 Received: from mout01.posteo.de ([185.67.36.65]:41525) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tAhz8-0005mV-7Z for 74315@debbugs.gnu.org; Mon, 11 Nov 2024 22:54:35 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id D7517240027 for <74315@debbugs.gnu.org>; Tue, 12 Nov 2024 04:54:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1731383667; bh=ElsCClMRP8sz4kbWhqb7KVi8vOUZpYw41d/Qgr0sD8s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=VMjHGGASCI47HG5HGhzfy/Scx6xpGwAGWy4ftuPGLoF0Wd6uxyTs8I56o9gOqNRoi Q9vEOPgkkURbXnvBBGU0aaRFZP8v+ycr6bFoGlO7HyusdHvlFenCnZAkZ1Knj3BMT8 PCECl+ffDiq2KuxnRspmgELdGuQjK8gR48kB+uCxOcIwbRUpD/xxFUhqDkRnCqN7ET iRccv1D4qzFaLE4Qf1rl39J2FWmGRkPQ59MJ/6erwdpe6ln8/UGQl9A/dU4G6nLFb6 FibYvrT4UkagAaarRR9ZI/MZIOw985BBW/Slcp4cfVYVYmfw+/QZKenkA7SDbUwEpf Uecx0qEdxvKEw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4XnXbj4N1Jz9rxB; Tue, 12 Nov 2024 04:54:25 +0100 (CET) From: Fredrik Salomonsson Date: Tue, 12 Nov 2024 03:28:07 +0000 Message-ID: In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/printers.scm (ptouch-print): New variable. Change-Id: I2ab2a80b80932af8566f6c5879e63e7b0bced747 --- gnu/packages/printers.scm | 55 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/gnu/packages/printers.scm b/gnu/packages/printers.scm index 0069494b4d..995af76359 100644 --- a/gnu/packages/printers.scm +++ b/gnu/packages/printers.scm @@ -22,14 +22,18 @@ (define-module (gnu packages printers) #:use-module (guix gexp) #:use-module (guix packages) #:use-module (guix git-download) + #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix build-system go) #:use-module ((guix licenses) #:prefix license:) #:use-module (gnu packages avahi) + #:use-module (gnu packages gd) + #:use-module (gnu packages gettext) #:use-module (gnu packages golang-xyz) #:use-module (gnu packages libusb) #:use-module (gnu packages man) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages version-control) #:use-module (gnu packages qt)) ;; This is a module for packages related to printer-like devices, but not @@ -69,6 +73,57 @@ (define-public ipp-usb simply relay a TCP connection to USB do not work.") (license license:bsd-2))) +(define-public ptouch-print + (let ((commit "740b20e150e030aa2e75086d1202064f9c4c4090") + (revision "0")) + (package + (name "ptouch-print") + (version (git-version "1.5" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url + "https://git.familie-radermacher.ch/linux/ptouch-print.git") + (commit commit))) + (sha256 + (base32 "17lw6gyb9hqdzdlypm98bdpnfjn74a3jrdd0rwic63a7072iqnzr")) + (file-name (git-file-name name version)))) + (build-system cmake-build-system) + (arguments + '(#:tests? #f ;no test target + #:phases (modify-phases %standard-phases + (add-before 'configure 'patch-cmakefile + (lambda _ + (substitute* "CMakeLists.txt" + ;; Remove the internal override of CMAKE_INSTALL_PREFIX + (("set\\(CMAKE_INSTALL_PREFIX /usr\\)") + "") + ;; Remove hard coded udev install steps, installing it in the + ;; install-udev-rules phase + (("if\\(EXISTS /etc/udev/rules.d\\) +\tinstall\\(FILES udev/90-usb-ptouch-permissions.rules DESTINATION /etc/udev/rules.d\\) +\tinstall\\(CODE \"execute_process(COMMAND udevadm control --reload-rules)\"\\) +endif\\(\\) +") + "")) #t)) + (add-after 'install 'install-udev-rules + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (rules (string-append out "/lib/udev/rules.d/"))) + (install-file + "../source/udev/90-usb-ptouch-permissions.rules" + rules))))))) + (native-inputs (list gd git gettext-minimal libusb pkg-config)) + (synopsis "CLI tool to print labels on Brother P-Touch printers") + (description + "A command line tool to print labels on Brother P-Touch +printers on Linux. Note that there is no need to install the printer via CUPS, the +printer is accessed directly via libusb.") + (home-page + "https://dominic.familie-radermacher.ch/projekte/ptouch-print/") + (license license:gpl3)))) + (define-public robocut (package (name "robocut")