1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils toolchain-funcs
7 DESCRIPTION="A cat, dog and others which chase the mouse or windows around the screen"
8 HOMEPAGE="http://www.daidouji.com/oneko/"
9 SRC_URI="http://www.daidouji.com/oneko/distfiles/${P}.sakura.5.tar.gz
10 mirror://gentoo/${P}-cat.png
11 mirror://gentoo/${P}-dog.png
12 mirror://gentoo/${P}-sakura-nobsd.patch.bz2"
14 LICENSE="public-domain"
16 KEYWORDS="amd64 ppc ppc64 x86"
30 S=${WORKDIR}/oneko-${PV}.sakura.5
34 "${WORKDIR}"/${P}-sakura-nobsd.patch \
35 "${FILESDIR}"/${P}-include.patch
45 CCOPTIONS="${CFLAGS}" \
46 EXTRA_LDOPTIONS="${LDFLAGS}"
51 newman oneko._man oneko.1x
52 dodoc README README-NEW README-SUPP
53 newicon "${DISTDIR}/${P}-cat.png" "cat.png"
54 newicon "${DISTDIR}/${P}-dog.png" "dog.png"
55 make_desktop_entry "oneko" "oneko (cat)" "cat" "Game;Amusement"
56 make_desktop_entry "oneko -dog" "oneko (dog)" "dog" "Game;Amusement"
57 make_desktop_entry "killall -TERM oneko" "oneko kill" "" "Game;Amusement"
61 elog "To kill oneko, type the following in a terminal:"
65 elog "If your mouse cursor changes to the default black cross"
66 elog "after running ${PN}, you should emerge x11-apps/xsetroot"
69 elog "xsetroot -cursor_name left_ptr"