diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-04-28 20:21:43 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-04-28 20:21:43 +0100 |
commit | 40aaaa64e86ba6710bbeb31c4615a6ce80e75e11 (patch) | |
tree | 758c221bad35c9288d0bd6df9c7dfc226728e52c /games-puzzle/greedy | |
parent | 8d5dbd847cbc704a6a06405856e94b461011afe3 (diff) |
gentoo resync : 28.04.2021
Diffstat (limited to 'games-puzzle/greedy')
-rw-r--r-- | games-puzzle/greedy/Manifest | 3 | ||||
-rw-r--r-- | games-puzzle/greedy/files/greedy-0.2.0-missing-include.patch | 12 | ||||
-rw-r--r-- | games-puzzle/greedy/greedy-0.2.0-r2.ebuild (renamed from games-puzzle/greedy/greedy-0.2.0-r1.ebuild) | 36 |
3 files changed, 33 insertions, 18 deletions
diff --git a/games-puzzle/greedy/Manifest b/games-puzzle/greedy/Manifest index 29a80e311f6d..15e42fb639ae 100644 --- a/games-puzzle/greedy/Manifest +++ b/games-puzzle/greedy/Manifest @@ -1,3 +1,4 @@ +AUX greedy-0.2.0-missing-include.patch 204 BLAKE2B 61c2524f1aeedb6951b34ba739ce868327638917a22e81c0a15333d31c50d8eba6c4179b0b4137f09a80592c6de440c2d8b99da770f2926690ff552eaa388ad2 SHA512 dc000d4f2c13f3cf88316ce637e1b80958a5f6368ded7f91e4e56092e341139f652f19bf6b14ef65c46de5a9e3f25b12b4b2664524110f995b04ab21f34ce5ca DIST greedy-0.2.0.tar.gz 13152 BLAKE2B e31aa4965a3347ae86c2c598e7eb9cfb3a24657fd24cb49f6d1a925a77e67d162b64647a3f0ea74ff40ac14aa996faaafa305a47991b2a40cd46d3e293ee5859 SHA512 07376d003193244d336909f6336d68c4ce0f1e15388f28cc8e50121856b1f341f46f2aeba6e09118063b27d572916b4f596b75354543df3a72930a44b6b6f8ac -EBUILD greedy-0.2.0-r1.ebuild 896 BLAKE2B c7983666a3718b661cc7b0385729eb1e069d472b2fc2405847fa743a0816a385f29eb8ce1c84b767802125f9d158cc597ef3c4ba45dcc3df81150b149b8cb57f SHA512 548171eafbf6a19ca223d98387e82935898142a5ef453c382c3731994d3fc5734772ef9435b33cb429a95e95f252907878fe15a541611e5342119ee1f8af708b +EBUILD greedy-0.2.0-r2.ebuild 914 BLAKE2B 31fb982594cbdd84371ba15a18c2a8798ab93089641a23b6b6dbb2174ce552ffe3c9b9f664856810cec8811f817db59c5a6132c591c0d5aa4d82e3135dca773e SHA512 108ff3a655783c76aa34eb60a90ef9a2e8a3b83278dc9cc2994556b4e040f61d6f63e4df0ba07656012a893ac6ed42683ef1c99ca93db1f1d63eca372d80055d MISC metadata.xml 249 BLAKE2B 7113a758d7abc93accec998a8843d8ef51ca8b72d72e659e224d5cec2a1a6a63e6c0605958091532ac6e51fa0d501ca4fd9f3f4a9e55baeb31519a02971b465f SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 diff --git a/games-puzzle/greedy/files/greedy-0.2.0-missing-include.patch b/games-puzzle/greedy/files/greedy-0.2.0-missing-include.patch new file mode 100644 index 000000000000..a728cde5b34e --- /dev/null +++ b/games-puzzle/greedy/files/greedy-0.2.0-missing-include.patch @@ -0,0 +1,12 @@ +--- a/greedy.c ++++ b/greedy.c +@@ -13,6 +13,9 @@ + + #include <ncurses.h> + #include <stdlib.h> ++#include <time.h> ++#include <unistd.h> ++#include <string.h> + #include "playmodes.h" + #include "playmodes.c" + diff --git a/games-puzzle/greedy/greedy-0.2.0-r1.ebuild b/games-puzzle/greedy/greedy-0.2.0-r2.ebuild index dffb899aebff..aea669387c16 100644 --- a/games-puzzle/greedy/greedy-0.2.0-r1.ebuild +++ b/games-puzzle/greedy/greedy-0.2.0-r2.ebuild @@ -1,8 +1,9 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 -inherit toolchain-funcs games +EAPI=7 + +inherit toolchain-funcs DESCRIPTION="fun little ncurses puzzle game" HOMEPAGE="http://www.kotinet.com/juhamattin/linux/index.html" @@ -11,30 +12,31 @@ SRC_URI="http://www.kotinet.com/juhamattin/linux/download/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc64 ~x86" -IUSE="" -RDEPEND="sys-libs/ncurses:0" -DEPEND="${RDEPEND} - virtual/pkgconfig" +RDEPEND="sys-libs/ncurses:0=" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( "${FILESDIR}"/${P}-missing-include.patch ) src_prepare() { - rm -f Makefile + default + + rm Makefile || die # It wants a scores file. We need to touch one and install it. - touch greedy.scores + touch greedy.scores || die } src_compile() { - emake CC="$(tc-getCC)" LDLIBS="$($(tc-getPKG_CONFIG) ncurses --libs)" ${PN} + emake CC="$(tc-getCC)" LDLIBS="$($(tc-getPKG_CONFIG) ncurses --libs)" greedy } src_install() { - insinto "${GAMES_STATEDIR}" - doins greedy.scores - - dogamesbin greedy - dodoc CHANGES README TODO + dobin greedy + einstalldocs - prepgamesdirs + insinto /var/games + doins greedy.scores # We need to set the permissions correctly - fperms 664 "${GAMES_STATEDIR}/greedy.scores" + fperms 664 /var/games/greedy.scores } |