summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2004-02-28 02:32:20 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2004-02-28 02:32:20 +0000
commitf80d73914d088e30749ea89182b7703b077b7b98 (patch)
treec6b0eea3387ae519d198323deb3e5707d9a7f8a4 /games-puzzle/krystaldrop
parentAdded ~mips to KEYWORDS to satisfy repoman deps. (Manifest recommit) (diff)
downloadgentoo-2-f80d73914d088e30749ea89182b7703b077b7b98.tar.gz
gentoo-2-f80d73914d088e30749ea89182b7703b077b7b98.tar.bz2
gentoo-2-f80d73914d088e30749ea89182b7703b077b7b98.zip
initial commit (bug #43059)
Diffstat (limited to 'games-puzzle/krystaldrop')
-rw-r--r--games-puzzle/krystaldrop/ChangeLog10
-rw-r--r--games-puzzle/krystaldrop/Manifest3
-rw-r--r--games-puzzle/krystaldrop/files/digest-krystaldrop-0.7.22
-rw-r--r--games-puzzle/krystaldrop/files/krystaldrop-assert.patch9
-rw-r--r--games-puzzle/krystaldrop/krystaldrop-0.7.2.ebuild64
-rw-r--r--games-puzzle/krystaldrop/metadata.xml9
6 files changed, 97 insertions, 0 deletions
diff --git a/games-puzzle/krystaldrop/ChangeLog b/games-puzzle/krystaldrop/ChangeLog
new file mode 100644
index 000000000000..3244de0e3f55
--- /dev/null
+++ b/games-puzzle/krystaldrop/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for games-puzzle/krystaldrop
+# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/krystaldrop/ChangeLog,v 1.1 2004/02/28 02:32:20 mr_bones_ Exp $
+
+*krystaldrop-0.7.2 (27 Feb 2004)
+
+ 27 Feb 2004; Michael Sterrett <mr_bones_@gentoo.org>
+ krystaldrop-0.7.2.ebuild, metadata.xml, files/krystaldrop-assert.patch:
+ initial commit; ebuild submitted by Will McQueen via bug #43059 (modified)
+
diff --git a/games-puzzle/krystaldrop/Manifest b/games-puzzle/krystaldrop/Manifest
new file mode 100644
index 000000000000..d8a4b1873c67
--- /dev/null
+++ b/games-puzzle/krystaldrop/Manifest
@@ -0,0 +1,3 @@
+MD5 0f1e78608f8ec9efb4fbda64dcb11aa8 krystaldrop-0.7.2.ebuild 1363
+MD5 a249fec97287c8b5069d9fa89fea285b files/digest-krystaldrop-0.7.2 118
+MD5 e357d37949c20a3547715fa8eb3d6105 files/krystaldrop-assert.patch 417
diff --git a/games-puzzle/krystaldrop/files/digest-krystaldrop-0.7.2 b/games-puzzle/krystaldrop/files/digest-krystaldrop-0.7.2
new file mode 100644
index 000000000000..7a2f45f62bff
--- /dev/null
+++ b/games-puzzle/krystaldrop/files/digest-krystaldrop-0.7.2
@@ -0,0 +1,2 @@
+MD5 2a0a8049fc5525f1c2cd8ed6656572c4 art_0.7.2.tgz 17079147
+MD5 68af5fccb41bb22bb583da8139dd3bc0 src_0.7.2.tgz 162856
diff --git a/games-puzzle/krystaldrop/files/krystaldrop-assert.patch b/games-puzzle/krystaldrop/files/krystaldrop-assert.patch
new file mode 100644
index 000000000000..5aff17ee7dd6
--- /dev/null
+++ b/games-puzzle/krystaldrop/files/krystaldrop-assert.patch
@@ -0,0 +1,9 @@
+diff -rNu krystaldrop.orig/Sources/KDpp/Resources/ArchiveManager.cpp krystaldrop/Sources/KDpp/Resources/ArchiveManager.cpp
+--- krystaldrop.orig/Sources/KDpp/Resources/ArchiveManager.cpp 2003-08-26 15:14:19.000000000 -0400
++++ krystaldrop/Sources/KDpp/Resources/ArchiveManager.cpp 2004-02-26 20:13:42.000000000 -0500
+@@ -1,3 +1,5 @@
++#include <assert.h>
++
+ #include "ArchiveManager.h"
+ #include "../Tools/Logfile.h"
+
diff --git a/games-puzzle/krystaldrop/krystaldrop-0.7.2.ebuild b/games-puzzle/krystaldrop/krystaldrop-0.7.2.ebuild
new file mode 100644
index 000000000000..7ebaa964a010
--- /dev/null
+++ b/games-puzzle/krystaldrop/krystaldrop-0.7.2.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/krystaldrop/krystaldrop-0.7.2.ebuild,v 1.1 2004/02/28 02:32:20 mr_bones_ Exp $
+
+inherit eutils games
+
+S="${WORKDIR}/${PN}"
+DESCRIPTION="Free clone of an excellent NeoGeo puzzle game, Magical Drop"
+HOMEPAGE="http://krystaldrop.sourceforge.net/"
+SRC_URI="mirror://sourceforge/krystaldrop/art_${PV}.tgz
+ mirror://sourceforge/krystaldrop/src_${PV}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86"
+IUSE="opengl"
+
+RDEPEND="opengl? ( virtual/opengl )
+ >=media-libs/libsdl-1.2.5
+ media-libs/sdl-image
+ media-libs/sdl-mixer
+ media-libs/sdl-ttf
+ >=dev-libs/libxml2-2.5.7
+ sys-libs/zlib"
+DEPEND="${RDEPEND}
+ >=sys-apps/sed-4"
+
+src_unpack() {
+ unpack src_${PV}.tgz
+ cd ${S}
+ epatch "${FILESDIR}/krystaldrop-assert.patch"
+ unpack art_${PV}.tgz
+
+ sed -i \
+ -e "/^EXEDIR:=/ s|$|/bin|" \
+ -e "/^INSTALL_PREFIX:=/ s|$|${D}|" Makefile \
+ || die "sed Makefile failed"
+
+ # fix the high score location
+ sed -i \
+ -e "s:BINDIR:\"${GAMES_STATEDIR}/${PN}\":" \
+ Sources/KrystalDrop/Controller/HighScoresController.cpp \
+ || die "sed HighScoresController.cpp failed"
+
+ if ! use opengl ; then
+ sed -i \
+ -e "/<opengl>.*<\/opengl>/ s|yes|no|" kdrop.xml \
+ || die "sed kdrop.xml failed"
+ sed -i \
+ -e '/^USE_OPENGL/ s/yes/no/' Sources/Makefile \
+ || die "sed Sources/Makefile failed"
+ fi
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed"
+ dodir "${GAMES_STATEDIR}/${PN}"
+ mv "${D}${GAMES_DATADIR}/${PN}/art/survival.sco" \
+ "${D}${GAMES_STATEDIR}/${PN}/" || die "mv failed"
+ fperms 664 "${GAMES_STATEDIR}/${PN}/survival.sco"
+ dodoc CHANGES README
+ doman doc/kdrop.6
+ prepgamesdirs
+}
diff --git a/games-puzzle/krystaldrop/metadata.xml b/games-puzzle/krystaldrop/metadata.xml
new file mode 100644
index 000000000000..1cef6e243af3
--- /dev/null
+++ b/games-puzzle/krystaldrop/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+<maintainer>
+<email>games@gentoo.org</email>
+<name>Games Team</name>
+</maintainer>
+</pkgmetadata>