forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
git-imerge-1.0.0.ebuild
45 lines (35 loc) · 1.04 KB
/
git-imerge-1.0.0.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 python3_4 )
inherit bash-completion-r1 python-r1
DESCRIPTION="Incremental merge for git"
HOMEPAGE="https://github.com/mhagger/git-imerge"
SRC_URI="${HOMEPAGE}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="${PYTHON_DEPS}
dev-vcs/git"
DEPEND="dev-python/docutils"
src_compile() {
for doc in *.rst; do
rst2html.py "${doc}" > "${T}/${doc/.rst/.html}" \
|| die "failed to convert ${doc} to ${T}/${doc/.rst/.html}"
done
rst2s5.py \
--theme=small-white \
--current-slide \
doc/presentations/GitMerge-2013/talk.rst \
"${T}/talk.html" \
|| die 'failed to convert talk.rst to ${T}/talk.html'
}
src_install() {
python_foreach_impl python_doscript "${PN}"
newbashcomp "${FILESDIR}/git-imerge.bashcomplete" git-imerge
dodoc *.rst "${T}"/*.html
# Don't forget the CSS for the presentation.
dodoc -r "${T}/ui"
}