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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Tue Mar 3 07:44:45 2015 UTC (4 years, 10 months ago) by dlan
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +3 -3 lines
add arm64 support, tested on A53 board

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

1 # Copyright 1999-2015 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-r1.ebuild,v 1.3 2014/10/23 01:41:30 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 UPSTREAM_VER=0
14 [[ -n ${UPSTREAM_VER} ]] && \
15 UPSTREAM_PATCHSET_URI="http://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz"
16
17 SRC_URI="http://download.gna.org/${PN}/${P}.tar.gz
18 ${UPSTREAM_PATCHSET_URI}"
19
20 LICENSE="GPL-2"
21 SLOT="0"
22 KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
23 IUSE="doc"
24
25 RDEPEND=">=dev-vcs/git-1.6.3.3"
26
27 # NOTE: It seems to be quite important which asciidoc version to use.
28 # So keep an eye on it for the future.
29 DEPEND="${RDEPEND}
30 doc? (
31 app-text/asciidoc
32 app-text/xmlto
33 dev-lang/perl
34 )"
35
36 PATCHES=(
37 "${FILESDIR}/${PN}-0.16-man-linkfix.patch"
38 )
39
40 pkg_setup() {
41 if ! use doc; then
42 echo
43 ewarn "Manpages will not be built and installed."
44 ewarn "Enable the 'doc' useflag, if you want them."
45 echo
46 fi
47 }
48
49 python_prepare_all() {
50 # Upstream's patchset
51 if [[ -n ${UPSTREAM_VER} ]]; then
52 EPATCH_SUFFIX="patch" \
53 EPATCH_FORCE="yes" \
54 epatch "${WORKDIR}"/patches-upstream
55 fi
56
57 # this will be a noop, as we are working with a tarball,
58 # but throws git errors --> just get rid of it
59 sed -i -e 's/version\.write_builtin_version()//' setup.py || die
60
61 distutils-r1_python_prepare_all
62 }
63
64 src_compile() {
65 distutils-r1_src_compile
66
67 # bug 526468
68 if use doc; then
69 emake DESTDIR="${D}" \
70 htmldir="${EPREFIX}/usr/share/doc/${PF}/html/" \
71 mandir="${EPREFIX}/usr/share/man/" \
72 doc
73 fi
74 }
75
76 src_install() {
77 if use doc; then
78 emake DESTDIR="${D}" \
79 htmldir="${EPREFIX}/usr/share/doc/${PF}/html/" \
80 mandir="${EPREFIX}/usr/share/man/" \
81 install-doc install-html
82 fi
83
84 distutils-r1_src_install
85
86 newbashcomp stgit-completion.bash 'stg'
87 }

  ViewVC Help
Powered by ViewVC 1.1.20