/[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 - (hide annotations) (download)
Tue Mar 3 07:44:45 2015 UTC (4 years, 11 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 dlan 1.4 # Copyright 1999-2015 Gentoo Foundation
2 dlan 1.1 # Distributed under the terms of the GNU General Public License v2
3 dlan 1.4 # $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 dlan 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     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 dlan 1.4 KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
23 dlan 1.1 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 dlan 1.3 src_compile() {
65     distutils-r1_src_compile
66    
67     # bug 526468
68 dlan 1.1 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 dlan 1.3 src_install() {
77 dlan 1.1 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 dlan 1.3 distutils-r1_src_install
85 dlan 1.1
86 dlan 1.2 newbashcomp stgit-completion.bash 'stg'
87 dlan 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20