diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2010-01-24 07:49:21 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2010-01-24 07:49:21 +0000 |
commit | bed7f9365c3d7e8a50105532eee5a09088f696c8 (patch) | |
tree | c86ce2d0cce844344b8c3992dabd38f2d0210933 /games-emulation/nestopia | |
parent | Add missing digests for bzr-2.0.4. (diff) | |
download | historical-bed7f9365c3d7e8a50105532eee5a09088f696c8.tar.gz historical-bed7f9365c3d7e8a50105532eee5a09088f696c8.tar.bz2 historical-bed7f9365c3d7e8a50105532eee5a09088f696c8.zip |
Initial commit - files submitted by Michał Ziąbkowski and Jared via bug #254479
Package-Manager: portage-2.1.6.13/cvs/Linux i686
Diffstat (limited to 'games-emulation/nestopia')
-rw-r--r-- | games-emulation/nestopia/ChangeLog | 12 | ||||
-rw-r--r-- | games-emulation/nestopia/Manifest | 7 | ||||
-rw-r--r-- | games-emulation/nestopia/files/nestopia | 10 | ||||
-rw-r--r-- | games-emulation/nestopia/files/nestopia-1.40-makefile.patch | 69 | ||||
-rw-r--r-- | games-emulation/nestopia/metadata.xml | 5 | ||||
-rw-r--r-- | games-emulation/nestopia/nestopia-1.40.ebuild | 51 |
6 files changed, 154 insertions, 0 deletions
diff --git a/games-emulation/nestopia/ChangeLog b/games-emulation/nestopia/ChangeLog new file mode 100644 index 000000000000..f58f5995b46a --- /dev/null +++ b/games-emulation/nestopia/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for games-emulation/nestopia +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-emulation/nestopia/ChangeLog,v 1.1 2010/01/24 07:49:21 mr_bones_ Exp $ + +*nestopia-1.40 (24 Jan 2010) + + 24 Jan 2010; Michael Sterrett <mr_bones_@gentoo.org> + +nestopia-1.40.ebuild, +files/nestopia-1.40-makefile.patch, + +files/nestopia, +metadata.xml: + Initial commit - files submitted by Michał Ziąbkowski and Jared via bug + #254479 + diff --git a/games-emulation/nestopia/Manifest b/games-emulation/nestopia/Manifest new file mode 100644 index 000000000000..4841bd2f5a20 --- /dev/null +++ b/games-emulation/nestopia/Manifest @@ -0,0 +1,7 @@ +AUX nestopia 331 RMD160 d25ab83e9b1e0ee97e3401d308531b6abbb7c69d SHA1 c58cb0209ade77d6f0b8c00da29f56d5045e8eb3 SHA256 526611cdc5545f397b7b752b56da0b9ff4b6a0e49c0ea9b9ffd92e9691b71035 +AUX nestopia-1.40-makefile.patch 2286 RMD160 efb7d084ef3dce4f456deca8513e3b0336581490 SHA1 e18b800582daba2f13bc099060c1f1925c16daf9 SHA256 94d14ef699365dfd611569428adcce3c2cf802b9227702526fae4f39052cbf1a +DIST Nestopia140src.zip 2346187 RMD160 caecb991dfd459093b88b2abb84ac9bbd95ced63 SHA1 ef85771132cc8652456727278df36f7068d238e0 SHA256 ec503320679062af260135bf38e1fa2376803c75efb74039224fb2ef3b888762 +DIST nst140_lnx_release_h.zip 250216 RMD160 f187b2ff44d8a57432cd7b73679a61142b9ff877 SHA1 94a2a911f306514ed725cff68ddbc47bd33b9f99 SHA256 0b6b11d98fabbb0319c1d0800428f8cba6631ac2808fb4618ced3d7c8d782859 +EBUILD nestopia-1.40.ebuild 1303 RMD160 7f8b0adf65da89cb2054edd0668e6f4f65cd97e6 SHA1 57c29679348ebfcefa3ba3c36128eb8017ad59a4 SHA256 c6c843b1b7716eae04d36adf44dfbe4b58f40ac22c246852dae1bca5ee0d927d +MISC ChangeLog 492 RMD160 b0d83a647c5f0e0fe7f71f165bd31e3d37f29087 SHA1 d68254382d2db238aa2fb25d470d18a5c5a0c520 SHA256 142612cd900493444c68584930b9cc43e3e7243f2b6d7506d2b54f1f66e4a606 +MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 diff --git a/games-emulation/nestopia/files/nestopia b/games-emulation/nestopia/files/nestopia new file mode 100644 index 000000000000..e2a6b03e5948 --- /dev/null +++ b/games-emulation/nestopia/files/nestopia @@ -0,0 +1,10 @@ +#!/bin/sh + +# create dir and copy files, if needed +[ ! -d ~/.nestopia ] && mkdir ~/.nestopia +[ ! -f ~/.nestopia/nstcontrols ] && cp "%GAMES_DATADIR%/nestopia/nstcontrols" ~/.nestopia/ +[ ! -f ~/.nestopia/NstDatabase.xml ] && cp "%GAMES_DATADIR%/nestopia/NstDatabase".xml ~/.nestopia/ + +# wrap around the emu +exec nestopia.bin "$@" + diff --git a/games-emulation/nestopia/files/nestopia-1.40-makefile.patch b/games-emulation/nestopia/files/nestopia-1.40-makefile.patch new file mode 100644 index 000000000000..aba885d51e19 --- /dev/null +++ b/games-emulation/nestopia/files/nestopia-1.40-makefile.patch @@ -0,0 +1,69 @@ +--- Makefile.orig 2010-01-24 02:21:57.196476493 -0500 ++++ Makefile 2010-01-24 02:27:52.134475800 -0500 +@@ -3,19 +3,20 @@ + # By R. Belmont + # + +-CC = gcc +-CPP = g++ +-CFLAGS = -c -O3 -g3 +-CFLAGS += -DNST_PRAGMA_ONCE_SUPPORT -D_SZ_ONE_DIRECTORY +-CFLAGS += -Isource -Isource/core -Isource/zlib -Isource/core/api -Isource/core/board -Isource/core/input -Isource/linux/unzip +-CFLAGS += -Isource/core/vssystem -Isource/linux -Isource/nes_ntsc -I.. -I../nes_ntsc -Isource/linux/7zip +-CFLAGS += `sdl-config --cflags` `pkg-config --cflags gtk+-2.0` +-CFLAGS += -finline-limit=2000 --param inline-unit-growth=1000 --param large-function-growth=1000 -finline-functions-called-once ++FLAGS = -c \ ++ -DNST_PRAGMA_ONCE_SUPPORT -D_SZ_ONE_DIRECTORY \ ++ -Isource -Isource/core -Isource/zlib -Isource/core/api -Isource/core/board -Isource/core/input -Isource/linux/unzip \ ++ -Isource/core/vssystem -Isource/linux -Isource/nes_ntsc -I.. -I../nes_ntsc -Isource/linux/7zip \ ++ `sdl-config --cflags` `pkg-config --cflags gtk+-2.0` \ ++ -finline-limit=2000 --param inline-unit-growth=1000 --param large-function-growth=1000 -finline-functions-called-once ++ ++CFLAGS += $(FLAGS) ++CXXFLAGS += $(FLAGS) + + # enable this for input debugging + #CFLAGS += -DDEBUG_INPUT + +-CPPFLAGS = -Wno-deprecated -fno-rtti ++CXXFLAGS += -Wno-deprecated -fno-rtti + + EXE = nst + LIBS = -lm -lz -lasound `sdl-config --libs` `pkg-config --libs gtk+-2.0` +@@ -144,6 +145,8 @@ + OBJDIRS = objs objs/core objs/core/api objs/core/board objs/core/input objs/core/vssystem objs/nes_ntsc + OBJDIRS += objs/linux objs/linux/7zip objs/linux/unzip + ++$(shell mkdir $(sort $(OBJDIRS))) ++ + # build rules + objs/%.o: source/%.c + @echo Compiling $<... +@@ -151,24 +154,19 @@ + + objs/%.o: source/%.cpp + @echo Compiling $<... +- @$(CC) $(CFLAGS) $(CPPFLAGS) $< -o $@ ++ @$(CC) $(CXXFLAGS) $< -o $@ + + objs/%.o: source/%.o + @echo Compiling $<... + @$.o) $(CFLAGS) $.oFLAGS) $< -o $@ + +-all: maketree $(EXE) $(GENNSTCONTROLS) +- +-maketree: $(sort $(OBJDIRS)) ++all: $(EXE) $(GENNSTCONTROLS) + +-$(sort $(OBJDIRS)): +- @echo Creating output directory $@ +- @mkdir $@ + + # link the commandline exe + $(EXE): $(OBJS) + @echo Linking $@... +- @$(CPP) -g -o $(EXE) $^ $(LIBS) ++ @$(CXX) -g -o $(EXE) $^ $(LIBS) + + clean: + -@rm -f $(OBJS) $(EXE) $(GENNSTCONTROLS) diff --git a/games-emulation/nestopia/metadata.xml b/games-emulation/nestopia/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-emulation/nestopia/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-emulation/nestopia/nestopia-1.40.ebuild b/games-emulation/nestopia/nestopia-1.40.ebuild new file mode 100644 index 000000000000..ae73b8a95bab --- /dev/null +++ b/games-emulation/nestopia/nestopia-1.40.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-emulation/nestopia/nestopia-1.40.ebuild,v 1.1 2010/01/24 07:49:21 mr_bones_ Exp $ + +EAPI=2 +inherit eutils games + +MY_PV="${PV//./}" +LNX_P="nst${MY_PV}_lnx_release_h" +DESCRIPTION="NEStopia is a portable Nintendo Entertainment System emulator written in C++" +HOMEPAGE="http://rbelmont.mameworld.info/?page_id=200" +SRC_URI="mirror://sourceforge/${PN}/Nestopia${MY_PV}src.zip + http://rbelmont.mameworld.info/${LNX_P}.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=x11-libs/gtk+-2.4:2 + media-libs/alsa-lib + >=media-libs/libsdl-1.2.12[audio,joystick,video] + sys-libs/zlib + virtual/opengl + virtual/glu" + +S=${WORKDIR} + +src_prepare() { + epatch "${FILESDIR}"/${P}-makefile.patch + sed \ + -e "s:%GAMES_DATADIR%:${GAMES_DATADIR}:g" \ + "${FILESDIR}"/${PN} \ + > ${PN} \ + || die "sed failed" +} + +src_install() { + newgamesbin nst ${PN}.bin || die "dobin failed" + dogamesbin ${PN} || die "dobin failed" + + insinto "${GAMES_DATADIR}/${PN}" + doins NstDatabase.xml nstcontrols || die "doins failed" + + make_desktop_entry "${PN}" "Nestopia" + + dodoc README.Linux changelog.txt + dohtml -r readme.html doc/*.html doc/details + + prepgamesdirs +} |