summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <nyhm@gentoo.org>2007-08-12 01:21:30 +0000
committerTristan Heaven <nyhm@gentoo.org>2007-08-12 01:21:30 +0000
commit52dda6b220c1f9f43aa3e0f7a983a69e0b3c1b27 (patch)
tree0f1fc64b8573d2ceab4f0d4b740700b0066e399f /games-simulation
parentVersion bump. (diff)
downloadgentoo-2-52dda6b220c1f9f43aa3e0f7a983a69e0b3c1b27.tar.gz
gentoo-2-52dda6b220c1f9f43aa3e0f7a983a69e0b3c1b27.tar.bz2
gentoo-2-52dda6b220c1f9f43aa3e0f7a983a69e0b3c1b27.zip
Version bump
(Portage version: 2.1.3.4)
Diffstat (limited to 'games-simulation')
-rw-r--r--games-simulation/cultivation/ChangeLog9
-rw-r--r--games-simulation/cultivation/cultivation-8.ebuild52
-rw-r--r--games-simulation/cultivation/files/cultivation-8-paths.patch51
-rw-r--r--games-simulation/cultivation/files/cultivation-8-portaudio.patch42
-rw-r--r--games-simulation/cultivation/files/digest-cultivation-83
5 files changed, 156 insertions, 1 deletions
diff --git a/games-simulation/cultivation/ChangeLog b/games-simulation/cultivation/ChangeLog
index e147daede7dd..3562ae56aec6 100644
--- a/games-simulation/cultivation/ChangeLog
+++ b/games-simulation/cultivation/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for games-simulation/cultivation
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-simulation/cultivation/ChangeLog,v 1.2 2007/05/19 21:17:02 tupone Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-simulation/cultivation/ChangeLog,v 1.3 2007/08/12 01:21:30 nyhm Exp $
+
+*cultivation-8 (12 Aug 2007)
+
+ 12 Aug 2007; Tristan Heaven <nyhm@gentoo.org>
+ +files/cultivation-8-paths.patch, +files/cultivation-8-portaudio.patch,
+ +cultivation-8.ebuild:
+ Version bump
19 May 2007; Tupone Alfredo <tupone@gentoo.org> cultivation-7.ebuild:
Added ~x86 keyword. Bug #150406 by Antoine
diff --git a/games-simulation/cultivation/cultivation-8.ebuild b/games-simulation/cultivation/cultivation-8.ebuild
new file mode 100644
index 000000000000..26537802170d
--- /dev/null
+++ b/games-simulation/cultivation/cultivation-8.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-simulation/cultivation/cultivation-8.ebuild,v 1.1 2007/08/12 01:21:30 nyhm Exp $
+
+inherit eutils toolchain-funcs games
+
+MY_P=Cultivation_${PV}_UnixSource
+DESCRIPTION="A game about the interactions within a gardening community"
+HOMEPAGE="http://cultivation.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="virtual/opengl
+ virtual/glu
+ virtual/glut
+ media-libs/pablio"
+
+S=${WORKDIR}/${MY_P}/game2
+
+src_unpack() {
+ unpack ${A}
+ cd ${MY_P}
+ rm -rf minorGems/sound/portaudio
+ epatch \
+ "${FILESDIR}"/${P}-portaudio.patch \
+ "${FILESDIR}"/${P}-paths.patch
+ sed -i "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \
+ game2/gameSource/features.cpp \
+ game2/gameSource/game.cpp \
+ minorGems/util/TranslationManager.cpp \
+ || die "sed failed"
+}
+
+src_compile() {
+ # not an autoconf script
+ platformSelection=1 ./configure || die
+ tc-export CXX
+ emake -C gameSource || die "emake failed"
+}
+
+src_install() {
+ cd gameSource
+ newgamesbin Cultivation ${PN} || die "newgamesbin failed"
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r features.txt font.tga language.txt languages || die "doins failed"
+ dodoc ../documentation/*.txt
+ prepgamesdirs
+}
diff --git a/games-simulation/cultivation/files/cultivation-8-paths.patch b/games-simulation/cultivation/files/cultivation-8-paths.patch
new file mode 100644
index 000000000000..eac34c85eca5
--- /dev/null
+++ b/games-simulation/cultivation/files/cultivation-8-paths.patch
@@ -0,0 +1,51 @@
+--- game2/gameSource/features.cpp
++++ game2/gameSource/features.cpp
+@@ -57,7 +57,7 @@
+
+
+ void initializeFeatures() {
+- FILE *featuresFile = fopen( "features.txt", "r" );
++ FILE *featuresFile = fopen( "@GENTOO_DATADIR@/features.txt", "r" );
+
+ char stringBuffer[100];
+ int switchValue;
+--- game2/gameSource/game.cpp
++++ game2/gameSource/game.cpp
+@@ -592,7 +592,7 @@
+ mStartTimeSeconds( time( NULL ) ),
+ mPaused( false ),
+ mMaxFrameRate( 400 ), // don't limit frame rate
+- mPrintFrameRate( true ),
++ mPrintFrameRate( false ),
+ mNumFrames( 0 ), mFrameBatchSize( 100 ),
+ mFrameBatchStartTimeSeconds( time( NULL ) ),
+ mFrameBatchStartTimeMilliseconds( 0 ),
+@@ -902,7 +902,7 @@
+ // load font image
+ TGAImageConverter tga;
+
+- File fontFile( NULL, "font.tga" );
++ File fontFile( NULL, "@GENTOO_DATADIR@/font.tga" );
+ FileInputStream fontInput( &fontFile );
+
+ Image *fontImage = tga.deformatImage( &fontInput );
+@@ -985,7 +985,7 @@
+ mCurrentTipStoredItem = -1;
+
+ // translation language for tool tips
+- File languageNameFile( NULL, "language.txt" );
++ File languageNameFile( NULL, "@GENTOO_DATADIR@/language.txt" );
+
+ if( languageNameFile.exists() ) {
+ char *languageNameText = languageNameFile.readFileContents();
+--- minorGems/util/TranslationManager.cpp
++++ minorGems/util/TranslationManager.cpp
+@@ -147,7 +147,7 @@
+ mNaturalLanguageStrings( NULL ) {
+
+ // default
+- setDirectoryAndLanguage( "languages", "English" );
++ setDirectoryAndLanguage( "@GENTOO_DATADIR@/languages", "English" );
+ }
+
+
diff --git a/games-simulation/cultivation/files/cultivation-8-portaudio.patch b/games-simulation/cultivation/files/cultivation-8-portaudio.patch
new file mode 100644
index 000000000000..1ce8f8a75c85
--- /dev/null
+++ b/games-simulation/cultivation/files/cultivation-8-portaudio.patch
@@ -0,0 +1,42 @@
+--- game2/gameSource/sound/SoundPlayer.h
++++ game2/gameSource/sound/SoundPlayer.h
+@@ -52,8 +52,8 @@
+ #include "SoundFilter.h"
+ #include "PlayableSound.h"
+
+-#include "minorGems/sound/portaudio/pa_common/portaudio.h"
+-#include "minorGems/sound/portaudio/pablio/pablio.h"
++#include <portaudio/portaudio.h>
++#include <portaudio/pablio.h>
+
+
+ #include "minorGems/util/SimpleVector.h"
+--- game2/Makefile.common
++++ game2/Makefile.common
+@@ -52,7 +52,7 @@
+
+
+
+-COMPILE_FLAGS = -Wall ${DEBUG_FLAG} ${PLATFORM_COMPILE_FLAGS} ${PROFILE_FLAG} ${OPTIMIZE_FLAG} -I${ROOT_PATH} -I${PORT_AUDIO_PATH}/pa_common
++COMPILE_FLAGS = -Wall ${PLATFORM_COMPILE_FLAGS} $(CXXFLAGS) -I${ROOT_PATH}
+
+
+ COMPILE = ${GXX} ${COMPILE_FLAGS} -c
+--- game2/Makefile.GnuLinux
++++ game2/Makefile.GnuLinux
+@@ -20,12 +20,12 @@
+
+ # various GL and X windows librariesneeded for linux
+ # also need portaudio library (which in turn needs pthreads)
+-PLATFORM_LINK_FLAGS = -L/usr/X11R6/lib -lGL -lglut -lGLU -lX11 ${PORT_AUDIO_PATH}/lib/libportaudio.a -lpthread
++PLATFORM_LINK_FLAGS = -lGL -lglut -lGLU -lX11 -lportaudio -lpthread
+
+
+ # All platforms but OSX support g++ and need no linker hacks
+-GXX = g++
+-LINK_FLAGS =
++GXX = $(CXX)
++LINK_FLAGS = $(LDFLAGS)
+
+
+
diff --git a/games-simulation/cultivation/files/digest-cultivation-8 b/games-simulation/cultivation/files/digest-cultivation-8
new file mode 100644
index 000000000000..e3b4e090754b
--- /dev/null
+++ b/games-simulation/cultivation/files/digest-cultivation-8
@@ -0,0 +1,3 @@
+MD5 775de01907613f80f468b73c8d66920b Cultivation_8_UnixSource.tar.gz 1125886
+RMD160 6099e5aafc894cda830add2650d6c9698f34019b Cultivation_8_UnixSource.tar.gz 1125886
+SHA256 001805c03711f0c32b99ed87cdd65f5ffa47b540bd9266ff5948801019ff7da3 Cultivation_8_UnixSource.tar.gz 1125886