# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils debian MY_P="${PN}_${PV}-1_all" DESCRIPTION="Gnome Control panel made by people of the Ubuntu forum" HOMEPAGE="http://ubuntuforums.org/showthread.php?t=207894" SRC_URI="${MY_P}.tar.gz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="" # This is nessessary because you need to be logged into the unbuntu # forums in order to download gcontrol. RESTRICT="fetch" DEPEND="gnome-extra/slab" pkg_nofetch() { einfo "Because you need to be logged into the unbuntu forums" einfo "to download attachments, please visit:" einfo " ${HOMEPAGE}" einfo "and download - ${SRC_URI}" einfo "placing it in ${DISTDIR}" } pkg_setup() { if built_with_use gnome-extra/slab nogcontrol; then eerror "You have built slab with the nogcotrol use flag!" eerror "Please remerge slab with the nogcontrol flag disabled" die "gnome-extra/slab built with nogcontrol" fi } src_unpack() { # Most of this is borrowed from debian.eclass, it wasn't quite # what was needed. I didn't see any better way... local debfile OLD_DISTDIR debfile="${WORKDIR}/${MY_P}.deb" unpack ${A} cd ${WORKDIR} einfo ">>> Extracting ${debfile}" debian_unpack ${debfile} rm -f ${debfile} OLD_DISTDIR=${DISTDIR} DISTDIR=${WORKDIR} unpack ${A} rm -f ${WORKDIR}/${A} DISTDIR=${OLD_DISTDIR} mkdir -p ${S} mv ${WORKDIR}/usr ${S} } src_install() { # Nothing to do now, but copy everything over. cp -R "${S}/usr" "${D}/" || die "Install failed!" mv "${D}/usr/share/doc/gcontrol/" "${D}/usr/share/doc/${P}" dosym /usr/bin/gcontrol /usr/bin/control-center }