From patchwork Sat Mar 26 14:09:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roman Scherer X-Patchwork-Id: 38121 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 B960727BBEA; Sat, 26 Mar 2022 14:37:20 +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_H5,RCVD_IN_MSPIKE_WL, 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 4916527BBE9 for ; Sat, 26 Mar 2022 14:37:20 +0000 (GMT) Received: from localhost ([::1]:45466 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nY7Xb-0000cP-BP for patchwork@mira.cbaines.net; Sat, 26 Mar 2022 10:37:19 -0400 Received: from eggs.gnu.org ([209.51.188.92]:40030) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nY7A7-0008QT-CF for guix-patches@gnu.org; Sat, 26 Mar 2022 10:13:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60557) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nY7A6-0003n1-Vp for guix-patches@gnu.org; Sat, 26 Mar 2022 10:13:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nY7A6-0006ng-LA for guix-patches@gnu.org; Sat, 26 Mar 2022 10:13:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54581] Add emacs-sqlite3-api package Resent-From: Roman Scherer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 26 Mar 2022 14:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54581 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 54581@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164830396426115 (code B ref -1); Sat, 26 Mar 2022 14:13:02 +0000 Received: (at submit) by debbugs.gnu.org; 26 Mar 2022 14:12:44 +0000 Received: from localhost ([127.0.0.1]:54454 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nY79o-0006n9-CL for submit@debbugs.gnu.org; Sat, 26 Mar 2022 10:12:44 -0400 Received: from lists.gnu.org ([209.51.188.17]:46768) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nY79n-0006n2-GV for submit@debbugs.gnu.org; Sat, 26 Mar 2022 10:12:43 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39986) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nY79n-0007tc-8f for guix-patches@gnu.org; Sat, 26 Mar 2022 10:12:43 -0400 Received: from [2a00:1450:4864:20::635] (port=44883 helo=mail-ej1-x635.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nY79k-0003lZ-T3 for guix-patches@gnu.org; Sat, 26 Mar 2022 10:12:42 -0400 Received: by mail-ej1-x635.google.com with SMTP id lr4so11967729ejb.11 for ; Sat, 26 Mar 2022 07:12:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=burningswell-com.20210112.gappssmtp.com; s=20210112; h=user-agent:from:to:subject:date:message-id:mime-version; bh=nJzrqgrMS2bqqDegKNhxjfw4yYbvn++QXodCRhtzUcY=; b=YdMXTeqbAL3WQwK6EPQ3/0x2YdpAmA08LAz0rYdiJXe4332arhZQl89QSAKuKdgPD1 QhlDM6bgvwwEpLHMYgi12UGskiNTdcv2NgVXhI2sCyky8KlmoSmB5fdAPVSAQDDoPxLe BlvtQzjReM72dflav6jTNqd+D7xAsV44HvupJwDT17g4GnO44U9zVyBqkd/kcnZrMhdG jrsv4ClPn+1F0KkeMZMs0cJsYLekwAn/1v22OUd8mVT87DmmxXJVRdO5f+TpBvYpg3X8 MOTNJW9sE7pmbIXDsNCuPr0yjsqbY8fbKwVlbUypLxByh+U3T6CQJREKS5nl8BlmwjW/ fPWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=nJzrqgrMS2bqqDegKNhxjfw4yYbvn++QXodCRhtzUcY=; b=LpN1WsMwJzhbmLarnU72ukQDBJf4NDyy9aZYzTAaHbK6c7704jF65MbgMUYrBUbhnj HLF+Oz3Xn02MfFCIrdFJ/bhDj3KBZJmqhmuZGremG4hGSVqUU93/f4z0ZnbV2ymeL/dX 7Jd04VfSvqryBR9XMmio/dOrLS7TAbrTMjjDb+vO6D5vekGVIlQzgNB8gAFXZLJ3//o9 fsPdatLgUl8FeUFXInM7ELQX1ugdYuFHAVV/m9RZLQuj/9i6mFkPyphUTPFHdZU2hego ibNzLZv4+z9FpUUeJIf0l/muMF6+ddRXD/ThsN0xQAzMOAlCGwc2wOfZg9LldkQVpoq3 jpTw== X-Gm-Message-State: AOAM532JtpG95aaR1Q5SaV5Rcin2x9vSiAZbpKpw19zFuYFzTq7vYX+p eA82Oqx2sZlg3XHcF5oxAH50ql1BEJPoZL1S X-Google-Smtp-Source: ABdhPJzvDFmyuHPj/0XSJs4vm99SmUTyaidQkn2wAFplvs/ZUcpaLT1HbfgW8HjjlHYYwbwJwByiRA== X-Received: by 2002:a17:906:3ad3:b0:6cd:382b:86e5 with SMTP id z19-20020a1709063ad300b006cd382b86e5mr16554684ejd.145.1648303958369; Sat, 26 Mar 2022 07:12:38 -0700 (PDT) Received: from thinkpad (tmo-116-228.customers.d1-online.com. [80.187.116.228]) by smtp.gmail.com with ESMTPSA id jg15-20020a170907970f00b006e0466dcc42sm3578966ejc.134.2022.03.26.07.12.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Mar 2022 07:12:37 -0700 (PDT) User-agent: mu4e 1.6.10; emacs 28.0.92 From: Roman Scherer Date: Sat, 26 Mar 2022 15:09:46 +0100 Message-ID: <87ils0g5uz.fsf@burningswell.com> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::635 (failed) Received-SPF: none client-ip=2a00:1450:4864:20::635; envelope-from=roman.scherer@burningswell.com; helo=mail-ej1-x635.google.com X-Spam_score_int: -4 X-Spam_score: -0.5 X-Spam_bar: / X-Spam_report: (-0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Sat, 26 Mar 2022 10:37:11 -0400 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" X-getmail-retrieved-from-mailbox: Patches Hello Guix, this patch adds the emacs-sqlite3-api package to Guix. It is a dynamic module for GNU Emacs 25+ that provides direct access to the core SQLite3 C API from Emacs Lisp. Could you please review it? Thanks, Roman. From 9136e4ad504528763315dcb2148c4da0ca1dbe74 Mon Sep 17 00:00:00 2001 From: r0man Date: Sat, 26 Mar 2022 14:59:01 +0100 Subject: [PATCH] Add emacs-sqlite3-api package This patch adds the emacs-sqlite3-api package to Guix. It is a dynamic module for GNU Emacs 25+ that provides direct access to the core SQLite3 C API from Emacs Lisp. --- gnu/packages/emacs-xyz.scm | 47 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 42fc13f4c2..422739a744 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -5731,6 +5731,53 @@ (define-public emacs-sqlite It is not intended as a user interface.") (license license:gpl3+)))) +(define-public emacs-sqlite3-api + (let ((version "0.0.1") + (revision "0") + (commit "88dfeae8f9612cb3564a7393aa8a5c867aacbaf8")) + (package + (name "emacs-sqlite3-api") + (version (git-version version revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/pekingduck/emacs-sqlite3-api") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0sj1fsgcgfzz6dfpmp8r5gmdwpbdzpk5g5lm8j7c3nqj6wqgg7g6")))) + (build-system emacs-build-system) + (arguments + `(#:modules ((guix build emacs-build-system) + (guix build emacs-utils) + (guix build utils)) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-module-load + (lambda* (#:key outputs #:allow-other-keys) + (chmod "sqlite3.el" #o644) + (emacs-substitute-sexps "sqlite3.el" + ("(require 'sqlite3-api nil t)" + `(module-load ,(string-append (assoc-ref outputs "out") + "/lib/sqlite3-api.so")))))) + (add-before 'install 'build-emacs-module + ;; Run make. + (lambda* (#:key (make-flags '()) outputs #:allow-other-keys) + ;; Compile the shared object file. + (apply invoke "make" "CC=gcc" make-flags) + ;; Move the file into /lib. + (install-file "sqlite3-api.so" + (string-append (assoc-ref outputs "out") + "/lib"))))) + #:tests? #f)) + (inputs (list sqlite)) + (home-page "https://github.com/pekingduck/emacs-sqlite3-api") + (synopsis "SQLite3 API for GNU Emacs 25+") + (description "SQLite3 is a dynamic module for GNU Emacs 25+ that provides +direct access to the core SQLite3 C API from Emacs Lisp.") + (license license:gpl3+)))) + (define-public emacs-sr-speedbar (let ((commit "77a83fb50f763a465c021eca7343243f465b4a47") (revision "0")) -- 2.34.0