diff options
Diffstat (limited to 'app-misc/oneko')
-rw-r--r-- | app-misc/oneko/Manifest | 7 | ||||
-rw-r--r-- | app-misc/oneko/files/oneko-1.2-include.patch | 10 | ||||
-rw-r--r-- | app-misc/oneko/metadata.xml | 8 | ||||
-rw-r--r-- | app-misc/oneko/oneko-1.2-r2.ebuild | 72 |
4 files changed, 97 insertions, 0 deletions
diff --git a/app-misc/oneko/Manifest b/app-misc/oneko/Manifest new file mode 100644 index 000000000000..6ee1344b01c2 --- /dev/null +++ b/app-misc/oneko/Manifest @@ -0,0 +1,7 @@ +AUX oneko-1.2-include.patch 168 BLAKE2B 48b44fd9269c51a125ea9093c08b0d07e64ef58877c027a20dce75ac3584d8cecad20f785caa0d11b77bd25e9fc3785ddb7c3874c3cc7c7a79310984ac4af920 SHA512 001c47f84a921b2b963282d8132336a2b6368f85dbfa94e294d2dd2054a5697c12fd8d48ad73ae0e0b38039613c3e1b8866e832bedc6162d661bad71643a1702 +DIST oneko-1.2-cat.png 223 BLAKE2B 35eb9a8aa7e49aa00a7a689187b598ee837b9236715ed62ffc37a94f9afdd54cac9c251eb82a85cbf7ef31af36c010d54310d79f079cf43a6ba3761ee3b18c34 SHA512 f3543be2bac0d14d3db5fe6bc33cf59caae743d547993fe010c79d2bfc6f8720d608026d692733b7519d5b6b99db09f58f34af9bd2d8fcc3556b6994734f24bf +DIST oneko-1.2-dog.png 236 BLAKE2B 8aa4bb11d75283784e7bef8eb6d887706d90cf6370cfa41433d32bffbb23db0b775e5a23fe9b19ef0d9426d5e98e583b599e477427c3223f4a225f1904da7ad1 SHA512 11e4a4ecfba26a0ea782846ca288da7ba3f68629dc8f4b0d7987923f06afe57971d53c9161ed13711a9a1f737ea3d8ec76f559311dd10234dca49cfa9d20f533 +DIST oneko-1.2-sakura-nobsd.patch.bz2 2967 BLAKE2B 128fe382d81fdd18f077d015fcad41613baae00171149a2d4fd253bb03595ca4c7be16640531140af90edf176754fad2bf7e4d5ae27471bf7079b3a558788189 SHA512 dbab7471b1c76d8bd7b0c0f9512ce274d98b7e96e8f1cb781a07b031d3a23c0c716222465dee16ad77f658c681116e71e6f8f50ab45ee8f24d132e24fed6849e +DIST oneko-1.2.sakura.5.tar.gz 76825 BLAKE2B e6fbb02823a25e71b6b26d067ca898352d26971bd6595b2f8d33205bf268238e277f8a0a980178704857d50042acd0cb1663d9eb0549764934153864b3602ed1 SHA512 328bc267c027dc2bf9f4d0bf7a3a5cfb0f77e7ffe566dad58ba8728a8d72f905ef0b1b92fea77179d1e79886aea8a6b27cda44dc227d96b69ed34b4fdde3ec15 +EBUILD oneko-1.2-r2.ebuild 1673 BLAKE2B 01fb6acabb5e2d39f3634af2ff7d1998580757e4b17538682f3c8563b3c91c1641f0bedfbe418f3578a499fe9873163e09088e783f18f4c1b4e09fe12db9fb1b SHA512 cca224ca83a61edea8ba92bb3a7157756ed96a9dceac9624c4c221ce955646f797efba918df52856480fc3ceb8dd7859244a4051820263a4c2b0ffaa76ca7505 +MISC metadata.xml 276 BLAKE2B c4cbc92f4cc708c8a571df5735be5dc6d3b2b9d882265fbf398ca38a7c685a9da8d647e78d05a85edae0568f141b065edaa6ac6f6022106fabb8126740b1c60d SHA512 3497963f4fb51bb32521472b54a995091cb457d2cda65c786bd4b46e5af325caf8f6d5c969cefa0c09fe717df09fb015ec59b52f5571c3b2b9d4ea33e6c843ab diff --git a/app-misc/oneko/files/oneko-1.2-include.patch b/app-misc/oneko/files/oneko-1.2-include.patch new file mode 100644 index 000000000000..70b3c2405a5c --- /dev/null +++ b/app-misc/oneko/files/oneko-1.2-include.patch @@ -0,0 +1,10 @@ +--- a/oneko.h ++++ b/oneko.h +@@ -14,6 +14,7 @@ + + #include <stdio.h> + #include <stdlib.h> ++#include <unistd.h> /* pause() */ + #include <string.h> + + #include <signal.h> diff --git a/app-misc/oneko/metadata.xml b/app-misc/oneko/metadata.xml new file mode 100644 index 000000000000..2ba8e9e851e4 --- /dev/null +++ b/app-misc/oneko/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>desktop-misc@gentoo.org</email> + <name>Gentoo Desktop Miscellaneous Project</name> + </maintainer> +</pkgmetadata> diff --git a/app-misc/oneko/oneko-1.2-r2.ebuild b/app-misc/oneko/oneko-1.2-r2.ebuild new file mode 100644 index 000000000000..9866e7ac2964 --- /dev/null +++ b/app-misc/oneko/oneko-1.2-r2.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils toolchain-funcs + +DESCRIPTION="A cat, dog and others which chase the mouse or windows around the screen" +HOMEPAGE="http://www.daidouji.com/oneko/" +SRC_URI="http://www.daidouji.com/oneko/distfiles/${P}.sakura.5.tar.gz + mirror://gentoo/${P}-cat.png + mirror://gentoo/${P}-dog.png + mirror://gentoo/${P}-sakura-nobsd.patch.bz2" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="amd64 ppc ppc64 x86" + +RDEPEND=" + x11-libs/libX11 + x11-libs/libXext +" +DEPEND=" + ${RDEPEND} + app-text/rman + x11-base/xorg-proto + x11-misc/gccmakedep + x11-misc/imake +" + +S=${WORKDIR}/oneko-${PV}.sakura.5 + +src_prepare() { + epatch \ + "${WORKDIR}"/${P}-sakura-nobsd.patch \ + "${FILESDIR}"/${P}-include.patch +} + +src_configure() { + xmkmf -a || die +} + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + CCOPTIONS="${CFLAGS}" \ + EXTRA_LDOPTIONS="${LDFLAGS}" \ + || die +} + +src_install() { + dobin oneko + newman oneko._man oneko.1x + dodoc README README-NEW README-SUPP + newicon "${DISTDIR}/${P}-cat.png" "cat.png" + newicon "${DISTDIR}/${P}-dog.png" "dog.png" + make_desktop_entry "oneko" "oneko (cat)" "cat" "Game;Amusement" + make_desktop_entry "oneko -dog" "oneko (dog)" "dog" "Game;Amusement" + make_desktop_entry "killall -TERM oneko" "oneko kill" "" "Game;Amusement" +} + +pkg_postinst() { + elog "To kill oneko, type the following in a terminal:" + elog "" + elog "killall oneko" + elog "" + elog "If your mouse cursor changes to the default black cross" + elog "after running ${PN}, you should emerge x11-apps/xsetroot" + elog "and run:" + elog "" + elog "xsetroot -cursor_name left_ptr" + elog "" +} |