# Copyright 1999-2012 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++" HOMEPAGE="http://atol.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${P}_src.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="gnome" RDEPEND="x11-libs/gtk+:2" DEPEND="${RDEPEND} virtual/pkgconfig" #test? ( dev-util/valgrind )" MAKEOPTS="${MAKEOPTS} -j1" # test doesn't work RESTRICT="test" DOCS="readme.txt" 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" \ || die "multilib sed failed" if ! use gnome; then # Comment variable in the Makefile if we don't have gnome sed -i -e 's/HAVE_GNOME_VFS=1/#HAVE_GNOME_VFS=1/g' Makefile || \ die "gnome sed failed" fi export CFLAGS="${CXXFLAGS}" }