All pastes #944532 Raw Edit

Anonymous

public text v1 · immutable
·published 2008-03-16 05:02 UTC
rendered paste body
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

WANT_AUTOCONF=latest
WANT_AUTOMAKE=latest
inherit autotools eutils

DESCRIPTION="Cairo-dock is a kind of dock applet, which doesn't depend on any gnome package."
HOMEPAGE="http://developer.berlios.de/projects/cairo-dock/"
SRC_URI="http://download2.berlios.de/cairo-dock/cairo-dock-sources-${PV}.tar.bz2"

LICENSE="GPL"
SLOT="0"
KEYWORDS="amd64 ppc x86"

PLUG_INS="Xgamma clock dustbin gnome-integration logout powermanager rendering rhythmbox shortcuts systray terminal"
IUSE=${PLUG_INS}

DEPEND="gnome-integration? (>=gnome-base/gnome-vfs-2.0
                                >=gnome-base/libgnomeui-2.0)"

RDEPEND=${DEPEND}


S="${WORKDIR}/tmp/trunk/plug-ins"

src_unpack() {
    unpack cairo-dock-sources-${PV}.tar.bz2
    cd "${S}"
    # powermanager plugin has a missing po directorry. We need to fix this
    # before we run autoreconf.
    use powermanager && epatch ${FILESDIR}/${P}-488-powermanager.patch || die "failed patching with  ${FILESDIR}/${P}-488-powermanager.patch"
    # The patch creates the directory from svn:488

    for plugin in ${PLUG_INS};
    do
        if use ${plugin};
        then
            pushd ${plugin}
            eautoreconf || die "eautoreconf failed on ${plugin}"
            econf || die "econf failed on ${plugin}"
            popd
        fi
    done
}