|
Lines 1-73
Link Here
|
| 1 |
# Copyright 1999-2014 Gentoo Foundation |
1 |
# Copyright 1999-2014 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-util/meld/meld-1.8.5.ebuild,v 1.3 2014/07/23 15:16:02 ago Exp $ |
3 |
# $Header: $ |
| 4 |
|
4 |
|
| 5 |
EAPI="5" |
5 |
EAPI="5" |
| 6 |
GCONF_DEBUG="no" |
6 |
PYTHON_COMPAT=( python2_7 ) |
| 7 |
PYTHON_COMPAT=( python2_{6,7} ) |
7 |
DISTUTILS_SINGLE_IMPL=1 |
| 8 |
|
8 |
|
| 9 |
inherit eutils python-single-r1 gnome2 |
9 |
inherit gnome2 distutils-r1 |
| 10 |
|
10 |
|
| 11 |
DESCRIPTION="A graphical diff and merge tool" |
11 |
DESCRIPTION="A graphical diff and merge tool" |
| 12 |
HOMEPAGE="http://meldmerge.org/" |
12 |
HOMEPAGE="http://meldmerge.org/" |
| 13 |
|
13 |
|
| 14 |
LICENSE="GPL-2" |
14 |
LICENSE="GPL-2" |
| 15 |
SLOT="0" |
15 |
SLOT="0" |
| 16 |
KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc x86 ~amd64-linux ~x86-linux" |
16 |
KEYWORDS="~amd64 ~x86" |
| 17 |
IUSE="+highlight gnome" |
17 |
IUSE="" |
| 18 |
|
|
|
| 19 |
REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
| 20 |
|
18 |
|
| 21 |
RDEPEND=" |
19 |
RDEPEND=" |
| 22 |
${PYTHON_DEPS} |
20 |
${PYTHON_DEPS} |
| 23 |
>=dev-python/pygtk-2.14:2[${PYTHON_USEDEP}] |
21 |
dev-libs/glib:2[${PYTHON_USEDEP}] |
| 24 |
>=dev-python/pygobject-2.8:2[${PYTHON_USEDEP}] |
|
|
| 25 |
dev-python/dbus-python[${PYTHON_USEDEP}] |
22 |
dev-python/dbus-python[${PYTHON_USEDEP}] |
| 26 |
dev-python/pycairo[${PYTHON_USEDEP}] |
23 |
dev-python/pygobject[${PYTHON_USEDEP}] |
| 27 |
highlight? ( >=dev-python/pygtksourceview-2.10[${PYTHON_USEDEP}] ) |
24 |
gnome-base/gsettings-desktop-schemas |
| 28 |
gnome? ( >=dev-python/gconf-python-2.22:2[${PYTHON_USEDEP}] ) |
25 |
>=x11-libs/gtk+-3.6.0:3 |
|
|
26 |
>=x11-libs/gtksourceview-3.6.0:3.0 |
| 27 |
x11-themes/hicolor-icon-theme |
| 29 |
" |
28 |
" |
| 30 |
DEPEND="${RDEPEND} |
29 |
DEPEND="${RDEPEND} |
| 31 |
app-text/scrollkeeper |
30 |
sys-devel/gettext |
| 32 |
dev-util/gtk-doc-am |
|
|
| 33 |
dev-util/intltool |
31 |
dev-util/intltool |
|
|
32 |
dev-util/itstool |
| 34 |
" |
33 |
" |
| 35 |
|
34 |
|
| 36 |
src_prepare() { |
35 |
python_compile_all() { |
| 37 |
# fix the prefix so its not in */local/* |
36 |
mydistutilsargs=( --no-update-icon-cache --no-compile-schemas ) |
| 38 |
sed -e "s:/usr/local:${EPREFIX}/usr:" \ |
|
|
| 39 |
-e "s:\$(prefix)/lib:\$(prefix)/$(get_libdir):" \ |
| 40 |
-i INSTALL || die "sed 1 failed" |
| 41 |
|
| 42 |
# don't install anything to /usr/share/doc/meld |
| 43 |
sed -e "s:\$(docdir)/meld:\$(docdir)/${PF}:" \ |
| 44 |
-i INSTALL || die "sed 2 failed" |
| 45 |
|
| 46 |
# don't run scrollkeeper (with the wrong path), |
| 47 |
# leave that to gnome2.eclass #145833 |
| 48 |
sed -e '/scrollkeeper-update/s/\t/&#/' \ |
| 49 |
-i help/*/Makefile || die "sed 4 failed" |
| 50 |
|
| 51 |
strip-linguas -i "${S}/po" |
| 52 |
local mylinguas="" |
| 53 |
for x in ${LINGUAS}; do |
| 54 |
mylinguas="${mylinguas} ${x}.po" |
| 55 |
done |
| 56 |
|
| 57 |
if [ -n "${mylinguas}" ]; then |
| 58 |
sed -e "s/PO:=.*/PO:=${mylinguas}/" \ |
| 59 |
-i po/Makefile || die "sed 6 failed" |
| 60 |
fi |
| 61 |
|
| 62 |
gnome2_src_prepare |
| 63 |
} |
| 64 |
|
| 65 |
src_configure() { |
| 66 |
: |
| 67 |
} |
| 68 |
|
| 69 |
src_install() { |
| 70 |
gnome2_src_install |
| 71 |
python_fix_shebang "${ED}"/usr/bin |
| 72 |
doman meld.1 |
| 73 |
} |
37 |
} |