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/gnome-extra/file-browser-applet/file-browser-applet-0.6.6.e...

44 lines
1.3 KiB

# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/gnome-extra/file-browser-applet/file-browser-applet-0.6.6.ebuild,v 1.6 2011/02/27 16:00:38 serkan Exp $
EAPI="2"
inherit gnome2 cmake-utils
DESCRIPTION="Browse, open and manage files in your computer directly from the GNOME panel."
HOMEPAGE="http://code.google.com/p/gnome-menu-file-browser-applet/"
SRC_URI="http://gnome-menu-file-browser-applet.googlecode.com/files/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="gtkhotkey"
RDEPEND=">=x11-libs/gtk+-2.14:2
|| ( gnome-base/gnome-panel[bonobo] <gnome-base/gnome-panel-2.32 )
>=dev-libs/glib-2.16
gtkhotkey? ( x11-libs/gtkhotkey )"
DEPEND="${RDEPEND}
dev-util/pkgconfig
>=dev-util/cmake-2.4.8"
src_prepare() {
sed -i -e "s/-O3 -g//g" CMakeLists.txt
sed -i -e "s/#include <panel-applet.h>/#include <panel-applet.h>\n#include <locale.h>/g" src/main.c
}
src_compile() {
mycmakeargs="${mycmakeargs} -DCMAKE_INSTALL_GCONF_SCHEMA_DIR=/etc/gconf/schemas"
mycmakeargs="${mycmakeargs} $(cmake-utils_use_enable gtkhotkey GTK_HOTKEY)"
cmake-utils_src_compile
}
src_install() {
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1"
cmake-utils_src_install
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
dodoc HISTORY README || die "dodoc failed"
}