/[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.4 - (hide annotations) (download)
Tue Aug 30 07:48:40 2011 UTC (8 years, 7 months ago) by flameeyes
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Remove old version.

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

1 arfrever 1.3 # Copyright 1999-2011 Gentoo Foundation
2 ulm 1.1 # Distributed under the terms of the GNU General Public License v2
3 flameeyes 1.4 # $Header: /var/cvsroot/gentoo-x86/dev-vcs/stgit/stgit-0.15.ebuild,v 1.3 2011/03/27 23:23:25 arfrever Exp $
4 ulm 1.1
5 arfrever 1.3 EAPI="3"
6     PYTHON_DEPEND="2"
7 ulm 1.1
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 sping 1.2 RDEPEND=">=dev-vcs/git-1.6.3.3"
20 ulm 1.1
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 arfrever 1.3
39     python_set_active_version 2
40     python_pkg_setup
41 ulm 1.1 }
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