Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 291439 | Differences between
and this patch

Collapse All | Expand All

(-)cola-1.3.9.14.ebuild (-5 / +12 lines)
Lines 20-33 Link Here
20
	dev-python/jsonpickle
20
	dev-python/jsonpickle
21
	dev-util/git"
21
	dev-util/git"
22
DEPEND="${RDEPEND}
22
DEPEND="${RDEPEND}
23
	doc? ( app-text/asciidoc )
23
	doc? (
24
		app-text/asciidoc
25
		dev-python/sphinx
26
		app-text/xmlto
27
	)
24
	test? ( dev-python/nose )"
28
	test? ( dev-python/nose )"
25
29
26
src_prepare() {
30
src_prepare() {
27
	# don't install docs into wrong location
28
	sed -i \
29
		-e '/doc/d' \
30
		setup.py || die "sed failed"
31
	# don't prefix install path with homedir
31
	# don't prefix install path with homedir
32
	rm setup.cfg
32
	rm setup.cfg
33
33
Lines 54-61 Link Here
54
54
55
	if use doc ; then
55
	if use doc ; then
56
		dohtml *.html
56
		dohtml *.html
57
		# For F1 key to work
58
		mv "${D}"/usr/share/doc/${P}/html/* 	"${D}"/usr/share/doc/git-cola
59
		# Install the docs built in the following dir
60
		dohtml -r _build/html/*
57
		doman *.1
61
		doman *.1
58
	fi
62
	fi
63
	# Avoid having two doc dirs
64
	mv "${D}"/usr/share/doc/${P}/* 	"${D}"/usr/share/doc/git-cola
65
	rm -rf "${D}"/usr/share/doc/${P}
59
}
66
}
60
67
61
src_test() {
68
src_test() {

Return to bug 291439