summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2007-05-17 20:11:01 +0000
committerAlfredo Tupone <tupone@gentoo.org>2007-05-17 20:11:01 +0000
commit5e2556b3d1fc37f5f33726d3df29d3b6fc2c605b (patch)
treec3b5bb2c4cc1fbf8296d0995ad1ec970fd8e700f /games-simulation
parentRemove generation 1 ebuild. (diff)
downloadgentoo-2-5e2556b3d1fc37f5f33726d3df29d3b6fc2c605b.tar.gz
gentoo-2-5e2556b3d1fc37f5f33726d3df29d3b6fc2c605b.tar.bz2
gentoo-2-5e2556b3d1fc37f5f33726d3df29d3b6fc2c605b.zip
New package. Bug #150406
(Portage version: 2.1.2.2)
Diffstat (limited to 'games-simulation')
-rw-r--r--games-simulation/cultivation/ChangeLog10
-rw-r--r--games-simulation/cultivation/Manifest20
-rw-r--r--games-simulation/cultivation/cultivation-7.ebuild49
-rw-r--r--games-simulation/cultivation/files/cultivation-7-gentoo.patch86
-rw-r--r--games-simulation/cultivation/files/digest-cultivation-73
-rw-r--r--games-simulation/cultivation/metadata.xml20
6 files changed, 188 insertions, 0 deletions
diff --git a/games-simulation/cultivation/ChangeLog b/games-simulation/cultivation/ChangeLog
new file mode 100644
index 000000000000..2c975372cf9b
--- /dev/null
+++ b/games-simulation/cultivation/ChangeLog
@@ -0,0 +1,10 @@
+# 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.1 2007/05/17 20:11:01 tupone Exp $
+
+*cultivation-7 (17 May 2007)
+
+ 17 May 2007; Tupone Alfredo <tupone@gentoo.org>
+ +files/cultivation-7-gentoo.patch, +metadata.xml, +cultivation-7.ebuild:
+ New package. Bug #150406 by Cedric Krier <cedk@gentoo.org>
+
diff --git a/games-simulation/cultivation/Manifest b/games-simulation/cultivation/Manifest
new file mode 100644
index 000000000000..12489647233c
--- /dev/null
+++ b/games-simulation/cultivation/Manifest
@@ -0,0 +1,20 @@
+AUX cultivation-7-gentoo.patch 3186 RMD160 b4ec07202d8a61901a1989c59251731e660e168c SHA1 8d1949bb690825cbec83aaa07f63532c2152b7d5 SHA256 08939a9c9ed35410ae1e790fd3c7d9899621534bd949b43eb86c64fb407a1fc1
+MD5 8d8eeb0a38d1a80a2d6151e111033d31 files/cultivation-7-gentoo.patch 3186
+RMD160 b4ec07202d8a61901a1989c59251731e660e168c files/cultivation-7-gentoo.patch 3186
+SHA256 08939a9c9ed35410ae1e790fd3c7d9899621534bd949b43eb86c64fb407a1fc1 files/cultivation-7-gentoo.patch 3186
+DIST Cultivation_7_UnixSource.tar.gz 1117852 RMD160 94a9ce95e774c5ca981d2bcd41cfa2228daf7c67 SHA1 64f3b4a59815c8cd3976de0ec6c67b99d21729a8 SHA256 17c3b2efcf6bf059178058a04bd0b555e257bfb9117a25445d6fbf00a70ac8b2
+EBUILD cultivation-7.ebuild 1133 RMD160 16c983cf4e2a9f02ff7f29d21fece56de5b53ba1 SHA1 dd52cfe88f17d99c4c8ad6533859841816de0685 SHA256 c8a137dced72ff0bd848c39aa54e8857f5d11b03cc9f8b4cbed785c0abce08d5
+MD5 77dd461aed8eaf9c1090ea46cfbfbe59 cultivation-7.ebuild 1133
+RMD160 16c983cf4e2a9f02ff7f29d21fece56de5b53ba1 cultivation-7.ebuild 1133
+SHA256 c8a137dced72ff0bd848c39aa54e8857f5d11b03cc9f8b4cbed785c0abce08d5 cultivation-7.ebuild 1133
+MISC ChangeLog 346 RMD160 10b2e5926ec185599074ec1d0b51aa417d5c7dbf SHA1 60ecddf223706b360c58c4df62391fbb1b2a78c8 SHA256 f88f98d3b931e7ab457b5ece5d918a3d2bbec3d947b30f69db88d5213a7fa518
+MD5 bc47826db294882e147db0b6c0a7e3bb ChangeLog 346
+RMD160 10b2e5926ec185599074ec1d0b51aa417d5c7dbf ChangeLog 346
+SHA256 f88f98d3b931e7ab457b5ece5d918a3d2bbec3d947b30f69db88d5213a7fa518 ChangeLog 346
+MISC metadata.xml 982 RMD160 835e540eb7bc0b9e4a16f21ebf3c70ed2c2062ff SHA1 975211e7e000ceccf671f00d5f432f9b031844bf SHA256 fbb4a448f5d958f99372d8fbacd9938da0e477302ada4e048845d1c772577025
+MD5 acdb2dc3510778aeb3929f97dcd0494c metadata.xml 982
+RMD160 835e540eb7bc0b9e4a16f21ebf3c70ed2c2062ff metadata.xml 982
+SHA256 fbb4a448f5d958f99372d8fbacd9938da0e477302ada4e048845d1c772577025 metadata.xml 982
+MD5 8164218497b3fef31cff80abe1f95eee files/digest-cultivation-7 277
+RMD160 7599c15a5067c2e345ce73fdbdd22c8d1e1a6832 files/digest-cultivation-7 277
+SHA256 7a0d2e83c70a7fa92eea7bfb3a09b3d00b253c7f0874c2183cd3e63a98559768 files/digest-cultivation-7 277
diff --git a/games-simulation/cultivation/cultivation-7.ebuild b/games-simulation/cultivation/cultivation-7.ebuild
new file mode 100644
index 000000000000..f0b07fe9c9b8
--- /dev/null
+++ b/games-simulation/cultivation/cultivation-7.ebuild
@@ -0,0 +1,49 @@
+# 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-7.ebuild,v 1.1 2007/05/17 20:11:01 tupone Exp $
+
+inherit eutils flag-o-matic 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"
+IUSE=""
+
+DEPEND="virtual/glut
+ media-libs/pablio"
+
+S="${WORKDIR}/${MY_P}/game2/gameSource"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${P}"-gentoo.patch
+ sed -i -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \
+ ../../minorGems/util/TranslationManager.cpp \
+ features.cpp \
+ game.cpp || die "Changing data path failed"
+}
+
+src_compile() {
+ cd ..
+ platformSelection=1 ./configure
+ cd gameSource
+ emake || die "emake failed"
+}
+
+src_install() {
+ dogamesbin Cultivation || die "Installing binary failed"
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins -r features.txt font.tga language.txt languages \
+ || die "doins languages failed"
+ cd ../documentation
+ dodoc how_to_*.txt changeLog.txt
+
+ prepgamesdirs
+}
diff --git a/games-simulation/cultivation/files/cultivation-7-gentoo.patch b/games-simulation/cultivation/files/cultivation-7-gentoo.patch
new file mode 100644
index 000000000000..03bc8e80bd8e
--- /dev/null
+++ b/games-simulation/cultivation/files/cultivation-7-gentoo.patch
@@ -0,0 +1,86 @@
+--- ../../minorGems/util/TranslationManager.cpp.old 2007-05-17 00:04:50.000000000 +0200
++++ ../../minorGems/util/TranslationManager.cpp 2007-05-17 00:05:09.000000000 +0200
+@@ -147,7 +147,7 @@
+ mNaturalLanguageStrings( NULL ) {
+
+ // default
+- setDirectoryAndLanguage( "languages", "English" );
++ setDirectoryAndLanguage( "@GENTOO_DATADIR@/languages", "English" );
+ }
+
+
+--- game.cpp.old 2007-05-17 00:16:44.000000000 +0200
++++ game.cpp 2007-05-17 00:17:18.000000000 +0200
+@@ -589,7 +589,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 ),
+@@ -897,7 +897,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 );
+@@ -980,7 +980,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();
+--- features.cpp.old 2007-05-17 00:20:16.000000000 +0200
++++ features.cpp 2007-05-17 00:20:54.000000000 +0200
+@@ -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;
+--- sound/SoundPlayer.h.old 2007-05-17 20:23:32.000000000 +0200
++++ sound/SoundPlayer.h 2007-05-17 20:24:39.000000000 +0200
+@@ -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"
+--- ../Makefile.common.old 2007-05-17 20:33:05.000000000 +0200
++++ ../Makefile.common 2007-05-17 20:33:37.000000000 +0200
+@@ -51,7 +51,7 @@
+
+
+
+-COMPILE_FLAGS = -Wall ${DEBUG_FLAG} ${PLATFORM_COMPILE_FLAGS} ${PROFILE_FLAG} ${OPTIMIZE_FLAG} -I${ROOT_PATH} -I${PORT_AUDIO_PATH}/pa_common
++COMPILE_FLAGS = $(CXXFLAGS) ${PLATFORM_COMPILE_FLAGS} -I${ROOT_PATH}
+
+
+ COMPILE = ${GXX} ${COMPILE_FLAGS} -c
+--- ../Makefile.GnuLinux.old 2007-05-17 20:32:12.000000000 +0200
++++ ../Makefile.GnuLinux 2007-05-17 20:32:35.000000000 +0200
+@@ -17,7 +17,7 @@
+
+ # 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 -lXi -lXext -lXmu ${PORT_AUDIO_PATH}/lib/libportaudio.a -lpthread
++PLATFORM_LINK_FLAGS = -L/usr/X11R6/lib -lGL -lglut -lGLU -lX11 -lXi -lXext -lXmu -lportaudio -lpthread
+
+
+ # All platforms but OSX support g++ and need no linker hacks
diff --git a/games-simulation/cultivation/files/digest-cultivation-7 b/games-simulation/cultivation/files/digest-cultivation-7
new file mode 100644
index 000000000000..123a08f63714
--- /dev/null
+++ b/games-simulation/cultivation/files/digest-cultivation-7
@@ -0,0 +1,3 @@
+MD5 8a124674d5b395f15d277e4b7191f1a8 Cultivation_7_UnixSource.tar.gz 1117852
+RMD160 94a9ce95e774c5ca981d2bcd41cfa2228daf7c67 Cultivation_7_UnixSource.tar.gz 1117852
+SHA256 17c3b2efcf6bf059178058a04bd0b555e257bfb9117a25445d6fbf00a70ac8b2 Cultivation_7_UnixSource.tar.gz 1117852
diff --git a/games-simulation/cultivation/metadata.xml b/games-simulation/cultivation/metadata.xml
new file mode 100644
index 000000000000..81c88c1cfa4d
--- /dev/null
+++ b/games-simulation/cultivation/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+<longdescription lang="en">
+Cultivation is a game about a community of gardeners growing food for themselves
+in a shared space.
+
+Cultivation is quite different from most other games. It is a social simulation,
+and the primary form of conflict is over land and plant resources---there is no
+shooting, but there are plenty of angry looks. It is also an evolution
+simulation. Within the world of Cultivation, you can explore a virtually
+infinite spectrum of different plant and gardener varieties.
+
+All of the graphics, sounds, melodies,and other content in Cultivation are 100%
+procedurally generated at playtime. In other words, there are no hand-painted
+texture maps---instead, each object has a uniquely "grown" appearance. Every
+time you play, Cultivation generates fresh visuals, music, and behaviors.
+</longdescription>
+</pkgmetadata>