/[gentoo-x86]/dev-util/meld/meld-1.6.0.ebuild
Gentoo

Contents of /dev-util/meld/meld-1.6.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (hide annotations) (download)
Sun Oct 28 15:49:00 2012 UTC (5 years, 7 months ago) by armin76
Branch: MAIN
Changes since 1.7: +2 -2 lines
ia64/sparc stable wrt #427544

(Portage version: 2.1.11.9/cvs/Linux x86_64)

1 pacho 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 armin76 1.8 # $Header: /var/cvsroot/gentoo-x86/dev-util/meld/meld-1.6.0.ebuild,v 1.7 2012/10/16 04:27:53 blueness Exp $
4 pacho 1.1
5     EAPI="4"
6     GCONF_DEBUG="no"
7     PYTHON_DEPEND="2:2.5"
8    
9     inherit python gnome2 eutils multilib
10    
11     DESCRIPTION="A graphical diff and merge tool"
12     HOMEPAGE="http://meldmerge.org/"
13    
14     LICENSE="GPL-2"
15     SLOT="0"
16 armin76 1.8 KEYWORDS="alpha amd64 arm ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux"
17 pacho 1.1 IUSE="doc gnome"
18    
19     RDEPEND="
20     >=dev-python/pygtk-2.14:2
21     >=dev-python/pygobject-2.8:2
22     gnome? ( >=dev-python/gconf-python-2.22:2 )
23     "
24     DEPEND="${RDEPEND}
25     dev-util/intltool
26     app-text/scrollkeeper"
27    
28     pkg_setup() {
29     DOCS="NEWS"
30     # Needed for optimizing python modules against proper interpreter
31     python_set_active_version 2
32     python_pkg_setup
33     }
34    
35     src_prepare() {
36     gnome2_src_prepare
37    
38     # fix the prefix so its not in */local/*
39     sed -e "s:/usr/local:${EPREFIX}/usr:" \
40     -e "s:\$(prefix)/lib:\$(prefix)/$(get_libdir):" \
41     -i INSTALL || die "sed 1 failed"
42    
43     # don't install anything to /usr/share/doc/meld
44     sed -e "s:\$(docdir)/meld:\$(docdir)/${PF}:" \
45     -i INSTALL || die "sed 2 failed"
46    
47     # let the python eclass handle python objects
48     sed -e '/$(PYTHON) .* .import compileall;/s/\t/&#/g' \
49     -i Makefile || die "sed 3 failed"
50    
51     # don't run scrollkeeper (with the wrong path),
52     # leave that to gnome2.eclass #145833
53     sed -e '/scrollkeeper-update/s/\t/&#/' \
54     -i help/*/Makefile || die "sed 4 failed"
55    
56     # replace all calls to python by specific major version
57     sed -e "s/\(PYTHON ?= \).*/\1$(PYTHON -2)/" \
58     -i INSTALL || die "sed 6 failed"
59     python_convert_shebangs 2 "${S}"/tools/*
60    
61     strip-linguas -i "${S}/po"
62     local mylinguas=""
63     for x in ${LINGUAS}; do
64     mylinguas="${mylinguas} ${x}.po"
65     done
66    
67     if [ -n "${mylinguas}" ]; then
68     sed -e "s/PO:=.*/PO:=${mylinguas}/" \
69     -i po/Makefile || die "sed 5 failed"
70     fi
71     }
72    
73     src_configure() {
74     :
75     }
76    
77     src_install() {
78     gnome2_src_install
79     python_convert_shebangs 2 "${ED}"usr/bin/meld
80     }
81    
82     pkg_postinst() {
83     gnome2_pkg_postinst
84     python_mod_optimize /usr/$(get_libdir)/meld
85     }
86    
87     pkg_postrm() {
88     gnome2_pkg_postrm
89     python_mod_cleanup /usr/$(get_libdir)/meld
90     }

  ViewVC Help
Powered by ViewVC 1.1.20