# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ MY_P="19506-pinux's-tux-cursors-theme-${PV}-cur" DESCRIPTION="Pinux's Tux Cursors Theme created by Marko Sosic" HOMEPAGE="http://www.kde-look.org/content/show.php?content=19506" SRC_URI="http://www.kde-look.org/content/files/${MY_P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="" RDEPEND="virtual/x11" src_install() { X11_IMPLEM_P="$(best_version virtual/x11)" X11_IMPLEM="${X11_IMPLEM_P%-[0-9]*}" X11_IMPLEM="${X11_IMPLEM##*\/}" einfo "X11 implementation is ${X11_IMPLEM}." for cursortheme in pCircle-24 pCircle-32 pDebian-24 pDebian-32 pGentoo-24 \ pGentoo-32 pSlackware-24 pSlackware-32 pSuse-24 pSuse-32 pTux-24 pTux-32 \ pUbuntu-24 pUbuntu-32 ; do dodir "/usr/share/cursors/${X11_IMPLEM}/${cursortheme}/" for cursorfile in index.theme cursors ; do cp -dr "${WORKDIR}/cursors/${cursortheme}/${cursorfile}" \ "${D}usr/share/cursors/${X11_IMPLEM}/${cursortheme}/" || die done done dodoc "${WORKDIR}/README" "${WORKDIR}/COPYRIGHT" } pkg_postinst() { X11_IMPLEM_P="$(best_version virtual/x11)" X11_IMPLEM="${X11_IMPLEM_P%-[0-9]*}" X11_IMPLEM="${X11_IMPLEM##*\/}" einfo "To use this set of cursors, edit or create the file ~/.Xdefaults" einfo "and add the following line:" einfo "Xcursor.theme: pTux24" einfo "Alternatively, use KDE's control center to switch to this set" einfo "of cursors." einfo "" einfo "Also, to globally use this set of mouse cursors edit the file:" einfo " /usr/local/share/cursors/${X11_IMPLEM}/default/index.theme" einfo "and change the line:" einfo " Inherits=[current setting]" einfo "to" einfo " Inherits=pTux24" einfo "" einfo "Note this will be overruled by a user's ~/.Xdefaults file." einfo "" ewarn "If you experience flickering, try setting the following line in" ewarn "" ewarn "the Device section of your xorg.conf file:" ewarn " Option \"HWCursor\" \"false\"" }