# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ MY_P="ptux-xcursors-${PV}" DESCRIPTION="Pinux's tux cursors themes" HOMEPAGE="http://www.gnome-look.org/content/show.php?content=19506" SRC_URI="http://www.studio-kappo.com/tux/$MY_P.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 ppc sparc ~alpha hppa amd64 mips" 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}." dodir /usr/share/cursors/${X11_IMPLEM} cp -R ${WORKDIR}/* ${D}/usr/share/cursors/${X11_IMPLEM}/ dodoc ${WORKDIR}/README } pkg_postinst() { einfo "To use this set of cursors, edit or create the file ~/.Xdefaults" einfo "and add the following line:" einfo "Xcursor.theme: pTux-24" einfo "Or one of the following cursors theme name:" einfo "pTux-32" einfo "pGentoo-24" einfo "pGentoo-32" einfo "pCircle-24" einfo "pCircle-32" einfo "" einfo "To globally use this set of mouse cursors edit the file:" einfo " /usr/share/cursors/${X11_IMPLEM}/default/index.theme" einfo "and change the line:" einfo " Inherits=[current setting]" einfo "to" einfo " Inherits=pTux-24" 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 "the Device section of your XF86Config:" ewarn "Option \"HWCursor\" \"false\"" }