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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Jun 20 14:20:47 2014 UTC (5 years, 8 months ago) by dlan
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
clean up, drop old ebuild

(Portage version: 2.2.8/cvs/Linux x86_64, signed Manifest commit with key 0xAABEFD55)

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-r1.ebuild,v 1.3 2012/11/20 20:59:17 ago Exp $
4
5 EAPI="3"
6 PYTHON_DEPEND="2"
7
8 inherit eutils 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.
24 DEPEND="$RDEPEND
25 doc? (
26 app-text/asciidoc
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 epatch "${FILESDIR}/${P}-asciidoc-compat.patch"
45 epatch "${FILESDIR}/${P}-man-linkfix.patch"
46
47 # this will be a noop, as we are working with a tarball,
48 # but throws git errors --> just get rid of it
49 sed -i -e 's/version\.write_builtin_version()//' setup.py
50
51 distutils_src_prepare
52 }
53
54 src_compile() {
55 # do not call normal 'emake' s.t. Gentoo's Python handling
56 # can do its work
57 # NB: run before doc-building to avoid double-build
58 distutils_src_compile
59
60 if use doc; then
61 emake DESTDIR="${D}" \
62 htmldir="${ROOT}usr/share/doc/${PF}/html/" \
63 mandir="${ROOT}usr/share/man/" \
64 doc || die "emake doc failed"
65 fi
66 }
67
68 src_install() {
69 if use doc; then
70 emake DESTDIR="${D}" \
71 htmldir="${ROOT}usr/share/doc/${PF}/html/" \
72 mandir="${ROOT}usr/share/man/" \
73 install-doc install-html || die "emake install-doc install-html failed"
74 fi
75
76 # NB: run after installing docs to avoid double-build
77 distutils_src_install
78
79 newbashcomp stgit-completion.bash ${PN} || die
80 }

  ViewVC Help
Powered by ViewVC 1.1.20