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/dev-vcs/stgit/stgit-0.14.3.ebuild

40 lines
969 B

# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/stgit/stgit-0.14.3.ebuild,v 1.4 2011/09/25 17:47:09 armin76 Exp $
EAPI="3"
PYTHON_DEPEND="2"
inherit distutils bash-completion
DESCRIPTION="Manage a stack of patches using GIT as a backend"
HOMEPAGE="http://www.procode.org/stgit/"
SRC_URI="http://homepage.ntlworld.com/cmarinas/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc ppc64 x86"
IUSE=""
RDEPEND=">=dev-vcs/git-1.5"
DEPEND="$RDEPEND"
pkg_setup() {
python_set_active_version 2
python_pkg_setup
}
src_install() {
sed -i -e 's-\(prefix:\) ~-\1 /usr-' setup.cfg
distutils_src_install
dodir /usr/share/doc/${PF}
mv "${D}/usr/share/${PN}/examples" "${D}/usr/share/doc/${PF}"
rmdir "${D}/usr/share/doc/${PN}"
dobashcompletion contrib/stgit-completion.bash ${PN}
}
src_test() {
export PATH=/usr/libexec/git-core/:$PATH
emake -j1 test
}