diff options
author | Jeroen Roovers <jer@gentoo.org> | 2019-08-21 12:28:54 +0200 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2019-08-21 12:29:11 +0200 |
commit | c602c55bd8405f6acd6040435699248d8b02e7a6 (patch) | |
tree | e51aa6e3b6fc8074259866a646461c7700ccbaa5 | |
parent | games-puzzle/braincurses: bump version to 1.1.0 (diff) | |
download | gentoo-c602c55bd8405f6acd6040435699248d8b02e7a6.tar.gz gentoo-c602c55bd8405f6acd6040435699248d8b02e7a6.tar.bz2 gentoo-c602c55bd8405f6acd6040435699248d8b02e7a6.zip |
app-misc/oneko: Switch to Debian sources/patches
Package-Manager: Portage-2.3.72, Repoman-2.3.17
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
-rw-r--r-- | app-misc/oneko/Manifest | 2 | ||||
-rw-r--r-- | app-misc/oneko/oneko-1.2_p6_p14.ebuild | 66 |
2 files changed, 68 insertions, 0 deletions
diff --git a/app-misc/oneko/Manifest b/app-misc/oneko/Manifest index 3e4eb6ec7a31..f469fcaa1538 100644 --- a/app-misc/oneko/Manifest +++ b/app-misc/oneko/Manifest @@ -2,3 +2,5 @@ DIST oneko-1.2-cat.png 223 BLAKE2B 35eb9a8aa7e49aa00a7a689187b598ee837b9236715ed 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 +DIST oneko_1.2.sakura.6-14.debian.tar.xz 10996 BLAKE2B 4507243c28371d99976a3ef4d015b53f6dc1e28a0e841c55da18710bfc3825786dc8ee8ce06b5af1ca41445661d6f5c10225b80c6802ab5d2de06dab09de10e0 SHA512 35656ade57e57ba400b6e2d0f9dcfa1b41a7002f874f1113db080d9e75e390ff0e1f4ec169fbcf1cbea135988500501c65a2f520eaab196b8d92ef4feb993baf +DIST oneko_1.2.sakura.6.orig.tar.gz 64623 BLAKE2B 262f9373b1739c0181a52377dd72c5f35bd9d8e4e54364304704bb6794216585a7617525ccf439cef4783556aa732ac84f60a45424021b5963d69485c21a15fe SHA512 3f06b1c23ac6e3d9864530904bccbe0fdbeebb512233e35555ae44d2b45b2e6e50480081f46b048994c9415dca05691a0796357d86b4b7e8dc0bbcf1642ae348 diff --git a/app-misc/oneko/oneko-1.2_p6_p14.ebuild b/app-misc/oneko/oneko-1.2_p6_p14.ebuild new file mode 100644 index 000000000000..24af54e6b8a2 --- /dev/null +++ b/app-misc/oneko/oneko-1.2_p6_p14.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit desktop 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=" + mirror://debian/pool/main/o/${PN}/${PN}_$(ver_cut 1-2).sakura.$(ver_cut 4)-$(ver_cut 6).debian.tar.xz + mirror://debian/pool/main/o/${PN}/${PN}_$(ver_cut 1-2).sakura.$(ver_cut 4).orig.tar.gz + mirror://gentoo/${P/_p*}-cat.png + mirror://gentoo/${P/_p*}-dog.png +" + +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 +" +PATCHES=( + "${FILESDIR}"/${P/_p*}-include.patch +) +S=${WORKDIR}/${PN}-$(ver_cut 1-2).sakura.$(ver_cut 4).orig + +src_prepare() { + for patch in $(< "${WORKDIR}"/debian/patches/series); do + eapply "${WORKDIR}"/debian/patches/${patch} + done + + default +} + +src_configure() { + xmkmf -a || die +} + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + CCOPTIONS="${CFLAGS}" \ + EXTRA_LDOPTIONS="${LDFLAGS}" +} + +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" +} |