/[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.1 - (show annotations) (download)
Sat Mar 6 15:58:48 2010 UTC (10 years, 1 month ago) by ulm
Branch: MAIN
Move package from dev-util to dev-vcs, bug 56967.
(Portage version: 2.2_rc63/cvs/Linux i686, RepoMan options: --force)

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

  ViewVC Help
Powered by ViewVC 1.1.20