blob: c2796a37c7a7403b4a980b2ae49a5e110a23f30b (
plain)
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
46
47
48
49
50
51
52
53
54
55
56
57
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="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://download.gna.org/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~x86"
IUSE=""
RDEPEND=">=dev-util/git-1.6.3.3"
# NOTE: It seems to be quite important which asciidoc version to use.
# So keep an eye on it for the future. Reference should be the online
# man pages. (As of this writing, they use 8.2.7).
DEPEND="$RDEPEND
=app-text/asciidoc-8.2*
app-text/xmlto
dev-lang/perl"
src_prepare() {
# setup.cfg defaults to ~ ... delete it instead of sed'ing
rm setup.cfg
distutils_src_prepare
}
src_compile() {
# git throws errors if it cannot write its config file
# thus feed it a dummy one
touch gitconfig
export GIT_CONFIG="${S}/gitconfig"
# preparation stuff done in the makefile
emake build doc || die "emake failed"
# do not call normal 'emake' to use our own python handling
distutils_src_compile
}
src_install() {
distutils_src_install
doman Documentation/*.1 || die "doman failed"
insinto /usr/share/doc/${PF}
doins Documentation/tutorial.html || die "doins failed"
mv "${D}/usr/share/${PN}/examples" "${D}/usr/share/doc/${PF}"
dobashcompletion stgit-completion.bash ${PN}
}
|