You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-emacs/magit/magit-1.1.1.ebuild

37 lines
854 B

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emacs/magit/magit-1.1.1.ebuild,v 1.2 2012/11/26 11:31:15 ulm Exp $
EAPI=4
inherit elisp
DESCRIPTION="An Emacs mode for GIT"
HOMEPAGE="http://magit.github.com/magit/"
SRC_URI="http://github.com/downloads/magit/magit/${P}.tar.gz"
LICENSE="GPL-3+ FDL-1.2+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="contrib"
SITEFILE="50magit-gentoo.el"
src_compile() {
emake core docs
use contrib && emake contrib
}
src_install() {
elisp-install ${PN} magit.{el,elc} \
magit-{svn,topgit,stgit,key-mode,bisect}.{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
}