From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id aEqZCRRsoGPSbwEAbAwnHQ (envelope-from ) for ; Mon, 19 Dec 2022 14:50:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id cJAeCRRsoGPyUwAAauVa8A (envelope-from ) for ; Mon, 19 Dec 2022 14:50:12 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9FF5F3E4E8 for ; Mon, 19 Dec 2022 14:50:11 +0100 (CET) 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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 From: Sughosha via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=proton.me header.s=protonmail header.b="MfG/BbaT"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1671457811; a=rsa-sha256; cv=none; b=IgMRUbAV8GJs8ktpJzySHV6CVMLaz5F0thbB+q+MTSRVlBa9kX/+5y7rpjvCj25l0EoUgm bOsr16dYxVUf25r70pG75x8yiaulZofXS1Lk2peHsQb+aFQK1zg7iHh7e2jDEgWwvYvIpU GpIExWP284kDDVDJj8A8gElpmZEfloKgHrgGNp0Eb7jxF7+EG/WNTvdZg1gx1+TKnw0a82 uSpga6Jww2UGwwqZIbq36r1w42EgeONJ91RLAqnJKfcLy8nSgJSD+/NmT4W970o7dLkC5y 2pylh7uNn8KEfzJUggSotWMI34sna35QTfDBCE6gjXgKJm7QIf5YZqZ2WmPBhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671457811; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=TutFV0BythvwuA9pnU6Dy0MrBnCGSLMsTdBB6a/ePdQ=; b=fGz8ur2QTvkTc2bxyXOqhIvmAS6UxX0VLXJicrQQSQzEFBtvkdduXYhlLU086SjP6zbzbK blcC3IwgmsSFFpU0xnC+CnpasaXYZEp8bhBkXOt8BPr11tuz3nt5stAgJGwGgSu0gud+8g ZGrv2qwxjcse6wMTogzFz8woaZqk0e2yXkP/1zjh7D5Q3WHjoxcNRDt0WSXjvGXkIgyA5w cZzB9hxTG1TWAwEuFN7dXZGp28xea5RKaF3jAAPsyEPSnlnIQPyei88b0sW0icjcSfJx4k nPBZA3HXqFnjToWCuCarhTYHthYey6I87ake+JkSD1/a0/jDTDzT+wUBCHxMEA== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=proton.me header.s=protonmail header.b="MfG/BbaT"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -3.69 X-Spam-Score: -3.69 X-Migadu-Queue-Id: 9FF5F3E4E8 X-TUID: 3Oi2O8AKJSeS * 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 =C2=A9 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 "0br0b4d230vhib5qm39ggf6m5pfipkjs4xqxkjxjnba7g0bdz7i= v")) + (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-s= tyle +extensions.") + (license license:zlib))) --=20 2.38.1