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/git-deps/git-deps-9999.ebuild

47 lines
1.0 KiB

# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
EGIT_REPO_URI="https://github.com/aspiers/git-deps"
EGIT_BRANCH=master
PYTHON_COMPAT=( python2_7 python3_3 python3_4 )
inherit eutils git-r3 python-r1
DESCRIPTION="git commit dependency analysis tool"
HOMEPAGE="https://github.com/aspiers/git-deps"
LICENSE="GPL-2"
SLOT="0"
RDEPEND="
dev-python/flask
dev-python/pygit2
net-libs/nodejs
${PYTHON_DEPS}
"
DEPEND="${RDEPEND}"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
PATCHES="${FILESDIR}/html_location.patch"
HTML_DOCS="html/."
src_install() {
python_foreach_impl python_newexe git-deps.py git-deps
einstalldocs
}
pkg_postinst() {
elog "Notes regarding the '--serve' option:"
elog "Please run 'npm install browserify' once"
elog "Copy the html sources:"
elog "rsync -av ${EROOT}/usr/share/${PN}/html ~/git-deps-html"
elog "cd ~/git-deps-html"
elog "npm install"
elog "browserify -t coffeeify -d js/git-deps-graph.coffee -o js/bundle.js"
}