megacoffee.net Gentoo overlay - legacy mirror
We have moved to Git. This repository is only provided for compatibility with old installations. Learn how to migrate your installation here.
diff kde-misc/py-cashew/py-cashew-1.2.ebuild @ 45:e1ae18b48ffd
adding kde-misc/py-cashew-1.2; removing non-working kde-misc/py-cashew-1.1-r1
author | Daniel Neugebauer <dneuge@energiequant.de> |
---|---|
date | Sat, 28 Sep 2013 19:25:24 +0200 |
parents | 30706ef7fc03 |
children |
line wrap: on
line diff
--- a/kde-misc/py-cashew/py-cashew-1.2.ebuild Sat Sep 28 17:56:09 2013 +0200 +++ b/kde-misc/py-cashew/py-cashew-1.2.ebuild Sat Sep 28 19:25:24 2013 +0200 @@ -1,6 +1,8 @@ -# Copyright 1999-2009 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 +EAPI=5 + DESCRIPTION="Plasmoid for KDE 4.6+ to remove the so-called Cashew (desktop configuration icon) - replacement for abandoned plasmoid \"I HATE the cashew\"." HOMEPAGE="http://kde-look.org/content/show.php/Py-Cashew?content=147892" @@ -10,24 +12,37 @@ IUSE="" inherit git-2 +#inherit kde4-base EGIT_REPO_URI="https://github.com/benoit-monin/Py-Cashew.git" EGIT_COMMIT="226e0352785f14323f787b65a3673abf4b8ce4f2" -#S=${WORKDIR} - #src_unpack() { -# unpack ${A} +# cd ${WORKDIR} +# git clone ${EGIT_REPO_URI} py-cashew-1.2 +# cd py-cashew-1.2 +# git checkout -b TMP-ebuild ${EGIT_COMMIT} +# cd .. #} -#src_compile() { -# m -# cd build -# cmake -DCMAKE_INSTALL_PREFIX=/usr .. || die "CMake failed!" -# emake || die "Make failed!" +#pkg_postinst() { +# plasmapkg --packageroot /usr/share/apps/plasma/plasmoids -i py-cashew-1.2.plasmoid #} src_install() { - #plasmapkg --global --packageroot ${WORKDIR}/usr/share/apps/plasma/plasmoids -i py-cashew-1.1.plasmoid - plasmapkg --packageroot ${WORKDIR}/usr/share/apps/plasma/plasmoids -i py-cashew-1.1.plasmoid + # we try to mimic plasmapkg which does not work in sandbox + + insinto /usr/share/apps/plasma/plasmoids/py-cashew + doins metadata.desktop + + # no idea where icons should go, nothing seems to fit PNGs... + #insinto /usr/share/apps/desktoptheme/default/icons/ + #doins py-cashew.png + + insinto /usr/share/apps/plasma/plasmoids/py-cashew/contents/code + doins contents/code/main.py + + cp -a metadata.desktop plasma-applet-py-cashew.desktop + insinto /usr/share/kde4/services + doins plasma-applet-py-cashew.desktop }