summaryrefslogtreecommitdiff
path: root/games-arcade/njam
diff options
context:
space:
mode:
Diffstat (limited to 'games-arcade/njam')
-rw-r--r--games-arcade/njam/Manifest6
-rw-r--r--games-arcade/njam/files/njam-1.25-gcc45.patch24
-rw-r--r--games-arcade/njam/metadata.xml11
-rw-r--r--games-arcade/njam/njam-1.25.ebuild46
4 files changed, 87 insertions, 0 deletions
diff --git a/games-arcade/njam/Manifest b/games-arcade/njam/Manifest
new file mode 100644
index 000000000000..b021303bbc1a
--- /dev/null
+++ b/games-arcade/njam/Manifest
@@ -0,0 +1,6 @@
+AUX njam-1.25-gcc45.patch 666 SHA256 2c3a7867ff381cf1e8cc8348b8f1d90d62f4fd2164807c67dd750165edf42562 SHA512 ed750f0b25f79271a262cf7935368bfdb52a8140f188c669b448db91e896e62e7d1e942ce72c4833baa6760cfe47e2d9d38ecc075c20e92b913dd948e5e613e9 WHIRLPOOL 04cd4f9dfa9cbb160dc057660d6aabc5d64ae6b867154d4072eb5a30dbf6398b952bb992f0ea453b574da25973ebb312e894fb61dcbf28b947037d9cd3f246b4
+DIST njam-1.25-src.tar.gz 1665803 SHA256 8ed3eee3f387ce5ecdab7dd528f98cf77f65971510964000f2f1dfbf8b6f3000 SHA512 d19c249ade34ede322245718fbc6fc79c5a0ed5f5da50989f88de48410dda3d7ae29f8968185166dfdc1dd23dae8126efe4a5f3c76c3731b90afd1c798f66917 WHIRLPOOL de12dd8ba5e8bf778f9e828b7aac85d6b9c172e07294ea5d62417fcc39256d0d19427ba9d45417c98540e3641a789774c425a111dfdda7bbc5df4204d7353463
+EBUILD njam-1.25.ebuild 1125 SHA256 92d3b931d323c9d254b8ab8f68c619cfb080f2a9ce96d6585f89822d1bb220ae SHA512 08569815e5f7675faabaa6c0f36c32abe561e289a6507e9409f39703d8bcb8d3b92ff3ec8d96f9c289bfeccef09097271c81c2e526e25780b3f483dcf233cd90 WHIRLPOOL d14b8576b43eeb5ababd92b6aafe624ed9bed748f18645d5cb27ad8936292a6787c24b951bfecb08f5c1b389be4f60bb6a3d63542e3cd770c6d3d84ebc10073a
+MISC ChangeLog 2450 SHA256 4347593b7d9d743cda1363f86c5616483275e99c76c8cf97f0600afc36ac8fbe SHA512 37c7ea710f963c4f355505286ca4b10a799a804019430b50e32fa2c86c771deeafb62c435699c0e4e6087f0fb27ef4e994a2019025d554979eb2f7c5f489cf4b WHIRLPOOL 2c3355d968e66629f765bd68002ef37456be065a5b2c99910605bdb25bcddfad3b6444b9a24df57c23650b20283fc4d7c0b680423d65ea0ea6632635c85956f5
+MISC ChangeLog-2015 1559 SHA256 5752a39c5d48b4d5bd56a0f9d4169325b74ef7f9833d8f1f2d96618c3af2f68e SHA512 ffc737c9187cc71134c2ea03bc5fd43445d652afe5a8c7d147d2812feb5a3d7eaed435b010ee6cdbb4aed5d086fcb7f1163f107f7166d17ae7469b902b0c7f9d WHIRLPOOL 4cd58c4c584325a549b752f5c326a7d487567207919eb7d405926a4f29b499c02ed426ba7809f6de5d15b0acbc3ca091f48b9cfd3a106a186b7fa017c1155c90
+MISC metadata.xml 327 SHA256 d76bf1abd67192b359b2254fb7bc61c6c8459281d09c532f8ae122f6092acfdf SHA512 027848c8ee1cd2adbc90422ab871e50bee2c7fd87aa87fba19208d3814410455177cd722a0a305bb02d911bc380a90901cf65df25ddf037cc48cdc2799d8fb21 WHIRLPOOL d30c0586772849436468155429fba65b3c0979dc8884d1c286ce4c0eb7123482d709f150782750e57b0047f6a3ffa66e58c6e3c5d34f7bf0b132cb2d4485106d
diff --git a/games-arcade/njam/files/njam-1.25-gcc45.patch b/games-arcade/njam/files/njam-1.25-gcc45.patch
new file mode 100644
index 000000000000..b74bc3dac105
--- /dev/null
+++ b/games-arcade/njam/files/njam-1.25-gcc45.patch
@@ -0,0 +1,24 @@
+Fix buiding with gcc 4.5
+
+http://bugs.gentoo.org/show_bug.cgi?id=318411
+
+--- src/njamedit.cpp
++++ src/njamedit.cpp
+@@ -114,7 +114,7 @@
+ key = SDLK_a;
+ else if (CheckForSave())
+ {
+- LogFile::LogFile("Saving maps");
++ LogFile("Saving maps");
+ m_Maps.Save(filename);
+ level_type_was = level_type;
+ changed = false;
+@@ -131,7 +131,7 @@
+ char types[2][5] = { "COOP", "DUEL" };
+ sprintf(buf, "levels/%s.%s\0", filename, types[level_type]);
+ sprintf(filename, "%s\0", buf);
+- LogFile::LogFile("Saving maps");
++ LogFile("Saving maps");
+ m_Maps.Save(filename);
+ level_type_was = level_type;
+ changed = false;
diff --git a/games-arcade/njam/metadata.xml b/games-arcade/njam/metadata.xml
new file mode 100644
index 000000000000..c64fdbbaa6d3
--- /dev/null
+++ b/games-arcade/njam/metadata.xml
@@ -0,0 +1,11 @@
+<?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>
+ <upstream>
+ <remote-id type="sourceforge">njam</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-arcade/njam/njam-1.25.ebuild b/games-arcade/njam/njam-1.25.ebuild
new file mode 100644
index 000000000000..2636456656c2
--- /dev/null
+++ b/games-arcade/njam/njam-1.25.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils flag-o-matic games
+
+MY_P=${P}-src
+DESCRIPTION="Multi or single-player network Pacman-like game in SDL"
+HOMEPAGE="http://njam.sourceforge.net/"
+SRC_URI="mirror://sourceforge/njam/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="media-libs/sdl-mixer
+ media-libs/sdl-image
+ media-libs/libsdl
+ media-libs/sdl-net"
+RDEPEND="${DEPEND}"
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ sed -i \
+ -e "s:hiscore.dat:${GAMES_STATEDIR}/${PN}/\0:" \
+ src/njam.cpp \
+ || die "sed failed"
+ sed -i \
+ -e "/hiscore.dat/ s:\$(DEFAULT_LIBDIR):${GAMES_STATEDIR}:" \
+ Makefile.in \
+ || die "sed failed"
+ epatch "${FILESDIR}"/${P}-gcc45.patch
+ # njam segfaults on startup with -Os
+ replace-flags "-Os" "-O2"
+}
+
+src_install() {
+ dodir "${GAMES_STATEDIR}/${PN}"
+ emake DESTDIR="${D}" install
+ dohtml -r "${D}${GAMES_DATADIR}/njam/html/"*
+ rm -rf "${D}${GAMES_DATADIR}/njam/html/"
+ newicon data/njamicon.bmp njam.bmp
+ make_desktop_entry njam Njam /usr/share/pixmaps/njam.bmp
+ prepgamesdirs
+}