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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Mon Jul 22 02:44:40 2013 UTC (6 years, 6 months ago) by patrick
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
QA: Punt old versions that depend on removed asciidoc version

(Portage version: 2.2.0_alpha188/cvs/Linux x86_64, unsigned Manifest commit)

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

  ViewVC Help
Powered by ViewVC 1.1.20