-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
+EAPI="4"
+
inherit eutils multilib
DESCRIPTION="File manager written using GTK+ and C++"
KEYWORDS="~amd64 ~x86"
IUSE="gnome"
-RDEPEND=">=x11-libs/gtk+-2.6"
+RDEPEND="x11-libs/gtk+:2"
DEPEND="${RDEPEND}
dev-util/pkgconfig"
#test? ( dev-util/valgrind )"
# test doesn't work
RESTRICT="test"
-src_unpack() {
- unpack ${A}
- cd "${S}"
+DOCS="readme.txt"
- # Respect CFLAGS and don't use --as-needed by default
- epatch "${FILESDIR}/${P}-CFLAGS.patch"
+src_prepare() {
+ edos2unix $(find -type f)
+ epatch \
+ "${FILESDIR}/${P}-CFLAGS.patch" \
+ "${FILESDIR}/${P}-gcc46.patch"
# Fix multilib
sed -i -e "s#/lib/#/$(get_libdir)/#" "${S}/Makefile" \
sed -i -e 's/HAVE_GNOME_VFS=1/#HAVE_GNOME_VFS=1/g' Makefile || \
die "gnome sed failed"
fi
-}
-src_install() {
- emake DESTDIR="${D}" install || die "make install failed"
- dodoc readme.txt
+ export CFLAGS="${CXXFLAGS}"
}