summaryrefslogtreecommitdiff
path: root/games-arcade/cavezofphear
diff options
context:
space:
mode:
Diffstat (limited to 'games-arcade/cavezofphear')
-rw-r--r--games-arcade/cavezofphear/Manifest6
-rw-r--r--games-arcade/cavezofphear/cavezofphear-0.5.1.ebuild36
-rw-r--r--games-arcade/cavezofphear/files/cavezofphear-0.5.1-gentoo.patch36
-rw-r--r--games-arcade/cavezofphear/metadata.xml8
4 files changed, 86 insertions, 0 deletions
diff --git a/games-arcade/cavezofphear/Manifest b/games-arcade/cavezofphear/Manifest
new file mode 100644
index 000000000000..dea52bb24105
--- /dev/null
+++ b/games-arcade/cavezofphear/Manifest
@@ -0,0 +1,6 @@
+AUX cavezofphear-0.5.1-gentoo.patch 876 SHA256 e9038cc765a00be5a6507cc131f1bba95cf5ddf1dd6a6dd36601b57df1fcdba0 SHA512 ee3d37644d1b94b39db2274eac0eadd3a823736177da317a2476238dbebe1a8a5af466f01771249e59aed838c684c9fd59fe7868aac3f1e1b89a75863bc49af4 WHIRLPOOL f496ec7a55b00c4155bb6b66fb67a7d7d88f6af91c77ebee9b96b65902baa97d205b4acd591077bd470fca2e55005bc7ceba4650e5c35f558d43c4e0eafde5bb
+DIST phear-0.5.1.tar.bz2 25750 SHA256 9af83c2246dc05531e3d1d11ea931fe38e7086b513fb8e295c7e95b54c68e687 SHA512 23326a63acc06e77a1dd3505345940f8ef31b671282e00f623b181fe1cdbdf1b7e4b37a6e91ea430348a02239ed1450736dc075ea3af3eee0e8acb115aa89f3b WHIRLPOOL 4891f223c91728164e785b781ec957f0c65b31d2e2b32a3db68d3952695e68728bbec566a5b07847ae6157ee0075edd19b7f84fbee8ee458f1690670dc0e9683
+EBUILD cavezofphear-0.5.1.ebuild 783 SHA256 823bf14780031a813d9fff5e60db6d0934ef27a1662c20cb8f398a859748b156 SHA512 017cfdf6c7ec6f7b7bf9bb009051b84376dd15b091e78d73a6b104d3ffdefcd0ff7362a641a4bbd909b1a7f0637e3bcc968a4b580c4bd5a33638964cb1a28cd4 WHIRLPOOL c3355c23a48c8c8abc5ca8fa01f8027bf04232ec96b9ed7b17a34c784816ffdef201b0a87531c946aa94088739ef68d17cd2b22dfa8b3261c8b5c7c9ddd25a4c
+MISC ChangeLog 2644 SHA256 ba6365df704cc192873cb29d187b78a815cca278f8c66768db1f3f6a21c5b6f9 SHA512 a8bd0425aa5d96b2737fb1513204003372d1588e5f0586fb13228fe3e0245e1e6e22949b0fa8553b0dc91e9420b126bad132821445ac0c722904b604ce66f641 WHIRLPOOL 0b8428be21d6e6d6480b8866f3a311daabbee2a9c8ad4218f0a6e5e3b0d3491e219817da189c3a70936acb912be4d91411d5e0e8c592114565f9f03ad668f4b1
+MISC ChangeLog-2015 2362 SHA256 9de1bc905c41b2d62183bdb1743fee8f430d40ae17224c0091ab2a3e690dceb0 SHA512 b902580c632829e210abb4124a9d43a52f2cee164a8b32c397b4729cdef1721d9a7b66f8f5054aa25f824ec40878f6414cd0b13fc1fcc532a6272f9cc71f92c7 WHIRLPOOL 3738eb1108279a0efdbb3aef24cd7674f7da3872b9a3558276488a7f87153697387115c87fdc819853b32d468b8781bf0b2a8957f38eeb28a0963913cb8de6d1
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-arcade/cavezofphear/cavezofphear-0.5.1.ebuild b/games-arcade/cavezofphear/cavezofphear-0.5.1.ebuild
new file mode 100644
index 000000000000..219ade4d4514
--- /dev/null
+++ b/games-arcade/cavezofphear/cavezofphear-0.5.1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="A boulder dash / digger-like game for console using ncurses"
+HOMEPAGE="http://www.x86.no/cavezofphear/"
+SRC_URI="http://www.x86.no/${PN}/${P/cavezof}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ppc64 x86 ~x86-fbsd"
+IUSE=""
+
+RDEPEND=">=sys-libs/ncurses-5:0"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S=${WORKDIR}/${P/cavezof/}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+ sed -i \
+ -e "s:get_data_dir(.):\"${GAMES_DATADIR}/${PN}/\":" \
+ src/{chk.c,main.c,gplot.c} \
+ || die
+}
+
+src_install() {
+ dogamesbin src/phear
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r data/*
+ dodoc ChangeLog README* TODO
+ prepgamesdirs
+}
diff --git a/games-arcade/cavezofphear/files/cavezofphear-0.5.1-gentoo.patch b/games-arcade/cavezofphear/files/cavezofphear-0.5.1-gentoo.patch
new file mode 100644
index 000000000000..fbf79af44519
--- /dev/null
+++ b/games-arcade/cavezofphear/files/cavezofphear-0.5.1-gentoo.patch
@@ -0,0 +1,36 @@
+diff -ru phear-0.5.1.orig/Makefile phear-0.5.1/Makefile
+--- phear-0.5.1.orig/Makefile 2007-02-27 06:21:55.000000000 -0500
++++ phear-0.5.1/Makefile 2013-01-18 02:09:56.403224104 -0500
+@@ -2,7 +2,7 @@
+ DESTDIR_DATA = /usr/local/share
+
+ make:
+- cd src && make
++ $(MAKE) -C src phear
+ clean:
+ rm -f phear editor
+ install:
+diff -ru phear-0.5.1.orig/src/Makefile phear-0.5.1/src/Makefile
+--- phear-0.5.1.orig/src/Makefile 2011-12-12 07:26:03.000000000 -0500
++++ phear-0.5.1/src/Makefile 2013-01-18 02:10:48.218423433 -0500
+@@ -2,10 +2,8 @@
+
+ DESTDIR = ..
+
+-CC = gcc
+ INSTALL = install
+-CFLAGS ?= -s -Wall -O2
+-LDFLAGS += -lncurses
++LDLIBS = `pkg-config ncurses --libs`
+
+ all: phear install clean
+
+@@ -13,7 +11,7 @@
+ $(CC) $(CFLAGS) -c $^ -o $@
+
+ phear: $(OBJS)
+- $(CC) $(CFLAGS) -o $@ $^ ${LDFLAGS}
++ $(CC) $(CFLAGS) -o $@ $^ ${LDFLAGS} $(LDLIBS)
+
+ install: install-game
+
diff --git a/games-arcade/cavezofphear/metadata.xml b/games-arcade/cavezofphear/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-arcade/cavezofphear/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>