From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id GD4METorr2PqdgEAbAwnHQ (envelope-from ) for ; Fri, 30 Dec 2022 19:17:30 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id eB/QEDorr2PZUAEAauVa8A (envelope-from ) for ; Fri, 30 Dec 2022 19:17:30 +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 036BD3CAFA for ; Fri, 30 Dec 2022 19:17:29 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pBJwI-0000Zd-6X; Fri, 30 Dec 2022 13:17:07 -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 1pBJwE-0000ZJ-TI for guix-patches@gnu.org; Fri, 30 Dec 2022 13:17:04 -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 1pBJwE-00037w-Lj for guix-patches@gnu.org; Fri, 30 Dec 2022 13:17:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pBJwE-0006ui-HD for guix-patches@gnu.org; Fri, 30 Dec 2022 13:17:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60201] [PATCH v7] gnu: Add libswell. References: In-Reply-To: Resent-From: Sughosha Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 30 Dec 2022 18:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60201 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: "60201@debbugs.gnu.org" <60201@debbugs.gnu.org> Received: via spool by 60201-submit@debbugs.gnu.org id=B60201.167242418426501 (code B ref 60201); Fri, 30 Dec 2022 18:17:02 +0000 Received: (at 60201) by debbugs.gnu.org; 30 Dec 2022 18:16:24 +0000 Received: from localhost ([127.0.0.1]:36105 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pBJvc-0006tM-B8 for submit@debbugs.gnu.org; Fri, 30 Dec 2022 13:16:24 -0500 Received: from mail-4324.protonmail.ch ([185.70.43.24]:57087) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pBJvW-0006t1-8B for 60201@debbugs.gnu.org; Fri, 30 Dec 2022 13:16:22 -0500 Date: Fri, 30 Dec 2022 18:16:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1672424170; x=1672683370; bh=ZaYxTAG0LihvSutGzKxV1eE6ChBbvGi08YVcdxJRrjc=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=bXHfAWCUsVqYiiBILAhp/xDfsJ/ltLbZnZ60+J4YZeCVAeAICee2eeNxHFBhv+Nm8 sN5ZYj77KJVTqCI8ldhhMPizoSVpU7K7Y3Vca1iOWPrrX69T5U7MIrIjAu51C3ds0g L0iSLRSIlidcG6LANAYkyOhVbexq2NUBvo7N5elGWsyW4HqvGVju8QsahkKhzIa07f g+dAuTubv0/DeywIpg3FBPmqWDOGMz3zGG67SKWyex6jKPNJKUjhWlMAr4ZAhJoj3M utUHK+5bInin1nuofPDHAaSfjTjbqViiqeAN009Sr4izBzku1fKwmgK+uFcA730+ig Ca8ATC8hTudyQ== Message-ID: <2HXsyBKXURVIdF2t0_b1EKzxtjGov3LB8BwE1J2mehqNTufGcWuk8fQHTIsNIEKc0D98lrmC3BdmB2eMf892j0Ndm_3NtKHHmw_TkSfJ7wc=@proton.me> Feedback-ID: 45211691:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1672424250; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ZaYxTAG0LihvSutGzKxV1eE6ChBbvGi08YVcdxJRrjc=; b=NWxtheDYdDYa+Ou2d7Ty5j/NhD63RXZsh3M3sncN/7X5bbFZ3XbtY2N+6lJio4Ck5P34ZF tonkprE0hAQUj75/x2BGGcnQ1JgnGg/GPAu7VMktqt2iZjtgC+a2kUhcLT93dQumKQavZL YJE8GrB/ZoXnNLXT2yU9U079KVFMzHD14BShCXdnNu6koYZS7jPIjV0rLY4MOd5rBmvDyU 9WbFtPvgufI2ZLMlvaMD2ZNgJ8VCLQOpZzqbdrjOGhxu/hWAn2fUa124A41J+Blup763YO BnTL9f9hVo00H40gH9WedwAyS5AYYjq6o5gMe8xcoLM+5YKcNwbQckrGjCaijA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=proton.me header.s=protonmail header.b=bXHfAWCU; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1672424250; a=rsa-sha256; cv=none; b=ue9tsSPdLkarP32qrmMWIcEwryJpZkn80+PzkW9daPyZs1iIDdMStaE/XJJmxptfubrYzS xceq5StAHtToDf05GpjWyslVNtzHM0btI0/o6xDaRWCyIDWUIkEVpL+E33z8VwKguUbDQK hZCGsLm1IECgkDRhdY/Yi6GPBvQSZvMgutBqrniKBtnoHpJiAj8wY+73baYxGkVIuwaqeK ct4lZ3tVe0oIP6TI9Cj2vZjnF5K6YWNTemgRblgKZqCOtotYwBh7gTNfWh5OgYriHS7smV LcmYarXrGgOys3EGn4TYoPQqcAI3XgpuH8bahIdhoEIKiO4GuWVf7i8KCHOlWw== X-Spam-Score: -2.03 X-Migadu-Queue-Id: 036BD3CAFA Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=proton.me header.s=protonmail header.b=bXHfAWCU; 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"; dmarc=pass (policy=none) header.from=gnu.org X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -2.03 X-TUID: cATbInYzxxAv * gnu/packages/wdl.scm: New file. (libswell): New public variable. * gnu/local.mk (GNU_SYSTEM_MODULES): Add the new file. --- gnu/local.mk | 1 + gnu/packages/wdl.scm | 85 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 gnu/packages/wdl.scm diff --git a/gnu/local.mk b/gnu/local.mk index 0d4028a161..823818accc 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -623,6 +623,7 @@ GNU_SYSTEM_MODULES =3D=09=09=09=09\ %D%/packages/vulkan.scm=09=09=09\ %D%/packages/w3m.scm=09=09=09=09\ %D%/packages/wdiff.scm=09=09=09\ + %D%/packages/wdl.scm=09=09=09=09\ %D%/packages/weather.scm=09=09=09\ %D%/packages/web.scm=09=09=09=09\ %D%/packages/web-browsers.scm=09=09=09\ diff --git a/gnu/packages/wdl.scm b/gnu/packages/wdl.scm new file mode 100644 index 0000000000..afb8000e78 --- /dev/null +++ b/gnu/packages/wdl.scm @@ -0,0 +1,85 @@ +;;; 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 git-download) + #:use-module (guix build-system gnu) + #:use-module (gnu packages) + #:use-module (gnu packages fontutils) + #:use-module (gnu packages gl) + #:use-module (gnu packages glib) + #: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") + (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 cairo + fontconfig + freetype + gdk-pixbuf + glib + gobject-introspection + gtk+ + mesa + pango)) + (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