summaryrefslogtreecommitdiff
path: root/games-arcade/nibbles
diff options
context:
space:
mode:
Diffstat (limited to 'games-arcade/nibbles')
-rw-r--r--games-arcade/nibbles/Manifest4
-rw-r--r--games-arcade/nibbles/files/nibbles-0.0.4-as-needed.patch24
-rw-r--r--games-arcade/nibbles/metadata.xml8
-rw-r--r--games-arcade/nibbles/nibbles-0.0.4.ebuild48
4 files changed, 84 insertions, 0 deletions
diff --git a/games-arcade/nibbles/Manifest b/games-arcade/nibbles/Manifest
new file mode 100644
index 000000000000..e2b4724f2cf1
--- /dev/null
+++ b/games-arcade/nibbles/Manifest
@@ -0,0 +1,4 @@
+AUX nibbles-0.0.4-as-needed.patch 503 BLAKE2B 3d026b46844c1555a7df9516846b8ba2ea048a3a06ba017f9461930254fdcf7480abffedf8b94da095cb8fd50bda8f73756f06b26d10b41564de9eada7745254 SHA512 3cda4a99fe731cc5c860ec914f78cbcf3dbe6438e9d8d973037b252652a8fe257227809fef64829e07bf49e6cfeda5557575b22c602cc0f0c39882354f1b3181
+DIST nibbles-v0.0.4.tar.gz 18610 BLAKE2B 264331c2ef612d1421c370df601da3d8bd5b04c34f7a41e8a8b78480a308d9e8b24177db3666785603efefabd873af04b24bf31d1b320e3fac7698b1b98e2ee0 SHA512 a10af4f20af371c2a8ab4cf69c4a73120670815467177d3bc2a05aa198e9edf80cc1d47edf40d06059baf6e51cf7018ed4830a3a5bda6a35868548403f5f414b
+EBUILD nibbles-0.0.4.ebuild 1029 BLAKE2B 374f3849f7fe6a69170f794ef83cfec94fe5ccf49be744dfe6d898ae63689413b4327a3260d47d50458fb2bfe0b71c07a9884ae3893dcc0c279d9cccf0c1eb20 SHA512 dc88a354455ddc2bb79737ef07f482252f032bce8af3443790418eb858973e195992b30fadd215b68f916930ab120da80156eccb29f8f766670d01e758e6aaf0
+MISC metadata.xml 249 BLAKE2B 7113a758d7abc93accec998a8843d8ef51ca8b72d72e659e224d5cec2a1a6a63e6c0605958091532ac6e51fa0d501ca4fd9f3f4a9e55baeb31519a02971b465f SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118
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..fe523f359b3d
--- /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"
+}