From patchwork Mon Apr 14 18:38:40 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fredrik Salomonsson X-Patchwork-Id: 41679 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 957A827BC49; Mon, 14 Apr 2025 19:40:49 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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=ham 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 13EC427BC49 for ; Mon, 14 Apr 2025 19:40:49 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1u4OjQ-0005qj-2a; Mon, 14 Apr 2025 14:40:32 -0400 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 1u4Oiz-0005Gp-Q8 for guix-patches@gnu.org; Mon, 14 Apr 2025 14:40:09 -0400 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 1u4Oix-0004gt-1f for guix-patches@gnu.org; Mon, 14 Apr 2025 14:40:03 -0400 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=mrlSnYROXhlWSMEiUA3yxQWzxeVv2YGv6tQupzaU2vs=; b=XfO18UfEH+vLT16pj7Mi6Pmk4cfLJdA1aVFr279JGuCzvn1hTfS/S6N6piBA8KW9b5wtXeMS/ul5O+h7KnikLYNl/kYv6BEpef1IY0YGbb52be2+OK1p1DM7vea2IRVtzeqgrth27pS42lklKgo3Owd041c/TIjghTHdath5hrOaU/krCao0BjMRur4/2si75npfElm19OVB2ph5ogDY9xU76rgrbOjUL9o3mDipAZWZ8sg5ggL9Clmwnqo7Qj3pC8rjZLIFjtkJCE/blNvsdjGr2qtCXVu6e28NVY3yCYG93ued4J3Tq3c9Qj2/UrUPe50pCpXq+z1sxm1obJafjQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1u4Oiw-0003Bn-Q3 for guix-patches@gnu.org; Mon, 14 Apr 2025 14:40:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#74315] [PATCH v3 1/1] gnu: Add ptouch-print. Resent-From: Fredrik Salomonsson Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 14 Apr 2025 18:40: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: andreas@enge.fr, Fredrik Salomonsson Received: via spool by 74315-submit@debbugs.gnu.org id=B74315.174465595412181 (code B ref 74315); Mon, 14 Apr 2025 18:40:02 +0000 Received: (at 74315) by debbugs.gnu.org; 14 Apr 2025 18:39:14 +0000 Received: from localhost ([127.0.0.1]:49029 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u4Oi9-0003AO-FC for submit@debbugs.gnu.org; Mon, 14 Apr 2025 14:39:13 -0400 Received: from mout01.posteo.de ([185.67.36.65]:40791) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u4Oi6-00039u-Hj for 74315@debbugs.gnu.org; Mon, 14 Apr 2025 14:39:11 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 9A7A6240027 for <74315@debbugs.gnu.org>; Mon, 14 Apr 2025 20:39:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1744655944; bh=LD4ahm//lcCw48x/jYN4hLhBZ+POWr8sYsqDHh7ZdMc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=WVwaPPh1sGLsZSrjM8bn0Id4Kmi8EZs7vhH8UyRxfb/UzymtE3UseiqhjWWyjI6H+ KVHy9dlbR0KU7nDHdxd5WRPGWGgFi4GCgi9NoiogAwy6QhyGzuc73m1QIEWKFRYjG1 BQaR7YEBW231DMuwnj/UeFqM3gDu+PO2+6PsF6Y1bKdAuVYybcZgow/tQqFACyHR6G 8KVSgNM1xm5iE9XOnvBdIe1GHMQ6gj+11zaON+jeQLcxQeC6iPcaf+fPk4HKHPMfqV tg/JAVMA7CL4wwWNsmGuv2AV+WTRrY2VfS/eTAnPNjaMBG74YzM4IEuiDS8QXyHXFL Hc7k7q7i7epSQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Zbwzq5kVcz6tlh; Mon, 14 Apr 2025 20:39:03 +0200 (CEST) From: Fredrik Salomonsson Date: Mon, 14 Apr 2025 18:38:40 +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 | 52 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/gnu/packages/printers.scm b/gnu/packages/printers.scm index 6060f8afb2..be13c2a10c 100644 --- a/gnu/packages/printers.scm +++ b/gnu/packages/printers.scm @@ -23,13 +23,17 @@ (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 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 @@ -88,6 +92,54 @@ (define-public ipp-usb simply relay a TCP connection to USB do not work.") (license license:bsd-2))) +(define-public ptouch-print + (package + (name "ptouch-print") + (version "1.6") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://git.familie-radermacher.ch/linux/ptouch-print.git") + (commit (string-append "v" version)))) + (sha256 + (base32 "1pxi30a74azhzsl1wni2va4rkhlfn97qxmz4kryrj9xkvf55jv88")) + (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\\) +[[:blank:]]+install\\(FILES udev/.*?\\.rules DESTINATION /etc/udev/rules.d\\) +[[:blank:]]+install\\(CODE \".*?\"\\) +endif\\(\\) +") + "")))) + (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 + "This package provides the command line tool @command{ptouch-print} to +print labels on Brother P-Touch printers. It also contains udev rules for +non-root access for the known P-Touch printers. This does not require CUPS +to work as 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")