From patchwork Mon Dec 19 13:49:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sughosha X-Patchwork-Id: 45422 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 9891027BBE9; Mon, 19 Dec 2022 13:50:13 +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=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,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 6F74927BBEB for ; Mon, 19 Dec 2022 13:50:11 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p7GWp-00034u-V5; Mon, 19 Dec 2022 08:50:03 -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 1p7GWo-00034d-OY for guix-patches@gnu.org; Mon, 19 Dec 2022 08:50:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p7GWo-0000nH-F6 for guix-patches@gnu.org; Mon, 19 Dec 2022 08:50:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p7GWo-0002fw-9R for guix-patches@gnu.org; Mon, 19 Dec 2022 08:50:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60201] [PATCH] gnu: Add libswell Resent-From: Sughosha Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 19 Dec 2022 13:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 60201 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60201@debbugs.gnu.org X-Debbugs-Original-To: "guix-patches@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.167145778510271 (code B ref -1); Mon, 19 Dec 2022 13:50:02 +0000 Received: (at submit) by debbugs.gnu.org; 19 Dec 2022 13:49:45 +0000 Received: from localhost ([127.0.0.1]:38548 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p7GWX-0002fb-79 for submit@debbugs.gnu.org; Mon, 19 Dec 2022 08:49:45 -0500 Received: from lists.gnu.org ([209.51.188.17]:51622) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p7GWT-0002fV-MN for submit@debbugs.gnu.org; Mon, 19 Dec 2022 08:49:43 -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 1p7GWQ-0002vQ-A4 for guix-patches@gnu.org; Mon, 19 Dec 2022 08:49:41 -0500 Received: from mail-4324.protonmail.ch ([185.70.43.24]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p7GWM-0000iL-Ut for guix-patches@gnu.org; Mon, 19 Dec 2022 08:49:37 -0500 Date: Mon, 19 Dec 2022 13:49:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1671457764; x=1671716964; bh=TutFV0BythvwuA9pnU6Dy0MrBnCGSLMsTdBB6a/ePdQ=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=MfG/BbaT25NY9+R3rcgd+NeiylbXMKSZWm8q9AiUTOFYKOGGyY05k83t35yU8L6M4 EZookW3ZU/Ia2/tJt7xd19grMv5IsSjoWZGKovsqpsZlX6p8G3MJrnbKz8GHP7CT1V Zl1/3p4RkPuza2tyWYvCSWz1PHRmATlmXdNn3TpxQzAC1SyiAZo3UNReqEptodS3SM VNI+CjvbZQFFiKKUcRKIEar69WivDayc5rxgH7PI5foFpgQ6ZywHeLHwIc5E8nKkGN V0vabTpNoB23ggzftOs+wTclGctTUgsl9Pd5MIlWxcLkUvfq4mzfWdaEDKA6azNmg3 Vg9iaOIKjYsbA== Message-ID: Feedback-ID: 45211691:user:proton MIME-Version: 1.0 Received-SPF: pass client-ip=185.70.43.24; envelope-from=Sughosha@proton.me; helo=mail-4324.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-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: , Reply-to: Sughosha X-ACL-Warn: , Sughosha via Guix-patches X-Patchwork-Original-From: Sughosha via Guix-patches via From: Sughosha 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/wdl.scm (libswell): New variable. --- gnu/packages/wdl.scm | 75 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 gnu/packages/wdl.scm diff --git a/gnu/packages/wdl.scm b/gnu/packages/wdl.scm new file mode 100644 index 0000000000..e0a7ea8fac --- /dev/null +++ b/gnu/packages/wdl.scm @@ -0,0 +1,75 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2022 Sughosha +;;; +;;; 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 . + +(define-module (gnu packages wdl) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix packages) + #:use-module (guix gexp) + #:use-module (guix git-download) + #:use-module (guix build-system gnu) + #:use-module (gnu packages) + #:use-module (gnu packages gtk) + #:use-module (gnu packages pkg-config)) + +(define %wdl-commit "60ef0b41d520813c63303046531c78ec95e64d5c") + +(define %wdl-origin + (origin + (method git-fetch) + (uri (git-reference (url "https://github.com/justinfrankel/WDL.git") + (commit %wdl-commit))) + (sha256 (base32 "0br0b4d230vhib5qm39ggf6m5pfipkjs4xqxkjxjnba7g0bdz7iv")) + (modules '((guix build utils))) + ;; Unbundle third party libraries which are not needed. + (snippet '(for-each (lambda (dir) (delete-file-recursively + (string-append "WDL/" dir))) + (list "jnetlib" + "libpng" + "giflib" + "jpeglib" + "zlib"))))) + +(define-public libswell + (package + (name "libswell") + (version (git-version "0" "0" %wdl-commit)) + (source %wdl-origin) + (build-system gnu-build-system) + (arguments + `(#:tests? #f + #:phases (modify-phases %standard-phases + (delete 'configure) ;no configure script + (replace 'build + (lambda _ + (chdir "WDL") + (invoke "make" "-Cswell"))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (install-file "swell/libSwell.so" + (string-append (assoc-ref outputs + "out") + "/lib"))))))) + (native-inputs (list pkg-config)) + (inputs (list gtk+)) + (home-page "http://www.cockos.com/wdl") + (synopsis "Reasonable subset of the win32 API") + (description + "SWELL is Simple Windows Emulation Layer with support for automatic +(PHP-based) dialog and menu resource conversion and SWELL-specific win32-style +extensions.") + (license license:zlib)))