diff options
Diffstat (limited to 'app-emacs/magit/magit-1.2.0-r1.ebuild')
-rw-r--r-- | app-emacs/magit/magit-1.2.0-r1.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/app-emacs/magit/magit-1.2.0-r1.ebuild b/app-emacs/magit/magit-1.2.0-r1.ebuild new file mode 100644 index 000000000000..4ac01155dfad --- /dev/null +++ b/app-emacs/magit/magit-1.2.0-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit elisp + +DESCRIPTION="An Emacs mode for GIT" +HOMEPAGE="http://magit.github.io/" +SRC_URI="http://github.com/downloads/magit/magit/${P}.tar.gz" + +LICENSE="GPL-3+ FDL-1.2+" +SLOT="0" +KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux" +IUSE="contrib" + +ELISP_PATCHES="${P}-delete-directory.patch" +SITEFILE="50${PN}-gentoo.el" + +RESTRICT="test" + +src_compile() { + # The upstream build system ignores errors during byte-compilation + # and happily installs broken files, causing errors at runtime. + # Call elisp-compile, in order to catch them here already. + elisp-compile *.el + emake core docs + use contrib && emake contrib + rm 50magit.el magit-pkg.el || die +} + +src_install() { + elisp-install ${PN} *.{el,elc} || die + elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die + doinfo magit.info + dodoc README.md + + if use contrib; then + elisp-install ${PN} contrib/*.{el,elc} || die + dobin contrib/magit + fi +} |