Files
for-gentoo/mate-extra/mate-utils/mate-utils-1.2.0.ebuild
T
2012-06-02 16:37:01 +00:00

86 lines
2.2 KiB
Bash

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: Exp $
EAPI="4"
GCONF_DEBUG="yes"
GNOME2_LA_PUNT="yes"
inherit autotools mate eutils mate-desktop.org
DESCRIPTION="Utilities for the MATE desktop"
HOMEPAGE="http://mate-desktop.org"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
IUSE="bonobo doc ipv6 test"
RDEPEND=">=dev-libs/glib-2.20:2
>=x11-libs/gtk+-2.20:2
>=gnome-base/libgtop-2.12
mate-base/mate-conf
>=media-libs/libcanberra-0.4[gtk]
x11-libs/libXext
x11-libs/libX11
bonobo? ( || ( mate-base/mate-panel[bonobo] <mate-base/mate-panel-2.32 ) )"
DEPEND="${RDEPEND}
x11-proto/xextproto
app-text/mate-doc-utils
app-text/scrollkeeper
>=dev-util/intltool-0.40
virtual/pkgconfig
doc? ( >=dev-util/gtk-doc-1.10 )
dev-util/gtk-doc-am
mate-base/mate-common"
pkg_setup() {
if ! use debug; then
G2CONF="${G2CONF} --enable-debug=minimum"
fi
G2CONF="${G2CONF}
$(use_enable ipv6)
$(use_enable bonobo gdict-applet)
--disable-maintainer-flags
--enable-zlib
--disable-static
--disable-schemas-install
--disable-scrollkeeper"
DOCS="AUTHORS ChangeLog NEWS README THANKS"
}
src_prepare() {
./autogen.sh || die
eautoreconf
# Fix uninitialized variable preventing crashes (already fixed in master)
# epatch "${FILESDIR}/${P}-fix-uninitialized.patch"
# Provide updated icons
# epatch "${FILESDIR}/${P}-new-icons.patch"
# epatch "${FILESDIR}/${P}-new-icons2.patch"
# Remove idiotic -D.*DISABLE_DEPRECATED cflags
# This method is kinda prone to breakage. Recheck carefully with next bump.
# bug 339074
LC_ALL=C find . -iname 'Makefile.am' -exec \
sed -e '/-D[A-Z_]*DISABLE_DEPRECATED/d' -i {} + || die "sed 1 failed"
# Do Makefile.in after Makefile.am to avoid automake maintainer-mode
LC_ALL=C find . -iname 'Makefile.in' -exec \
sed -e '/-D[A-Z_]*DISABLE_DEPRECATED/d' -i {} + || die "sed 2 failed"
if ! use test ; then
sed -e 's/ tests//' -i logview/Makefile.{am,in} || die "sed 3 failed"
fi
# Fix intltoolize broken file, see upstream #577133
sed "s:'\^\$\$lang\$\$':\^\$\$lang\$\$:g" -i po/Makefile.in.in \
|| die "sed failed"
intltoolize --force --copy --automake || die "intltoolize failed"
eautoreconf
mate_src_prepare
}