diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-arcade/nibbles |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-arcade/nibbles')
-rw-r--r-- | games-arcade/nibbles/Manifest | 6 | ||||
-rw-r--r-- | games-arcade/nibbles/files/nibbles-0.0.4-as-needed.patch | 24 | ||||
-rw-r--r-- | games-arcade/nibbles/metadata.xml | 8 | ||||
-rw-r--r-- | games-arcade/nibbles/nibbles-0.0.4.ebuild | 48 |
4 files changed, 86 insertions, 0 deletions
diff --git a/games-arcade/nibbles/Manifest b/games-arcade/nibbles/Manifest new file mode 100644 index 000000000000..741ec9d6fa62 --- /dev/null +++ b/games-arcade/nibbles/Manifest @@ -0,0 +1,6 @@ +AUX nibbles-0.0.4-as-needed.patch 503 SHA256 e115296fba7ce4492362abf9fdc14abe114f7f6a61d60d4c75a7be71f12fcf70 SHA512 3cda4a99fe731cc5c860ec914f78cbcf3dbe6438e9d8d973037b252652a8fe257227809fef64829e07bf49e6cfeda5557575b22c602cc0f0c39882354f1b3181 WHIRLPOOL b8fc6cd52c8a7103bb7eadb01a50d5a012ac519aee964d3495038ee688a7f03d03aa4735321059ef6ada44c4a4297cd4400c3e62b43ab9ed33c340e13f402798 +DIST nibbles-v0.0.4.tar.gz 18610 SHA256 4a1715d700319fdad55f8e880d68a16399f9bf1a35ab403f03c13286cd50ee92 SHA512 a10af4f20af371c2a8ab4cf69c4a73120670815467177d3bc2a05aa198e9edf80cc1d47edf40d06059baf6e51cf7018ed4830a3a5bda6a35868548403f5f414b WHIRLPOOL c6900db02529c8a352894e0dca63adb276f6a61e9babef3d2e8a21fa82e4740a82a26c2f090412858feae18ccd7bce16cf2feed502f48cd55820a35d7f0fd3fa +EBUILD nibbles-0.0.4.ebuild 1026 SHA256 734c5d8a2659730e24b7ca3bc405e7d94fe05e3f3b68efaa8fbb8654490ce4b2 SHA512 e3fc26063bb109e64fea4a29557543bde43f0d3779f5d6df24796c78ea67f3e4f582b6027f296568b3978e236ce8fa394834743da6024cd8dfdabb21ddb43b60 WHIRLPOOL fd8a9d2436bbf7b631611c5c3eb9a44c5109d78a37975baabdf434d1ef2ac1bc59fa8351f9f0828cba66f719905b90f6988d1d188aae4a7e4e6e7e233dfb4f67 +MISC ChangeLog 2618 SHA256 23afdd50e86b2709329f368f44d885ca8a8ec02b787330b02cb497974332d90d SHA512 f1265f4a61d084d5ec0527ccf7e7db553a3f0e1f41219b1931393c8997a479ec04144795a0902fc2d37e328ee62d9c053bea463dca0dc55e7d52898f6d5fde9f WHIRLPOOL febfa2b9a126ceb0ba250eb28262f4ddc1bc75faf11d3474985fd2579bd0248961f40a4466f778bd113000fd3b27aec1c5f268668982b0251379cfdec766f9f6 +MISC ChangeLog-2015 2203 SHA256 a5747f9c622619864fb9576c49a15dbff774357dc8ec98dac0fb3de22bfde4cb SHA512 ee3a2d1ee809fda03e6db3b972a4058d052e0942bf961d2ae4dcd84729cfb6c90a5c8e4e6b530991835013803a4851b551bb53a848d9a901028dd62da4e608e6 WHIRLPOOL 48eaa084771e5a804e55d6ee54ba47b0a62c49a700082fb7ebcc262b076a8b830e1b9fb9005b53899308ea5da5a1717f2edb865b36ebed41a6faace806dcda1b +MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088 diff --git a/games-arcade/nibbles/files/nibbles-0.0.4-as-needed.patch b/games-arcade/nibbles/files/nibbles-0.0.4-as-needed.patch new file mode 100644 index 000000000000..7e27d1fb9cac --- /dev/null +++ b/games-arcade/nibbles/files/nibbles-0.0.4-as-needed.patch @@ -0,0 +1,24 @@ +--- Makefile.old 2009-02-02 12:40:36.000000000 +0100 ++++ Makefile 2009-02-02 12:41:22.000000000 +0100 +@@ -1,19 +1,14 @@ +-CC = gcc -Wall -g +- + SRCS = player.c main.c loadMap.c cmdline.c ncdrawlib.c scoring.c + OBJS = $(SRCS:.c=.o) +-LIBS = -lncurses ++LDLIBS = -lncurses + + INSTALL=/usr/bin/install -c + INSTALL_FOLDER=/usr/games + + all: nibbles + +-.c.o: +- $(CC) -c $*.c -o $*.o +- + nibbles: $(OBJS) +- $(CC) $(LIBS) $(OBJS) -o $@ ++ $(CC) $(LDFLAGS) $(OBJS) $(LDLIBS) -o $@ + + clean: + rm -f *~ *.o nibbles diff --git a/games-arcade/nibbles/metadata.xml b/games-arcade/nibbles/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-arcade/nibbles/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>games@gentoo.org</email> + <name>Gentoo Games Project</name> +</maintainer> +</pkgmetadata> diff --git a/games-arcade/nibbles/nibbles-0.0.4.ebuild b/games-arcade/nibbles/nibbles-0.0.4.ebuild new file mode 100644 index 000000000000..17a8a3911cfc --- /dev/null +++ b/games-arcade/nibbles/nibbles-0.0.4.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils games + +MY_P=${PN}-v${PV} +DESCRIPTION="An ncurses-based Nibbles clone" +HOMEPAGE="http://www.earth.li/projectpurple/progs/nibbles.html" +SRC_URI="http://www.earth.li/projectpurple/files/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc64 x86 ~x86-fbsd ~x86-linux ~ppc-macos" +IUSE="" + +DEPEND="sys-libs/ncurses:0" +RDEPEND=${DEPEND} + +S=${WORKDIR}/${MY_P} + +src_prepare() { + sed -i \ + -e "s#/usr/local/games/nibbles.levels#${GAMES_DATADIR}/${PN}#" \ + nibbles.h || die + + sed -i \ + -e "s#/var/lib/games/nibbles.score#${GAMES_STATEDIR}/nibbles.scores#" \ + scoring.h || die + + epatch "${FILESDIR}"/${P}-as-needed.patch +} + +src_install() { + dogamesbin nibbles + + insinto "${GAMES_DATADIR}/${PN}" + doins nibbles.levels/* + + dodir "${GAMES_STATEDIR}" + touch "${D}${GAMES_STATEDIR}/nibbles.scores" + + dodoc HISTORY CREDITS TODO README + + prepgamesdirs + + fperms 664 "${GAMES_STATEDIR}/nibbles.scores" +} |