* [gentoo-commits] repo/proj/emacs:graveyard commit in: app-emacs/libegit2/, app-emacs/libegit2/files/
@ 2024-09-02 16:01 Ulrich Müller
0 siblings, 0 replies; only message in thread
From: Ulrich Müller @ 2024-09-02 16:01 UTC (permalink / raw
To: gentoo-commits
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>
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2024-09-02 16:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-02 16:01 [gentoo-commits] repo/proj/emacs:graveyard commit in: app-emacs/libegit2/, app-emacs/libegit2/files/ Ulrich Müller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox