Received: (at submit) by debbugs.gnu.org; 21 Jun 2023 11:27:44 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 21 07:27:44 2023 Received: from localhost ([127.0.0.1]:60781 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qBvzz-0001SM-4L for submit <at> debbugs.gnu.org; Wed, 21 Jun 2023 07:27:44 -0400 Received: from lists.gnu.org ([209.51.188.17]:40546) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <kotshie@HIDDEN>) id 1qBmeQ-0006Sj-4k for submit <at> debbugs.gnu.org; Tue, 20 Jun 2023 21:28:51 -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 <kotshie@HIDDEN>) id 1qBmeP-0000w5-AK for guix-patches@HIDDEN; Tue, 20 Jun 2023 21:28:49 -0400 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <kotshie@HIDDEN>) id 1qBmeN-0006fu-Co for guix-patches@HIDDEN; Tue, 20 Jun 2023 21:28:49 -0400 Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-1b6824141b4so9415815ad.1 for <guix-patches@HIDDEN>; Tue, 20 Jun 2023 18:28:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687310925; x=1689902925; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=pguNfLvO2xozTo8E/Ermg+9Ny47B06rYdTWPzJ/Pxzs=; b=dvEpX8RnZsx3oXwXiWBMVJG7LfyAJnLQjDMtCYiMCC6atHXMX5888K3QWPXnm9xo3+ UwzNcfgnSHzeVDI7TAr2iQfu0FdSGJlQeWmgIAqQVFelxtRk1VB3S9fZK3HJbXtBgbD1 RZ7kJ1HEcp7D647DdW1Y4r3eLH/hjSH7cH1G4jSLogJizzqBpQFv9VwcNdF5d26a6s3W 6A5zI/cSTFGhJkINx0HDZlYNq957RniX+NTw5YCP4i5VF0TC51nY9MCKEII++StsuR3a j8U9IoRHG2mQf/MK3lNfqc+pQY85d7DbDrFkUJNnSKJSOWI6zqA/qGl/sovMXl5Dd2Ap cwkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687310925; x=1689902925; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=pguNfLvO2xozTo8E/Ermg+9Ny47B06rYdTWPzJ/Pxzs=; b=aiFsruMgfN073Q85ligCcvFlsqtGefWKF4Wpn5RDv8Bb+6QzMUV3qho2J2paP/2pjk Bbcafw7KMtyFjlqjyOA0HwwfbkYhhEBvsF2nJwZz4PkcWceQ3nUoSiS3TMSb+CoQgUz5 Hjym5Epc3rU/pBKAwbAMDQXgGfek81VuhbpoIAIuwd3QRzMVb8cDmNjLk5TPYNvSqmiK xksbJSG86tE/LD3QoR88ngFxD0ZXEdyzJZ7tkfmUK4lF5iPLNaJLwH/yBVcZlRxd6enW qs5g9hqkoGC08qrTxBi/QgF50SWtw7xX0kDA+79wp7ys5MNFVEzTHDXYICl2BKYnQ2D7 hNXw== X-Gm-Message-State: AC+VfDyjbHRrHmmCHqviGRBa0GdwIl0TOlGj8/wWqE6ETNEVynkqiyGK hf8aOxf1BAp97lrBodalrDIiIsmieA0ioA== X-Google-Smtp-Source: ACHHUZ61jJlDNCZDK+rBXw8JLmwVnewvjFO5Wj4JdgfGCw12shiAugXeyECCxWiehFWoJzj6nOKg1A== X-Received: by 2002:a17:902:e5cc:b0:1b5:1475:2f21 with SMTP id u12-20020a170902e5cc00b001b514752f21mr23463675plf.20.1687310925180; Tue, 20 Jun 2023 18:28:45 -0700 (PDT) Received: from localhost.localdomain ([68.72.208.140]) by smtp.gmail.com with ESMTPSA id n11-20020a170902d2cb00b001ab01598f40sm2192366plc.173.2023.06.20.18.28.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jun 2023 18:28:44 -0700 (PDT) From: Jose Ortiz <kotshie@HIDDEN> To: guix-patches@HIDDEN Subject: [PATCH] gnu: webview: Tiny cross-platform webview library. Date: Tue, 20 Jun 2023 18:28:39 -0700 Message-Id: <b954cdeac839e861108cce23f29127905589e547.1687310903.git.kotshie@HIDDEN> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Type: text/plain; charset=y Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::634; envelope-from=kotshie@HIDDEN; helo=mail-pl1-x634.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 21 Jun 2023 07:27:39 -0400 Cc: Jose Ortiz <kotshie@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.3 (--) * gnu/packages/webview.scm (libwebview): Tiny cross-platform webview library for C/C++/Golang. Uses Webkit(Gtk/Cocoa) and Edge(Windows). --- gnu/packages/webview.scm | 81 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 gnu/packages/webview.scm diff --git a/gnu/packages/webview.scm b/gnu/packages/webview.scm new file mode 100644 index 0000000000..ee3977ba6a --- /dev/null +++ b/gnu/packages/webview.scm @@ -0,0 +1,81 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2023 Jose Ortiz <kotshie@HIDDEN> +;;; +;;; 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 <http://www.gnu.org/licenses/>. + +(define-module (gnu packages webview) + #:use-module (gnu packages) + #:use-module (guix packages) + #:use-module (guix build-system gnu) + #:use-module (guix git-download) + #:use-module (gnu packages pkg-config) + #:use-module (gnu packages gtk) + #:use-module (gnu packages webkit) + #:use-module ((guix licenses) #:prefix license:)) + + +(define-public webview + (package + (name "webview") + (version "899018a") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/webview/webview") + (commit "899018ad0e5cc22a18cd734393ccae4d55e3b2b4"))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "008bk2l6spsixsyk0dssnhnwdhmhwbm3qypk1rrz02rza28dzigb")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f + #:phases (modify-phases %standard-phases + (delete 'configure) + (replace 'build + (lambda _ + (use-modules (ice-9 popen) + (ice-9 rdelim)) + (define (webview-flags) + (let* ((port (open-input-pipe (string-append + "pkg-config --cflags --libs " + "gtk+-3.0 webkit2gtk-4.0"))) + (results (string-split (read-line port) #\space))) + results)) + (apply invoke + `("g++" "webview.cc" + "-fPIC" + "-shared" + "-DWEBVIEW_GTK" + "-std=c++11" + ,@(webview-flags) + "-o" + "libwebview.so")))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((output (assoc-ref outputs "out")) + (lib (string-append output "/lib")) + (include (string-append output "/include"))) + (install-file "libwebview.so" lib) + (mkdir-p include) + (install-file "webview.h" include))))))) + (native-inputs (list pkg-config)) + (inputs (list gtk+ webkitgtk-with-libsoup2)) + (home-page "https://github.com/webview/webview") + (synopsis "Tiny cross-platform webview library") + (description "Tiny cross-platform webview library for C/C++/Golang. +Uses WebKit (Gtk/Cocoa) and Edge (Windows).") + (license license:expat))) base-commit: d884fc9e2efecfba09af4694f5a13ad7fc6f704f -- 2.40.1
Jose Ortiz <kotshie@HIDDEN>
:guix-patches@HIDDEN
.
Full text available.guix-patches@HIDDEN
:bug#64206
; Package guix-patches
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.