/[gentoo-x86]/dev-vcs/stgit/stgit-0.15.ebuild
Gentoo

Contents of /dev-vcs/stgit/stgit-0.15.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Mar 27 23:23:25 2011 UTC (9 years ago) by arfrever
Branch: MAIN
Changes since 1.2: +7 -3 lines
Use Python 2 (bug #329491).

(Portage version: 2.2.0_alpha28_p40/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-vcs/stgit/stgit-0.15.ebuild,v 1.2 2010/03/17 16:32:55 sping Exp $
4
5 EAPI="3"
6 PYTHON_DEPEND="2"
7
8 inherit distutils bash-completion
9
10 DESCRIPTION="Manage a stack of patches using GIT as a backend"
11 HOMEPAGE="http://www.procode.org/stgit/"
12 SRC_URI="http://download.gna.org/${PN}/${P}.tar.gz"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~x86"
17 IUSE="doc"
18
19 RDEPEND=">=dev-vcs/git-1.6.3.3"
20
21 # NOTE: It seems to be quite important which asciidoc version to use.
22 # So keep an eye on it for the future. Reference should be the online
23 # man pages. (As of this writing, they use 8.2.7).
24 DEPEND="$RDEPEND
25 doc? (
26 =app-text/asciidoc-8.2*
27 app-text/xmlto
28 dev-lang/perl
29 )"
30
31 pkg_setup () {
32 if ! use doc; then
33 echo
34 ewarn "Manpages will not be built and installed."
35 ewarn "Enable the 'doc' useflag, if you want them."
36 echo
37 fi
38
39 python_set_active_version 2
40 python_pkg_setup
41 }
42
43 src_prepare() {
44 # setup.cfg defaults to ~ ... delete it instead of sed'ing
45 rm setup.cfg
46 distutils_src_prepare
47 }
48
49 src_compile() {
50 # git throws errors if it cannot write its config file
51 # thus feed it a dummy one
52 touch gitconfig
53 export GIT_CONFIG="${S}/gitconfig"
54
55 # preparation stuff done in the makefile
56 emake build || die "emake build failed"
57
58 if use doc; then
59 emake doc || die "emake doc failed"
60 fi
61
62 # do not call normal 'emake' s.t. Gentoo's Python handling
63 # can do its work
64 distutils_src_compile
65 }
66
67 src_install() {
68 distutils_src_install
69
70 if use doc; then
71 # do not use 'emake install-*' as the pathes are wrong
72 # and fixing them is more work than just using the following
73 doman Documentation/*.1 || die "doman failed"
74 dohtml Documentation/*.html || die "dohtml failed"
75 fi
76
77 dobashcompletion stgit-completion.bash ${PN}
78 }

  ViewVC Help
Powered by ViewVC 1.1.20