cairo-dock-plugins-20080209.ebuild
# 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
}
src_compile() {
for plugin in ${PLUG_INS};
do
if use ${plugin};
then
pushd ${plugin}
emake || die "emake failed on ${plugin}"
popd
fi
done
}
src_install() {
for plugin in ${PLUG_INS};
do
if use ${plugin};
then
pushd ${plugin}
emake DESTDIR="${D}" install || die "emake install failed on ${plugin}"
popd
fi
done
}
- Platform : Gentoo Linux
- Script : ebuild
- desc :
This is an ebuild for cairo-dock plugins. WARNING: Many dependencies might not be included. Please do leave any dependencies you may find in the comments and I'll update the script accordingly. YMMV.