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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat May 10 20:01:09 2014 UTC (5 years, 8 months ago) by dlan
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
pull in a few upstream patches, minor update

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

1 # Copyright 1999-2014 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.17.1.ebuild,v 1.1 2014/03/25 17:35:55 dlan Exp $
4
5 EAPI="5"
6
7 PYTHON_COMPAT=( python2_7 )
8
9 inherit bash-completion-r1 distutils-r1
10
11 DESCRIPTION="Manage a stack of patches using GIT as a backend"
12 HOMEPAGE="http://www.procode.org/stgit/"
13 SRC_URI="http://download.gna.org/${PN}/${P}.tar.gz"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
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 PATCHES=(
32 "${FILESDIR}/${PN}-0.16-man-linkfix.patch"
33 )
34
35 pkg_setup() {
36 if ! use doc; then
37 echo
38 ewarn "Manpages will not be built and installed."
39 ewarn "Enable the 'doc' useflag, if you want them."
40 echo
41 fi
42 }
43
44 python_prepare_all() {
45 # this will be a noop, as we are working with a tarball,
46 # but throws git errors --> just get rid of it
47 sed -i -e 's/version\.write_builtin_version()//' setup.py || die
48
49 distutils-r1_python_prepare_all
50 }
51
52 python_compile_all() {
53 if use doc; then
54 emake DESTDIR="${D}" \
55 htmldir="${EPREFIX}/usr/share/doc/${PF}/html/" \
56 mandir="${EPREFIX}/usr/share/man/" \
57 doc
58 fi
59 }
60
61 python_install_all() {
62 if use doc; then
63 emake DESTDIR="${D}" \
64 htmldir="${EPREFIX}/usr/share/doc/${PF}/html/" \
65 mandir="${EPREFIX}/usr/share/man/" \
66 install-doc install-html
67 fi
68
69 distutils-r1_python_install_all
70
71 newbashcomp stgit-completion.bash ${PN}
72 }

  ViewVC Help
Powered by ViewVC 1.1.20