/[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.8 - (show annotations) (download)
Wed Oct 22 14:28:10 2014 UTC (5 years, 4 months ago) by dlan
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +2 -2 lines
fix bashcomp, bug 526282. thanks Necoro

(Portage version: 2.2.14_rc1/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.16-r2.ebuild,v 1.7 2014/08/03 14:27:38 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 mirror://gentoo/${P}-missing-patches.tar.gz"
15
16 LICENSE="GPL-2"
17 SLOT="0"
18 KEYWORDS="amd64 arm 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 'stg'
77 }

  ViewVC Help
Powered by ViewVC 1.1.20