From patchwork Sat Aug 5 13:45:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: cage X-Patchwork-Id: 52554 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 B644A27BBE9; Sat, 5 Aug 2023 14:47:19 +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=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,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 8ABD527BBE2 for ; Sat, 5 Aug 2023 14:47:17 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSHcW-00079C-Ue; Sat, 05 Aug 2023 09:47:04 -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 1qSHcU-00077L-OK for guix-patches@gnu.org; Sat, 05 Aug 2023 09:47:02 -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 1qSHcU-0000H7-Cq for guix-patches@gnu.org; Sat, 05 Aug 2023 09:47:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qSHcT-0006tq-Vh for guix-patches@gnu.org; Sat, 05 Aug 2023 09:47:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65097] [PATCH] gnu: Add tk-img. Resent-From: cage Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 05 Aug 2023 13:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65097 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65097@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.169124318226473 (code B ref -1); Sat, 05 Aug 2023 13:47:01 +0000 Received: (at submit) by debbugs.gnu.org; 5 Aug 2023 13:46:22 +0000 Received: from localhost ([127.0.0.1]:56245 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSHbp-0006su-Q5 for submit@debbugs.gnu.org; Sat, 05 Aug 2023 09:46:22 -0400 Received: from lists.gnu.org ([2001:470:142::17]:40360) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSHbl-0006se-Hg for submit@debbugs.gnu.org; Sat, 05 Aug 2023 09:46:20 -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 1qSHbf-0006wn-AL for guix-patches@gnu.org; Sat, 05 Aug 2023 09:46:11 -0400 Received: from smtpcmd04132.aruba.it ([62.149.158.132]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSHbc-0008WM-9g for guix-patches@gnu.org; Sat, 05 Aug 2023 09:46:11 -0400 Received: from shimizu.casa.net ([94.34.59.58]) by Aruba Outgoing Smtp with ESMTPSA id SHbXqaxYBEWJKSHbXqV7Fd; Sat, 05 Aug 2023 15:46:04 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1691243164; bh=oTSiJ2HNcz2cpLgpeUse+GgGSh6g27ZyVqIH+k5fxG0=; h=Date:From:To:Subject:MIME-Version:Content-Type; b=YqPLdrikqfnKdqB7CnMFZyo/1GCfKeMZ17Cl6DB22bfEsfc7GEm5vu94BWssKmI42 5dfgyejOkzsWBaTF58KsgZZVRTlFsrGO6O7JroqfqH+n1HKhrb6IR/w+Brs6s7UCjP QBmc8at1uXOV8wYa830WfedGmMfmPsjp1x2ormbJ1l7zX+qAa95voTlvYvmutKPKd6 m/JUhEhAapPNST1bKOOcaasucf3/mVdXDniFQh/trNw5Ew9xAF2eawZ28QJtD+5a/P 4cpoVSfu6h3xvlKXci/uX3ccvKS7/WUJZio76pcqVfiGCCF3OlkBzODbDp7/2QwVCG Dhxz7RBx3Jz7Q== Received: by shimizu.casa.net (Postfix, from userid 1000) id B9855DA0426; Sat, 5 Aug 2023 15:45:53 +0200 (CEST) Date: Sat, 5 Aug 2023 15:45:53 +0200 From: cage Message-ID: <637de43ce6edf9cebaf84d3b456901a184e6de82.1691242776.git.cage-dev@twistfold.it> MIME-Version: 1.0 Content-Disposition: inline X-CMAE-Envelope: MS4xfG0xL5EKVjoZU3iOG4oGZ/W3xeWguHL6irTv4dF/rsRIIDTnb9A9z5Y6h93c0NH47xnq9tbREk7QJbYtMFR9TgD4fqDr2FKeitJhKVkmFOffK6nvbpIU U568pl8+wF2dP988BDkgKh6OI0RIyRpIp115s3tXA5qJa7ORica97l599dCr0RMcLSQ7Qb/eCHGFTA== Received-SPF: none client-ip=62.149.158.132; envelope-from=cage-dev@twistfold.it; helo=smtpcmd04132.aruba.it X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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 Hi! Note that this patch suffers for some problems: - the package will skips the test (it complains "tk" can not be found"); - the manpages will not be installed as make installs exit with an error code because the script 'dtplite' can not be found (seems a TCL script according to README); - the license seems X11 to me, but i am unsure (see the last paragraph in the file: "license.terms". Any suggestion to improve the patch is appreciated! :) Bye! C. --- gnu/packages/tcl.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) base-commit: 42ae42cf41e8f5e88422e30d801251a3427d7f3b -- 2.34.0 diff --git a/gnu/packages/tcl.scm b/gnu/packages/tcl.scm index b69dba2254..5bfcc63f96 100644 --- a/gnu/packages/tcl.scm +++ b/gnu/packages/tcl.scm @@ -509,3 +509,43 @@ (define-public go-github.com-nsf-gothic (description "Gothic contains Go bindings for Tcl/Tk. The package contains only one type and one function that can be used to create a Tk interpreter.") (license license:expat)))) + + + +(define-public tk-img + (package + (name "tk-img") + (version "1.4.14") + (source + (origin + (method url-fetch) + (uri (string-append + "mirror://sourceforge/tkimg/tkimg/1.4/tkimg%20" + version + "/Img-" version "-Source.tar.gz")) + (file-name (string-append "tkimg-" version ".tar.gz")) + (sha256 + (base32 "08dvb8bfkxr919wp6fq14cfb9lz1v59jx1la4a6j4ks636wb243m")))) + (build-system gnu-build-system) + (arguments + (list #:tests? #f + #:phases + #~(modify-phases %standard-phases + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (invoke "make" "install-libraries")))) + #:configure-flags + #~(list + (string-append "--exec-prefix=" #$output) + (string-append "--with-tcl=" + (assoc-ref %build-inputs "tcl") "/lib") + (string-append "--with-tk=" + (assoc-ref %build-inputs "tk") "/lib")))) + (native-inputs + (list tcl + tk)) + (home-page "https://sourceforge.net/projects/tkimg/") + (synopsis "The Img package adds several image formats to Tcl/Tk.") + (description + "The Img package adds several image formats to Tcl/Tk.") + (license license:public-domain)))