# Copyright 1999-2005 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="This is set of Themes for KDE" HOMEPAGE="http://www.kde-look.org/" THEME_URI="http://www.kde-look.org/content/files" # We get only KDM Themes without spaces in their SRC_URI because # it seems that portage cant't manage SRC_URI with spaces... SRC_URI="${THEME_URI}/21861-Oceanic-Theme.tar.gz http://usuarios.lycos.es/jcesaro/Files/Oceanic-Tux-Theme.tar.gz ${THEME_URI}/22995-Gems.kth.tar.gz ${THEME_URI}/23611-black-theme.tar.gz ${THEME_URI}/26376-Kbleu.kth http://dapix.blogdns.org/down/umbrella.tar.gz http://members.lycos.co.uk/dotevo/PiB0_2.tar.gz ${THEME_URI}/27101-Silvergloss.kth ${THEME_URI}/27721-Bluestrike.kth http://redneck.servebeer.com:82/Dyne/The+Dark+Penguin.tar.gz ${THEME_URI}/28564-Obscure.kth" RESTRICT="nomirror" LICENSE="GPL" SLOT="0" KEYWORDS="~x86 ~ppc ~sparc ~alpha ~amd64" DEPEND="|| ( >=kde-base/kwin-3.4.1 >=kde-base/kdebase-3.4.1 ) app-arch/bzip2 app-arch/tar app-arch/unzip" KDEDIR=`kde-config --prefix` src_unpack(){ mkdir ${S} cd ${S} for i in ${SRC_URI} ; do bn=`basename ${i}` if [ -n "`echo ${bn} | egrep -v '\.kth$'`" ] ; then unpack ${bn} else bn_name=`echo ${bn} | cut -f 1 -d . | cut -f 2 -d -` mkdir ${bn_name} cd ${bn_name} tar xf ${DISTDIR}/${bn} cd .. fi; done; for i in `ls ${S}/*.kth` ; do tar -xf ${i} done; rm ${S}/*.kth find ${S} -name "*.kth" -exec mv '{}' ${S} \; } src_install() { mkdir -p ${D}/${KDEDIR}/share/apps/kthememanager/themes # Install Themes downloaded find ${S} -name "*~" -o -name "*.*_bak" -exec rm {} \; cp -p -r ${S}/* ${D}/${KDEDIR}/share/apps/kthememanager/themes find ${D}/${KDEDIR}/share/apps/kthememanager/themes -type d -exec chmod 755 {} \; find ${D}/${KDEDIR}/share/apps/kthememanager/themes -type f -exec chmod 644 {} \; } pkg_postinst(){ case $LANG in fr_FR@euro) einfo "" ewarn "Cet ebuild contient des thèmes pour le gestionnaire de thèmes de KDE." einfo "" einfo "Pour changer le thème que vous utilisez :" einfo " o Lancez le Centre de configuration de KDE" einfo " - Apparence et thèmes" einfo " - Gestionnaire de thèmes" einfo " - Sélectionnez un thème." einfo "" ;; *) einfo "" ewarn "This is a set of several themes for KDE Theme-Manager." einfo "" einfo "To change your KDE Theme:" einfo " o Launch KDE Control Center:" einfo " - Appareance & Themes" einfo " - Theme manager" einfo " - Select a theme" einfo "" ;; esac }