You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-editors/gedit/gedit-2.30.4.ebuild

85 lines
2.1 KiB

# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-editors/gedit/gedit-2.30.4.ebuild,v 1.15 2014/02/06 19:08:15 pacho Exp $
EAPI="3"
GCONF_DEBUG="no"
GNOME2_LA_PUNT="yes"
PYTHON_DEPEND="python? 2:2.5"
inherit autotools gnome2 multilib python eutils
DESCRIPTION="A text editor for the GNOME desktop"
HOMEPAGE="http://live.gnome.org/Gedit"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm ia64 ~mips ppc ppc64 sh sparc x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux"
IUSE="doc python spell"
RDEPEND=">=gnome-base/gconf-2:2
>=x11-libs/libSM-1.0
>=dev-libs/libxml2-2.5.0:2
>=dev-libs/glib-2.23.1:2
>=x11-libs/gtk+-2.19.0:2
>=x11-libs/gtksourceview-2.9.7:2.0
spell? (
>=app-text/enchant-1.2
>=app-text/iso-codes-0.35
)
python? (
>=dev-python/pygobject-2.15.4:2
>=dev-python/pygtk-2.12:2
>=dev-python/pygtksourceview-2.9.2:2
)"
DEPEND="${RDEPEND}
>=sys-devel/gettext-0.17
>=dev-util/intltool-0.40
virtual/pkgconfig
>=app-text/scrollkeeper-0.3.11
>=app-text/gnome-doc-utils-0.9.0
~app-text/docbook-xml-dtd-4.1.2
doc? ( >=dev-util/gtk-doc-1 )"
# gnome-common and gtk-doc-am needed to eautoreconf
if [[ "${ARCH}" == "PPC" ]] ; then
# HACK HACK HACK: someone fix this garbage
MAKEOPTS="${MAKEOPTS} -j1"
fi
pkg_setup() {
DOCS="AUTHORS BUGS ChangeLog MAINTAINERS NEWS README"
G2CONF="${G2CONF}
--disable-scrollkeeper
--disable-updater
$(use_enable python)
$(use_enable spell)"
use python && python_set_active_version 2
}
src_prepare() {
# Do not fail if remote mounting is not supported.
epatch "${FILESDIR}/${PN}-2.30.2-tests-skip.patch"
# Underlinking for gmodule and libICE, bug #497110
epatch "${FILESDIR}/${P}-underlinking.patch"
rm missing || die # old missing file causes autoreconf warnings
eautoreconf
gnome2_src_prepare
python_clean_py-compile_files
}
pkg_postinst() {
gnome2_pkg_postinst
use python && python_mod_optimize /usr/$(get_libdir)/gedit-2/plugins
}
pkg_postrm() {
gnome2_pkg_postrm
python_mod_cleanup /usr/$(get_libdir)/gedit-2/plugins
}