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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Jul 22 02:44:40 2013 UTC (6 years, 5 months ago) by patrick
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +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-2012 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.16.ebuild,v 1.2 2012/01/23 19:18:35 darkside 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_compile() {
45 # git throws errors if it cannot write its config file
46 # thus feed it a dummy one
47 touch gitconfig
48 export GIT_CONFIG="${S}/gitconfig"
49
50 if use doc; then
51 emake doc || die "emake doc failed"
52 fi
53
54 # do not call normal 'emake' s.t. Gentoo's Python handling
55 # can do its work
56 distutils_src_compile
57 }
58
59 src_install() {
60 distutils_src_install
61
62 if use doc; then
63 # do not use 'emake install-*' as the pathes are wrong
64 # and fixing them is more work than just using the following
65 doman Documentation/*.1 || die "doman failed"
66 dohtml Documentation/*.html || die "dohtml failed"
67 fi
68
69 newbashcomp stgit-completion.bash ${PN} || die
70 }

  ViewVC Help
Powered by ViewVC 1.1.20