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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Nov 25 10:51:59 2012 UTC (20 months, 3 weeks ago) by eva
Branch: MAIN
Version bump. Add optional dependency on pygtksourceview, bug #444570.

(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key C6085806)

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

  ViewVC Help
Powered by ViewVC 1.1.20