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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Sun Jul 13 09:58:03 2014 UTC (5 years, 10 months ago) by ago
Branch: MAIN
Changes since 1.4: +2 -2 lines
Stable for ppc, wrt bug #505796

(Portage version: 2.2.8-r1/cvs/Linux x86_64, RepoMan options: --include-arches="ppc", signed Manifest commit with key 7194459F)

1 dlan 1.2 # Copyright 1999-2014 Gentoo Foundation
2 pinkbyte 1.1 # Distributed under the terms of the GNU General Public License v2
3 ago 1.5 # $Header: /var/cvsroot/gentoo-x86/dev-vcs/stgit/stgit-0.16-r2.ebuild,v 1.4 2014/06/16 09:55:41 nimiux Exp $
4 pinkbyte 1.1
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     mirror://gentoo/${P}-missing-patches.tar.gz"
15    
16     LICENSE="GPL-2"
17     SLOT="0"
18 ago 1.5 KEYWORDS="amd64 ~arm ppc ~ppc64 x86 ~amd64-linux ~x86-linux"
19 pinkbyte 1.1 IUSE="doc"
20    
21     RDEPEND=">=dev-vcs/git-1.6.3.3"
22    
23     # NOTE: It seems to be quite important which asciidoc version to use.
24     # So keep an eye on it for the future.
25     DEPEND="${RDEPEND}
26     doc? (
27     app-text/asciidoc
28     app-text/xmlto
29     dev-lang/perl
30     )"
31    
32     PATCHES=(
33     "${FILESDIR}/${P}-asciidoc-compat.patch"
34     "${FILESDIR}/${P}-man-linkfix.patch"
35     )
36    
37     pkg_setup() {
38     if ! use doc; then
39     echo
40     ewarn "Manpages will not be built and installed."
41     ewarn "Enable the 'doc' useflag, if you want them."
42     echo
43     fi
44     }
45    
46     python_prepare_all() {
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 || die
50    
51     # Workaround hardcoded prefix
52     sed -i -e "/prefix/s|/usr|${EPREFIX}/usr|" setup.cfg || die
53    
54     distutils-r1_python_prepare_all
55     }
56    
57     python_compile_all() {
58     if use doc; then
59     emake DESTDIR="${D}" \
60     htmldir="${EPREFIX}/usr/share/doc/${PF}/html/" \
61     mandir="${EPREFIX}/usr/share/man/" \
62     doc
63     fi
64     }
65    
66     python_install_all() {
67     if use doc; then
68     emake DESTDIR="${D}" \
69     htmldir="${EPREFIX}/usr/share/doc/${PF}/html/" \
70     mandir="${EPREFIX}/usr/share/man/" \
71     install-doc install-html
72     fi
73    
74     distutils-r1_python_install_all
75    
76     newbashcomp stgit-completion.bash ${PN}
77     }

  ViewVC Help
Powered by ViewVC 1.1.20