diff options
author | Sam James <sam@gentoo.org> | 2021-09-03 18:59:11 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-09-03 18:59:11 +0100 |
commit | 4e243c5e8a23b290503a5572cce60f174debfa0a (patch) | |
tree | 997411202f673c1f66340e29cd453819a78ca699 /app-emacs/libegit2/libegit2-0.0.20200515-r1.ebuild | |
parent | media-gfx/exiv2: drop gtest RDEPEND(!) (diff) | |
download | gentoo-4e243c5e8a23b290503a5572cce60f174debfa0a.tar.gz gentoo-4e243c5e8a23b290503a5572cce60f174debfa0a.tar.bz2 gentoo-4e243c5e8a23b290503a5572cce60f174debfa0a.zip |
app-emacs/libegit2: revbump for adding subslot dep
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-emacs/libegit2/libegit2-0.0.20200515-r1.ebuild')
-rw-r--r-- | app-emacs/libegit2/libegit2-0.0.20200515-r1.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/app-emacs/libegit2/libegit2-0.0.20200515-r1.ebuild b/app-emacs/libegit2/libegit2-0.0.20200515-r1.ebuild new file mode 100644 index 000000000000..7aa7a128835b --- /dev/null +++ b/app-emacs/libegit2/libegit2-0.0.20200515-r1.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 +} |