/[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.1 - (hide annotations) (download)
Mon Sep 23 11:38:21 2013 UTC (6 years, 8 months ago) by pinkbyte
Branch: MAIN
Revision bump: EAPI 5, distutils-r1 eclass, add Prefix support wrt bug #485730. Thanks to Dennis Lan <dennis.yxun AT gmail.com> for providing initial ebuild diff

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

1 pinkbyte 1.1 # Copyright 1999-2013 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: $
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     mirror://gentoo/${P}-missing-patches.tar.gz"
15    
16     LICENSE="GPL-2"
17     SLOT="0"
18     KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
19     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