summaryrefslogtreecommitdiff
path: root/app-emacs/libegit2
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-06-15 14:57:03 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-06-15 14:57:03 +0100
commitd18bf1e01b65ee4bf0c804e2843b282d3d4e5d7c (patch)
tree4a95cbc6ffdf13bad6ecbc7f8d5af99631984123 /app-emacs/libegit2
parente748ba9741f6540f4675c23e3e37b73e822c13a4 (diff)
gentoo resync : 15.06.2021
Diffstat (limited to 'app-emacs/libegit2')
-rw-r--r--app-emacs/libegit2/Manifest4
-rw-r--r--app-emacs/libegit2/files/50libegit2-gentoo.el4
-rw-r--r--app-emacs/libegit2/libegit2-0.0.20200515.ebuild53
-rw-r--r--app-emacs/libegit2/metadata.xml14
4 files changed, 75 insertions, 0 deletions
diff --git a/app-emacs/libegit2/Manifest b/app-emacs/libegit2/Manifest
new file mode 100644
index 000000000000..11ecb52c303b
--- /dev/null
+++ b/app-emacs/libegit2/Manifest
@@ -0,0 +1,4 @@
+AUX 50libegit2-gentoo.el 199 BLAKE2B f9f7b6d2c6d8a70d37e698dd71a40b0ccb4224c1276393adfe2eb546313cc3bea29136820f98d3579f6cdeafd0559e1739150be503233de44dddefd3f97b66b6 SHA512 067030b050715f80251b28a179c0b4779efd311c4d5c1e0bb2bdd10f95442cd8f243c45c81f004ad8362740aa0139667324ef9c829abec7291ddfe801ea4c67a
+DIST libegit2-0.0.20200515.tar.gz 132122 BLAKE2B 2e8e06fb833e5ea2ee0f4e1fa760d30e91235a9b9c4a465de6d8a12d6c8431bdc85204546ba36c36f206e2788d9f1cda00d578c1c40057ccfb3f2117e8302013 SHA512 f604591ba272ea1cef8c428f644c0cfcc4ba2438a55c2b7a0dd1cdcb15836c755c0c6bdc6c42bd6da05935bba7fdac30efe65f26307599b07e591f4efdd1e897
+EBUILD libegit2-0.0.20200515.ebuild 1054 BLAKE2B d8e402885e7462fefb237d6740f822b4ad229611a01939c2fd3611aa40ff57652a8dff254d504b45bdc0ceafbc8032e154cf39b31e8b999a41657aa89ed9c666 SHA512 7bb6ecc9c06e3517259efd08500764902a3f874dfccead423207dd9f27ef47f6e86fad5f874f29e55f6d4230d84e307c6268c37c50be60f4a67694e074fc0520
+MISC metadata.xml 481 BLAKE2B d06b7cfec5217134e02da97f1ddce3c04b515ac9739ba5ae2044a00bad58350b1da130d07db461fca4c0fed83273ddcbe310cec4b5247b95ee980122926ee62f SHA512 777c402b7b95a7b37e920553080bfb848529f0fa74cf15cc3d3e0664405dd9c7c711f248f3e3421d2019e89b4b50aa5cd42994796462a3faec09c3adbeb6f4fb
diff --git a/app-emacs/libegit2/files/50libegit2-gentoo.el b/app-emacs/libegit2/files/50libegit2-gentoo.el
new file mode 100644
index 000000000000..4117c7926cd8
--- /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.20200515.ebuild b/app-emacs/libegit2/libegit2-0.0.20200515.ebuild
new file mode 100644
index 000000000000..866475b7aba7
--- /dev/null
+++ b/app-emacs/libegit2/libegit2-0.0.20200515.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+NEED_EMACS=26
+COMMIT="0ef8b13aef011a98b7da756e4f1ce3bb18e4d55a"
+
+BUILD_DIR=.
+
+inherit cmake elisp
+
+DESCRIPTION="Emacs bindings for libgit2"
+HOMEPAGE="https://github.com/magit/libegit2"
+SRC_URI="https://github.com/magit/libegit2/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND=">=dev-libs/libgit2-1.0.0"
+RDEPEND="${DEPEND}
+ >=app-editors/emacs-26:*[dynamic-loading]"
+
+S="${WORKDIR}/${PN}-${COMMIT}"
+SITEFILE="50${PN}-gentoo.el"
+DOCS="README.md"
+
+# The tests seem to be written specifically for the libegit2 git
+# repository.
+RESTRICT="test"
+
+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 000000000000..717abc0dea75
--- /dev/null
+++ b/app-emacs/libegit2/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://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>