diff options
author | 2015-08-08 13:49:04 -0700 | |
---|---|---|
committer | 2015-08-08 17:38:18 -0700 | |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /games-arcade/njam | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'games-arcade/njam')
-rw-r--r-- | games-arcade/njam/Manifest | 1 | ||||
-rw-r--r-- | games-arcade/njam/files/njam-1.25-gcc45.patch | 24 | ||||
-rw-r--r-- | games-arcade/njam/metadata.xml | 8 | ||||
-rw-r--r-- | games-arcade/njam/njam-1.25.ebuild | 47 |
4 files changed, 80 insertions, 0 deletions
diff --git a/games-arcade/njam/Manifest b/games-arcade/njam/Manifest new file mode 100644 index 000000000000..3d711acf3fd0 --- /dev/null +++ b/games-arcade/njam/Manifest @@ -0,0 +1 @@ +DIST njam-1.25-src.tar.gz 1665803 SHA256 8ed3eee3f387ce5ecdab7dd528f98cf77f65971510964000f2f1dfbf8b6f3000 SHA512 d19c249ade34ede322245718fbc6fc79c5a0ed5f5da50989f88de48410dda3d7ae29f8968185166dfdc1dd23dae8126efe4a5f3c76c3731b90afd1c798f66917 WHIRLPOOL de12dd8ba5e8bf778f9e828b7aac85d6b9c172e07294ea5d62417fcc39256d0d19427ba9d45417c98540e3641a789774c425a111dfdda7bbc5df4204d7353463 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..cbb30a3a18a3 --- /dev/null +++ b/games-arcade/njam/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <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..0490115d19f4 --- /dev/null +++ b/games-arcade/njam/njam-1.25.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 ppc 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 +} |