From patchwork Tue Dec 27 22:47:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Simon Josefsson X-Patchwork-Id: 45613 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 A766227BBED; Tue, 27 Dec 2022 22:48:22 +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=ham 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 12BCB27BBE9 for ; Tue, 27 Dec 2022 22:48:21 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pAIjt-0006Ob-1z; Tue, 27 Dec 2022 17:48:05 -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 1pAIjq-0006OK-UI for guix-patches@gnu.org; Tue, 27 Dec 2022 17:48: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 1pAIjq-0000d9-Ct for guix-patches@gnu.org; Tue, 27 Dec 2022 17:48:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pAIjq-0001V9-9N for guix-patches@gnu.org; Tue, 27 Dec 2022 17:48:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60369] [PATCH] gnu: Add eweouz. Resent-From: Simon Josefsson Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 27 Dec 2022 22:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 60369 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60369@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16721812435580 (code B ref -1); Tue, 27 Dec 2022 22:48:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 Dec 2022 22:47:23 +0000 Received: from localhost ([127.0.0.1]:56727 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pAIjD-0001Rw-62 for submit@debbugs.gnu.org; Tue, 27 Dec 2022 17:47:23 -0500 Received: from lists.gnu.org ([209.51.188.17]:56758) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pAIjB-0001Rn-Pm for submit@debbugs.gnu.org; Tue, 27 Dec 2022 17:47:22 -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 1pAIjB-0006Ib-Km for guix-patches@gnu.org; Tue, 27 Dec 2022 17:47:21 -0500 Received: from uggla.sjd.se ([2001:9b1:8633::107]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pAIj9-0000Zj-36 for guix-patches@gnu.org; Tue, 27 Dec 2022 17:47:21 -0500 DKIM-Signature: v=1; a=ed25519-sha256; q=dns/txt; c=relaxed/relaxed; d=josefsson.org; s=ed2110; h=Content-Type:MIME-Version:Message-ID:Date: Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description; bh=PZixA49SZBmsXr68IqQeCH8uBZC1BlxGDz8a+5Y+/KI=; t=1672181238; x=1673390838; b=1P6RoYKW/mo+OKof5/VG2meGTXPBrt+yGY0nO58aO9wW6Hk GdFS9RwhNf+Q7gSwgvkT4RfXDMboD2uwG0ajyAQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=josefsson.org; s=rsa2110; h=Content-Type:MIME-Version:Message-ID:Date: Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description; bh=PZixA49SZBmsXr68IqQeCH8uBZC1BlxGDz8a+5Y+/KI=; t=1672181238; x=1673390838; b=NhotjsCpdl47KXR1fpf9utMaOcKNcStepSSTErMeglD7/cZ rScdLqxBuLVTYfkZKNxQVd0OcU1RFadDbHxgg5dR0DFkgj2+Yz5BFTuj1SdXMMbop7z7Ty3y5ila9 nxCBTnr1vd86r7aWF0G184YjmIhI8Z6BbQX4cfo/8ZLL38OUdECIzW9cDWtpXE65lRXLYxD/Mfg5g wqdMhGozfFu6IRAfrfVIJkQtlS4Oq4RSOi8ZcRKZaKe6v1Gq47RlXeLAcfMNsPYVJ+DxlGayH5sMP IWnShiCZvWTAcsE2XVAxh6hvIUo/wfPcn6UPX3UDpWwGQhzaUuiiFdXOR1gNAuCucGFZUUHsg6Kz4 8TUbB8NryxWELy2/vNFgZVdiAi3eSDhSGHSvjyc1j4iDm/uOU/7/+V2D8NCwdc5Zd2pkGlfEZZks/ hWcAvYvDbGTaOerV7AyAxEeF; Received: from [2001:9b1:41ac:ff00:67bf:136:16d3:4a37] (port=48878 helo=kaka) by uggla.sjd.se with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pAIj4-006KxE-9B for guix-patches@gnu.org; Tue, 27 Dec 2022 23:47:14 +0100 X-Hashcash: 1:22:221227:guix-patches@gnu.org::ToMs607j81OkOtKm:F9L5 OpenPGP: id=B1D2BD1375BECB784CF4F8C4D73CF638C53C06BE; url=https://josefsson.org/key-20190320.txt Date: Tue, 27 Dec 2022 23:47:13 +0100 Message-ID: <871qok1n2m.fsf@josefsson.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Received-SPF: pass client-ip=2001:9b1:8633::107; envelope-from=simon@josefsson.org; helo=uggla.sjd.se X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_DNSWL_MED=-2.3, 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: Simon Josefsson X-ACL-Warn: , Simon Josefsson via Guix-patches X-Patchwork-Original-From: Simon Josefsson via Guix-patches via From: Simon Josefsson 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 Hi. This adds a GNOME Evolution Data Server interface to Emacs. Test it by adding a contact to the EDS address book (e.g., through GNOME Contacts) and then do 'emacs -q' and M-x eweouz RET and search for parts of the name of the contact. While the package builds and works for me, I would appreciate a review so I can learn -- I wrote this without understanding anything of what I was doing, but merely pattern-matched things against other existing packages that looked relevant. /Simon From 52b0ad49ef0436346f53bebee4690961fba9cf90 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Tue, 27 Dec 2022 23:38:33 +0100 Subject: [PATCH] gnu: Add eweouz. * gnu/packages/emacs-xyz.scm (eweouz): New variable. --- gnu/packages/emacs-xyz.scm | 66 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index fb4c9b70f9..adb0689df1 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -119,6 +119,7 @@ ;;; Copyright © 2022 Nicolas Graves ;;; Copyright © 2022 Thiago Jung Bauermann ;;; Copyright © 2022 Joeke de Graaf +;;; Copyright © 2022 Simon Josefsson ;;; ;;; This file is part of GNU Guix. ;;; @@ -3053,6 +3054,71 @@ (define-public emacs-bbdb-vcard (BBDB). Version 2.1 vCards are converted into version 3.0 on import.") (license license:gpl2+)))) +(define-public eweouz + (package + (name "eweouz") + (version "0.12") + (source + (origin + (method url-fetch) + ;; README's git://git.err.no/eweouz is gone + (uri (string-append "mirror://debian/pool/main/e/eweouz/" + "eweouz_" version ".tar.xz")) + (file-name (string-append name "-" version ".tar.xz")) + (sha256 + (base32 + "192zl3dyphhvcrvn65bqsrc4h6zks8b747lp6pqbpbmsqy4g4mr8")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f + #:modules ((guix build gnu-build-system) + ((guix build emacs-build-system) #:prefix emacs:) + (guix build utils) + (guix build emacs-utils)) + #:imported-modules (,@%gnu-build-system-modules + (guix build emacs-build-system) + (guix build emacs-utils)) + #:configure-flags + (list (string-append "--with-lispdir=" + (emacs:elpa-directory %output))) + #:phases + (modify-phases %standard-phases + (replace 'bootstrap + (lambda _ (invoke "autoreconf" "-vif") #t)) + (add-after 'compress-documentation 'enter-lisp-dir + (lambda _ (chdir "lisp/"))) + (add-after 'enter-lisp-dir 'emacs-patch-variables + (lambda* (#:key outputs #:allow-other-keys) + (make-file-writable "eweouz.el") + (substitute* "eweouz.el" + (("\\(setq eweouz-helper-dirs '\\(") + (format #f "(setq eweouz-helper-dirs '(~s " + (string-append (assoc-ref outputs "out") + "/libexec/eweouz")))))) + (add-after 'emacs-patch-variables 'emacs-expand-load-path + (assoc-ref emacs:%standard-phases 'expand-load-path)) + (add-after 'emacs-expand-load-path 'emacs-add-install-to-native-load-path + (assoc-ref emacs:%standard-phases 'add-install-to-native-load-path)) + (add-after 'emacs-add-install-to-native-load-path 'emacs-install + (assoc-ref emacs:%standard-phases 'install)) + (add-after 'emacs-install 'emacs-build + (assoc-ref emacs:%standard-phases 'build)) + (add-after 'emacs-install 'emacs-make-autoloads + (assoc-ref emacs:%standard-phases 'make-autoloads))))) + (native-inputs + (list autoconf + automake + emacs-minimal + pkg-config)) + (inputs + (list evolution-data-server)) + (home-page "https://tracker.debian.org/pkg/eweouz") + (synopsis "Emacs interface to Evolution Data Server") + (description + "eweouz is an tool for looking up contacts from Evolution Data Server +from Emacs. It is similar to BBDB, except much, much simpler.") + (license license:gpl2))) + (define-public emacs-beacon (package (name "emacs-beacon") -- 2.38.1