From patchwork Mon Oct 28 21:28:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 69599 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 6D03A27BBE9; Mon, 28 Oct 2024 21:31:15 +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=-6.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL, RCVD_IN_VALIDITY_SAFE,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 59B5627BBE2 for ; Mon, 28 Oct 2024 21:31:14 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t5XKL-0007aY-R1; Mon, 28 Oct 2024 17:31:05 -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 1t5XKK-0007a8-FR for guix-patches@gnu.org; Mon, 28 Oct 2024 17:31:04 -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 1t5XKK-0005v2-5r for guix-patches@gnu.org; Mon, 28 Oct 2024 17:31:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=T17InkOk3x+5k4cREJHpDM4mgiDTg288uQyd2A89Q9s=; b=LZ9Q020AZK/w1yLpnxjQQi34SGSEVN9etn8Wd71LZ6aI4NUcK8XNDSJxfjZGQXJXvCXAzhK7IlOE7cAIqfSOgfhWMVssZjDEE1L4sHnmSRGpg9w3LxdvV1s32NSKRGFHvA6GZgDqh1oNWdsWsF9APmzjHiZG4zv2sqn7qqCXMT5O8elMKU3xNDGY5B13uirblfsRoUG1kLXJqaOocQz3iR9Sb/Hqqvi2UIjNA3W2YTngspiVWj1IPHWaFnKGL4cqABlwXIj1VIZYiYc8YDNHp0AMvq2ik9TamslxZTSs/3vi8Mj3xfeMRSuP+ryHbRjuoCehkBh52xAPXZa1NYQ9Pg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t5XKJ-0005xx-W0; Mon, 28 Oct 2024 17:31:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73839] [PATCH v3 5/5] gnu: Add cl-wayflan. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: glv@posteo.net, cox.katherine.e+guix@gmail.com, me@bonfacemunyoki.com, sharlatanus@gmail.com, jgart@dismail.de, guix-patches@gnu.org Resent-Date: Mon, 28 Oct 2024 21:31:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73839 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73839@debbugs.gnu.org Cc: Sharlatan Hellseher , Grigory Shepelev , Guillaume Le Vaillant , Katherine Cox-Buday , Munyoki Kilyungi , Sharlatan Hellseher , jgart X-Debbugs-Original-Xcc: Guillaume Le Vaillant , Katherine Cox-Buday , Munyoki Kilyungi , Sharlatan Hellseher , jgart Received: via spool by 73839-submit@debbugs.gnu.org id=B73839.173015101322469 (code B ref 73839); Mon, 28 Oct 2024 21:31:03 +0000 Received: (at 73839) by debbugs.gnu.org; 28 Oct 2024 21:30:13 +0000 Received: from localhost ([127.0.0.1]:54904 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5XJU-0005pF-21 for submit@debbugs.gnu.org; Mon, 28 Oct 2024 17:30:12 -0400 Received: from mail-wr1-f42.google.com ([209.85.221.42]:51292) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5XJO-0005o8-8d for 73839@debbugs.gnu.org; Mon, 28 Oct 2024 17:30:07 -0400 Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-37d43a9bc03so3363179f8f.2 for <73839@debbugs.gnu.org>; Mon, 28 Oct 2024 14:30:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730150945; x=1730755745; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=T17InkOk3x+5k4cREJHpDM4mgiDTg288uQyd2A89Q9s=; b=igZAWhx6fLTIO9yPOUTyAmsRnJ+EzOJ0C9nBHX9JLDd0Kgul9NzuuNhjTa0ywp2qHZ UoXBNJO2QkKeJEksVwFpBybkVGbod1WQbitisOwYM33blwgj/jyuiJdDOGZgjKlfCTI6 ef2+/7n4+2FbTN/AvA/D8mNwF7iBnHQ7HzPzEbY3DUUh+alMSHHnkjuFZ13N+DGCumpK UyXCVcZ+Um1EkqF5jHN1RjRGSxUFUqsxK2KAB/LrzEZZZWlKYLpzv3Dm2M35OvUCGqjd 9OoczTW1L7fpc4r/FscM+NDie9O8H+Kkfn9Feyxe5J9Vq20qb1DqFTRgp1GyuQ/Vpbor oD8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730150945; x=1730755745; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=T17InkOk3x+5k4cREJHpDM4mgiDTg288uQyd2A89Q9s=; b=HkrUZfa9oOprMUIzZGXcLwHgtyCQYnM5KHVLm+MYXq3ObinssYJlmTmoO5DN+wy8RM X/zbvOhqIusSsg9UqxbqNrnLBIWqhqSaKnjmXTPYuLMFT+UXDM5S4wFAc7l2ssG+KHsC 0d7csCWZ3OAz7uboZrG3sNLY40bFJ0crJUEdDZPtFy4GuPrcHy3xXG7nisTBJ4Se8iHQ dIkEJ1KtZTO+7P77uf8SiHrQ1oDTbbLGYu8iNyBr9P+++njnfRChxupct/13uVo7Dn56 16vtupUV9Qs5GfH0+txtgI2eQJlXzudSLbVJuKM9GT13AvHkKvl8DSPyvqat6LoEn7ry fwpA== X-Gm-Message-State: AOJu0YwjbFUmQVtD0EIMpV+ijLWQseVdxtM2vg+5rbfc+XU3sg0MoBK9 Nk23Vdskq/hL3RpyKDV0rJaTXoD0udSwD0Z4+RhCwqhrC4pUPBduu0NEV1K7 X-Google-Smtp-Source: AGHT+IEJ5Lpu4mSvuIlgX1JqgNEdrzZJvcRpwIzlm7RSiBPDsyLXyUpZlonvlpyT7KpCZGkzG1BmkA== X-Received: by 2002:adf:f884:0:b0:37c:d1bc:2666 with SMTP id ffacd0b85a97d-380610f9e30mr7171893f8f.4.1730150945488; Mon, 28 Oct 2024 14:29:05 -0700 (PDT) Received: from guxtil.incerto.xyz (cpc100684-bagu15-2-0-cust967.1-3.cable.virginm.net. [86.8.111.200]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38058b13246sm10583480f8f.11.2024.10.28.14.29.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2024 14:29:05 -0700 (PDT) From: Sharlatan Hellseher Date: Mon, 28 Oct 2024 21:28:59 +0000 Message-ID: <9b100535d6cacf41eb16797f0ab4f173f3829fcb.1730150632.git.sharlatanus@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 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 From: Grigory Shepelev * gnu/packages/lisp-xyz.scm (cl-wayflan, ecl-wayflan, sbcl-wayflan): New variables. Change-Id: I65982ad6f5c034f611292d4f660b15e4e42f8da0 Co-authored-by: Sharlatan Hellseher --- gnu/packages/lisp-xyz.scm | 83 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm index bae84e8345..f2d4d640df 100644 --- a/gnu/packages/lisp-xyz.scm +++ b/gnu/packages/lisp-xyz.scm @@ -10477,6 +10477,89 @@ (define-public cl-wayland (define-public ecl-cl-wayland (sbcl-package->ecl-package sbcl-cl-wayland)) +(define-public sbcl-wayflan + (package + (name "sbcl-wayflan") + (version "0.0.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://git.sr.ht/~shunter/wayflan") + (commit (string-append "v" version)))) + (file-name (git-file-name "wayflan" version)) + (sha256 + (base32 "0y6hzskp1vgaigzj5b3i695sc6dn5mk7nlxs21nh5ybzmf4chhyy")))) + (build-system asdf-build-system/sbcl) + (arguments + (list + #:tests? #f ;tries to look for wayflan-client/test + #:asd-systems ''("wayflan-client" + ;; "wayflan-client/examples" fails on + ;; wayland-keyboard-demo.lisp because xkb used as + ;; :xkb, not required properly + "wayflan" + "wayflan/common"))) + (native-inputs + (list sbcl-parachute)) + (inputs + (list sbcl-alexandria + sbcl-babel + sbcl-cffi + sbcl-cl-cairo2 + sbcl-cl-colors + sbcl-cl-pango + sbcl-cl-xkb + sbcl-closer-mop + sbcl-input-event-codes + sbcl-plump + sbcl-posix-shm + wayland)) + (home-page "https://git.sr.ht/~shunter/wayflan") + (synopsis "Wayland communication library for Common Lisp") + (description + "Wayflan makes a good-faith effort to mimic @code{libwayland} behavior +not defined in the Wayland spec, to keep compatibility between the two +libraries. + +Wayflan is not a compositor nor a GUI toolkit. Its purpose is to parse Wayland +protocol XML documents and exchange Wayland messages between other processes. + +Wayflan is an ongoing project. Things may change to make Wayflan the best +client for Common Lisp projects, such as iterating on a better API. If you use +Wayflan in any projects, let me know! I'd love to give a heads up and help +transition projects to any breaking changes I make along the way. + +Features: +@itemize +@item Client support +@item All implementation done in Common Lisp from the socket up +@item Enum values are translated into keywords +@item Wayland protocol introspection +@item ASDF component @code{:wayflan-client-impl} generates code from +XML. ASDF's extensible components make it possible to teach your program new +protocols for Wayland without the need of a special build system. +@end itemize") + (license license:bsd-3))) + +(define-public cl-wayflan + (sbcl-package->cl-source-package sbcl-wayflan)) + +(define-public ecl-wayflan + (let ((pkg (sbcl-package->ecl-package sbcl-wayflan))) + (package + (inherit pkg) + (outputs '("out")) + ;; XXX: Error detected: The function CMSG-ALIGN is undefined.An error + ;; occurred during initialization: COMPILE-FILE-ERROR while compiling + ;; #. + (arguments + (substitute-keyword-arguments (package-arguments pkg) + ((#:phases phases) + `(modify-phases ,phases + (delete 'build) + (delete 'check)))))))) + (define-public sbcl-cl-webkit (package (name "sbcl-cl-webkit")