From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1667026-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 747B7158083
	for <garchives@archives.gentoo.org>; Mon,  2 Sep 2024 16:01:42 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 8B842E29E2;
	Mon,  2 Sep 2024 16:01:41 +0000 (UTC)
Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 770D9E29E2
	for <gentoo-commits@lists.gentoo.org>; Mon,  2 Sep 2024 16:01:41 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id B8D1334314C
	for <gentoo-commits@lists.gentoo.org>; Mon,  2 Sep 2024 16:01:40 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 1E4051F36
	for <gentoo-commits@lists.gentoo.org>; Mon,  2 Sep 2024 16:01:39 +0000 (UTC)
From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" <ulm@gentoo.org>
Message-ID: <1725292607.54070de87f7b0836f6e5637930e710e41d18104a.ulm@gentoo>
Subject: [gentoo-commits] repo/proj/emacs:graveyard commit in: app-emacs/libegit2/, app-emacs/libegit2/files/
X-VCS-Repository: repo/proj/emacs
X-VCS-Files: app-emacs/libegit2/Manifest app-emacs/libegit2/files/50libegit2-gentoo.el app-emacs/libegit2/libegit2-0.0.20230129.ebuild app-emacs/libegit2/metadata.xml
X-VCS-Directories: app-emacs/libegit2/files/ app-emacs/libegit2/
X-VCS-Committer: ulm
X-VCS-Committer-Name: Ulrich Müller
X-VCS-Revision: 54070de87f7b0836f6e5637930e710e41d18104a
X-VCS-Branch: graveyard
Date: Mon,  2 Sep 2024 16:01:39 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 2bdbe302-4163-45b8-91b3-fdadec7ac0d2
X-Archives-Hash: 7e43162765e0f78978118eb93385fb0d

commit:     54070de87f7b0836f6e5637930e710e41d18104a
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Mon Sep  2 15:56:47 2024 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Sep  2 15:56:47 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/emacs.git/commit/?id=54070de8

libegit2 removed 2024-07-04 bug 928920

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 app-emacs/libegit2/Manifest                     |  1 +
 app-emacs/libegit2/files/50libegit2-gentoo.el   |  4 ++
 app-emacs/libegit2/libegit2-0.0.20230129.ebuild | 51 +++++++++++++++++++++++++
 app-emacs/libegit2/metadata.xml                 | 14 +++++++
 4 files changed, 70 insertions(+)

diff --git a/app-emacs/libegit2/Manifest b/app-emacs/libegit2/Manifest
new file mode 100644
index 0000000..3a67dca
--- /dev/null
+++ b/app-emacs/libegit2/Manifest
@@ -0,0 +1 @@
+DIST libegit2-0.0.20230129.tar.gz 132237 BLAKE2B 339c11eaa5b231d33a3b23780b625798d47ab6725fede240ae95307cc0034a61a39d84075be271fff2ae8b1ff5143fb61ef243671f8ac927b07e931824c8c55d SHA512 9384e9118b29429aaa8ee7608712bcc1c9f006a35fb46332f9b999be909ac18c4753af58cd1c91c37a6b24ca9a08f7103f22d53a242296d0dc6a509a2c5e27fb

diff --git a/app-emacs/libegit2/files/50libegit2-gentoo.el b/app-emacs/libegit2/files/50libegit2-gentoo.el
new file mode 100644
index 0000000..4117c79
--- /dev/null
+++ b/app-emacs/libegit2/files/50libegit2-gentoo.el
@@ -0,0 +1,4 @@
+(add-to-list 'load-path "@SITELISP@")
+(add-to-list 'load-path "@EMACSMODULES@")
+(defvar libgit--build-dir "@EMACSMODULES@")
+(autoload 'libgit-load "libegit2" "Load the `libegit2` dynamic module." t)

diff --git a/app-emacs/libegit2/libegit2-0.0.20230129.ebuild b/app-emacs/libegit2/libegit2-0.0.20230129.ebuild
new file mode 100644
index 0000000..a3832f7
--- /dev/null
+++ b/app-emacs/libegit2/libegit2-0.0.20230129.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+NEED_EMACS=26
+COMMIT="ab1a53a6a0120872e42582fc980e779d47de6d0e"
+
+BUILD_DIR="."
+
+inherit cmake elisp
+
+DESCRIPTION="Emacs bindings for libgit2"
+HOMEPAGE="https://github.com/magit/libegit2"
+SRC_URI="https://github.com/magit/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-${COMMIT}"
+
+LICENSE="GPL-2+ GPL-3+"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv x86"
+# The tests seem to be written specifically for the libegit2 git repository.
+RESTRICT="test"
+
+DEPEND=">=dev-libs/libgit2-1.0.0:="
+RDEPEND="${DEPEND}
+	>=app-editors/emacs-26:*[dynamic-loading]"
+
+SITEFILE="50${PN}-gentoo.el"
+DOCS="README.md"
+
+src_prepare() {
+	# Don't build against the bundled submodule
+	sed -i -e '/subdirectory.*libgit2/ s/^/#/' CMakeLists.txt || die
+
+	rm -f test.el || die
+
+	cmake_src_prepare
+}
+
+src_configure() {
+	cmake_src_configure
+}
+
+src_compile() {
+	cmake_src_compile
+	elisp_src_compile
+}
+
+src_install() {
+	elisp_src_install
+	elisp-modules-install ${PN} libegit2.so
+}

diff --git a/app-emacs/libegit2/metadata.xml b/app-emacs/libegit2/metadata.xml
new file mode 100644
index 0000000..a3c240c
--- /dev/null
+++ b/app-emacs/libegit2/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+  <email>gnu-emacs@gentoo.org</email>
+  <name>Gentoo GNU Emacs project</name>
+</maintainer>
+<longdescription>
+  This is an experimental module for libgit2 bindings to Emacs, intended to boost the performance of magit.
+</longdescription>
+<upstream>
+  <remote-id type="github">magit/libegit2</remote-id>
+</upstream>
+</pkgmetadata>