# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="3" DESCRIPTION="Open Source file and archive manager: flexible, portable, secure, and free as in freedom" HOMEPAGE="http://www.peazip.org" SRC_URI="gtk? ( http://peazip.googlecode.com/files/peazip-${PV}.LINUX.GTK2.tgz ) qt? ( http://peazip.googlecode.com/files/peazip-${PV}.LINUX.Qt.tgz )" LICENSE="LGPL-3" SLOT="0" KEYWORDS="~amd64" IUSE="gtk qt kde" RESTRICT=mirror #There WILL be dependency problems for x86 systems. # FIXME: do we really need opengl libs?? RDEPEND="amd64? ( gtk? ( app-emulation/emul-linux-x86-gtklibs ) ) amd64? ( app-emulation/emul-linux-x86-baselibs app-emulation/emul-linux-x86-xlibs app-emulation/emul-linux-x86-opengl ) amd64? ( qt? ( app-emulation/emul-linux-x86-qtlibs ) )" DEPEND=$RDEPEND src_unpack() { if use gtk; then unpack peazip-${PV}.LINUX.GTK2.tgz else unpack peazip-${PV}.LINUX.Qt.tgz fi if use !kde; then rm -Rf $WORKDIR/usr/share fi if use !qt && use !gtk; then die "You need to select one of qt or gtk." fi if use gtk && use qt; then die "You need to select one of qt or gtk." fi } src_install() { chmod -R 755 $WORKDIR/* chown root:root $WORKDIR/* sleep 10 mv $WORKDIR/* $D }