diff options
author | Hans de Graaff <graaff@gentoo.org> | 2021-06-05 08:21:02 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2021-06-05 09:57:39 +0200 |
commit | 9eb1868e9fc3f58a360704f19a80478e950d83fd (patch) | |
tree | 6b437265263539e335369fec10d2c3dad7e79646 /app-emacs/libegit2 | |
parent | net-misc/you-get: version bump, 0.4.1527 (diff) | |
download | gentoo-9eb1868e9fc3f58a360704f19a80478e950d83fd.tar.gz gentoo-9eb1868e9fc3f58a360704f19a80478e950d83fd.tar.bz2 gentoo-9eb1868e9fc3f58a360704f19a80478e950d83fd.zip |
app-emacs/libegit2: initial import
New dependency for app-emacs/magit
Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'app-emacs/libegit2')
-rw-r--r-- | app-emacs/libegit2/Manifest | 1 | ||||
-rw-r--r-- | app-emacs/libegit2/files/50libegit2-gentoo.el | 4 | ||||
-rw-r--r-- | app-emacs/libegit2/libegit2-0.0.20200515.ebuild | 53 | ||||
-rw-r--r-- | app-emacs/libegit2/metadata.xml | 14 |
4 files changed, 72 insertions, 0 deletions
diff --git a/app-emacs/libegit2/Manifest b/app-emacs/libegit2/Manifest new file mode 100644 index 000000000000..a90bba907bc2 --- /dev/null +++ b/app-emacs/libegit2/Manifest @@ -0,0 +1 @@ +DIST libegit2-0.0.20200515.tar.gz 132122 BLAKE2B 2e8e06fb833e5ea2ee0f4e1fa760d30e91235a9b9c4a465de6d8a12d6c8431bdc85204546ba36c36f206e2788d9f1cda00d578c1c40057ccfb3f2117e8302013 SHA512 f604591ba272ea1cef8c428f644c0cfcc4ba2438a55c2b7a0dd1cdcb15836c755c0c6bdc6c42bd6da05935bba7fdac30efe65f26307599b07e591f4efdd1e897 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> |