/[gentoo-x86]/dev-vcs/tortoisehg/tortoisehg-2.3.1.ebuild
Gentoo

Contents of /dev-vcs/tortoisehg/tortoisehg-2.3.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Thu May 3 02:25:52 2012 UTC (12 months, 2 weeks ago) by floppym
Branch: MAIN
Changes since 1.3: +2 -1 lines
Put upper bound on mercurial dep.

(Portage version: 2.2.0_alpha101/cvs/Linux x86_64)

1 floppym 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 floppym 1.4 # $Header: /var/cvsroot/gentoo-x86/dev-vcs/tortoisehg/tortoisehg-2.3.1.ebuild,v 1.3 2012/04/17 15:04:36 mgorny Exp $
4 floppym 1.1
5     EAPI=4
6    
7     SUPPORT_PYTHON_ABIS=1
8     PYTHON_DEPEND="2:2.5"
9     RESTRICT_PYTHON_ABIS="2.4 3.* *-pypy-*"
10    
11     inherit distutils eutils multilib
12    
13     if [[ ${PV} != *9999* ]]; then
14     KEYWORDS="~amd64 ~x86"
15 mgorny 1.3 SRC_URI="mirror://bitbucket/${PN}/targz/downloads/${P}.tar.gz"
16 floppym 1.1 else
17     inherit mercurial
18     EHG_REPO_URI="https://bitbucket.org/tortoisehg/thg"
19     KEYWORDS=""
20     SRC_URI=""
21     fi
22    
23     DESCRIPTION="Set of graphical tools for Mercurial"
24     HOMEPAGE="http://tortoisehg.bitbucket.org"
25    
26     LICENSE="GPL-2"
27     SLOT="0"
28     IUSE="doc nautilus"
29    
30     RDEPEND="dev-python/iniparse
31     dev-python/pygments
32     dev-python/PyQt4
33     dev-python/qscintilla-python
34     >=dev-vcs/mercurial-2.0
35 floppym 1.4 <dev-vcs/mercurial-2.2
36 floppym 1.1 nautilus? ( dev-python/nautilus-python )"
37     DEPEND="${RDEPEND}
38     doc? ( >=dev-python/sphinx-1.0.3 )"
39    
40     src_prepare() {
41     # make the install respect multilib.
42     sed -i -e "s:lib/nautilus:$(get_libdir)/nautilus:" setup.py || die
43    
44     if [[ ${LINGUAS+set} ]]; then
45     pushd i18n/tortoisehg > /dev/null || die
46 floppym 1.2 local x y keep
47 floppym 1.1 for x in *.po; do
48     keep=
49     for y in ${LINGUAS}; do
50     if [[ ${y} == ${x%.po}* ]]; then
51     keep=1
52     break
53     fi
54     done
55     [[ ${keep} ]] || rm "${x}" || die
56     done
57     popd > /dev/null || die
58     fi
59    
60     distutils_src_prepare
61     }
62    
63     src_compile() {
64     distutils_src_compile
65    
66     if use doc ; then
67     emake -C doc html
68     fi
69     }
70    
71     src_install() {
72     distutils_src_install
73     dodoc doc/ReadMe*.txt doc/TODO
74    
75     if use doc ; then
76     dohtml -r doc/build/html || die
77     fi
78    
79     insinto /usr/share/icons/hicolor/scalable/apps
80     newins icons/scalable/apps/thg-logo.svg tortoisehg_logo.svg
81     domenu contrib/${PN}.desktop
82    
83     if ! use nautilus; then
84     rm -r "${ED}usr/$(get_libdir)/nautilus" || die
85     fi
86     }

  ViewVC Help
Powered by ViewVC 1.1.13