summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2006-06-14 18:19:29 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2006-06-14 18:19:29 +0000
commit8b3e0587d9cf72ea47095879f4a57ebe7c2d2f94 (patch)
treed630124492fcdbbe67a816db0a8c3310065c382b /games-puzzle
parentppc stable (diff)
downloadgentoo-2-8b3e0587d9cf72ea47095879f4a57ebe7c2d2f94.tar.gz
gentoo-2-8b3e0587d9cf72ea47095879f4a57ebe7c2d2f94.tar.bz2
gentoo-2-8b3e0587d9cf72ea47095879f4a57ebe7c2d2f94.zip
Initial import. Original ebuild by Benoit Giraudou <bgiraudou@gmail.com>. Ebuild modified by Adrian Fruehwirth <adrian.fruehwirth@gmx.at>, Bernard Cafareli <voyageur@operamail.com>, Gorch(?) <gorch@12move.de>, and myself. Closing bug #121937.
(Portage version: 2.1)
Diffstat (limited to 'games-puzzle')
-rw-r--r--games-puzzle/pouetchess/ChangeLog15
-rw-r--r--games-puzzle/pouetchess/Manifest24
-rw-r--r--games-puzzle/pouetchess/files/digest-pouetchess-0.2.03
-rw-r--r--games-puzzle/pouetchess/files/pouetchess-0.2.0-nvidia_glext.patch12
-rw-r--r--games-puzzle/pouetchess/files/pouetchess-0.2.0-sconstruct-sandbox.patch11
-rw-r--r--games-puzzle/pouetchess/metadata.xml5
-rw-r--r--games-puzzle/pouetchess/pouetchess-0.2.0.ebuild80
7 files changed, 150 insertions, 0 deletions
diff --git a/games-puzzle/pouetchess/ChangeLog b/games-puzzle/pouetchess/ChangeLog
new file mode 100644
index 000000000000..1ad88d1e6b16
--- /dev/null
+++ b/games-puzzle/pouetchess/ChangeLog
@@ -0,0 +1,15 @@
+# ChangeLog for games-puzzle/pouetchess
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/pouetchess/ChangeLog,v 1.1 2006/06/14 18:19:29 wolf31o2 Exp $
+
+*pouetchess-0.2.0 (14 Jun 2006)
+
+ 14 Jun 2006; Chris Gianelloni <wolf31o2@gentoo.org>
+ +files/pouetchess-0.2.0-nvidia_glext.patch,
+ +files/pouetchess-0.2.0-sconstruct-sandbox.patch, +metadata.xml,
+ +pouetchess-0.2.0.ebuild:
+ Initial import. Original ebuild by Benoit Giraudou <bgiraudou@gmail.com>.
+ Ebuild modified by Adrian Fruehwirth <adrian.fruehwirth@gmx.at>, Bernard
+ Cafareli <voyageur@operamail.com>, Gorch(?) <gorch@12move.de>, and myself.
+ Closing bug #121937.
+
diff --git a/games-puzzle/pouetchess/Manifest b/games-puzzle/pouetchess/Manifest
new file mode 100644
index 000000000000..7966d9e0c262
--- /dev/null
+++ b/games-puzzle/pouetchess/Manifest
@@ -0,0 +1,24 @@
+AUX pouetchess-0.2.0-nvidia_glext.patch 373 RMD160 34d53944251ea3b6363ba0a4a4a5cd7a831ffe93 SHA1 f3cb0e05c6fa782193408df5250ff4c225433e5b SHA256 d0466dee4b11efab347409e7e83fffac5ea9c6b1350b660c01b20a0107564a4b
+MD5 65d18a3d457e64f6168ed2975cfa4b00 files/pouetchess-0.2.0-nvidia_glext.patch 373
+RMD160 34d53944251ea3b6363ba0a4a4a5cd7a831ffe93 files/pouetchess-0.2.0-nvidia_glext.patch 373
+SHA256 d0466dee4b11efab347409e7e83fffac5ea9c6b1350b660c01b20a0107564a4b files/pouetchess-0.2.0-nvidia_glext.patch 373
+AUX pouetchess-0.2.0-sconstruct-sandbox.patch 307 RMD160 96d132fcaa5ece5e342980d0b53763e1475c5814 SHA1 6371efafc3c9b069dbde52083bb40534672c058b SHA256 54906095519371346b590316227ca3017473d0ca0c2f17b57c86fc1bbc880fbf
+MD5 e9e3e8c496dc915249531cfcdb30e870 files/pouetchess-0.2.0-sconstruct-sandbox.patch 307
+RMD160 96d132fcaa5ece5e342980d0b53763e1475c5814 files/pouetchess-0.2.0-sconstruct-sandbox.patch 307
+SHA256 54906095519371346b590316227ca3017473d0ca0c2f17b57c86fc1bbc880fbf files/pouetchess-0.2.0-sconstruct-sandbox.patch 307
+DIST pouetchess_src_0.2.0.tar.gz 1055338 RMD160 29611b78ef75b3707ad98752055da775335c0490 SHA1 023bea8043b5dcf8a134531b920497c7efb89adb SHA256 fe966ff1b0aa2dd6d0ca2b62692f5b788e3a286050a6a374e58ca0612f68b2ef
+EBUILD pouetchess-0.2.0.ebuild 2036 RMD160 561962f82563198b4ce1faf7bbcbacdb3bcbf673 SHA1 100a804990031d9d1a16143fb1f1e4e33a9a4299 SHA256 4a26e9e1787e90494e890ab98373cc81b0d3ed65822b551cb39ad80a9ee4c7a3
+MD5 edafac4c8d547c22405b5efdecad8690 pouetchess-0.2.0.ebuild 2036
+RMD160 561962f82563198b4ce1faf7bbcbacdb3bcbf673 pouetchess-0.2.0.ebuild 2036
+SHA256 4a26e9e1787e90494e890ab98373cc81b0d3ed65822b551cb39ad80a9ee4c7a3 pouetchess-0.2.0.ebuild 2036
+MISC ChangeLog 604 RMD160 e4da8025f85ed55a0b8961ac4e27226787c60433 SHA1 8f7a8c8d24011a15e23d738ab2120306837527b8 SHA256 49eb9a1c2bf2fc31cc201f3edc79f7809361c476f35df0155ead1b9fd75ba909
+MD5 e2426a60be650149f7851faf863d3cb4 ChangeLog 604
+RMD160 e4da8025f85ed55a0b8961ac4e27226787c60433 ChangeLog 604
+SHA256 49eb9a1c2bf2fc31cc201f3edc79f7809361c476f35df0155ead1b9fd75ba909 ChangeLog 604
+MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3
+MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158
+RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea metadata.xml 158
+SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 metadata.xml 158
+MD5 7eadcc6fa4e9f41e6368827f20cef2e6 files/digest-pouetchess-0.2.0 265
+RMD160 e825bbeb7f491e368fabe13571d8fe089b9834f3 files/digest-pouetchess-0.2.0 265
+SHA256 702f567d5b88e40b6fa2a4769319aaad242f3eb11283dfd03c094de78d64c110 files/digest-pouetchess-0.2.0 265
diff --git a/games-puzzle/pouetchess/files/digest-pouetchess-0.2.0 b/games-puzzle/pouetchess/files/digest-pouetchess-0.2.0
new file mode 100644
index 000000000000..d5dc5c702be3
--- /dev/null
+++ b/games-puzzle/pouetchess/files/digest-pouetchess-0.2.0
@@ -0,0 +1,3 @@
+MD5 c0454aca11ead9be724d769c521120b1 pouetchess_src_0.2.0.tar.gz 1055338
+RMD160 29611b78ef75b3707ad98752055da775335c0490 pouetchess_src_0.2.0.tar.gz 1055338
+SHA256 fe966ff1b0aa2dd6d0ca2b62692f5b788e3a286050a6a374e58ca0612f68b2ef pouetchess_src_0.2.0.tar.gz 1055338
diff --git a/games-puzzle/pouetchess/files/pouetchess-0.2.0-nvidia_glext.patch b/games-puzzle/pouetchess/files/pouetchess-0.2.0-nvidia_glext.patch
new file mode 100644
index 000000000000..952f6dc85add
--- /dev/null
+++ b/games-puzzle/pouetchess/files/pouetchess-0.2.0-nvidia_glext.patch
@@ -0,0 +1,12 @@
+--- src/sxmlgui/GenUtils.h 2006-05-27 03:22:57.000000000 +0200
++++ src/sxmlgui/GenUtils.h.new 2006-06-12 20:35:32.000000000 +0200
+@@ -5,6 +5,9 @@
+ #include <iostream>
+ #include <fstream>
+ #include <vector>
++#ifndef GL_GLEXT_PROTOTYPES
++#define GL_GLEXT_PROTOTYPES 1
++#endif
+ #include <SDL/SDL_opengl.h>
+
+ #define deleteObject(A){ if(A){ delete A; A = NULL; } }
diff --git a/games-puzzle/pouetchess/files/pouetchess-0.2.0-sconstruct-sandbox.patch b/games-puzzle/pouetchess/files/pouetchess-0.2.0-sconstruct-sandbox.patch
new file mode 100644
index 000000000000..99149b7f6a7f
--- /dev/null
+++ b/games-puzzle/pouetchess/files/pouetchess-0.2.0-sconstruct-sandbox.patch
@@ -0,0 +1,11 @@
+--- SConstruct 2006-05-27 03:44:34.000000000 +0200
++++ SConstruct 2006-06-01 13:12:54.000000000 +0200
+@@ -28,6 +28,8 @@
+
+ # create build environment
+
++env = Environment()
++env.SConsignFile()
+ env = Environment(tools = ['default', 'pouetChess'], toolpath = ['.'])
+ env.AppendUnique(CXXFLAGS = ['-Wall'])
+
diff --git a/games-puzzle/pouetchess/metadata.xml b/games-puzzle/pouetchess/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-puzzle/pouetchess/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-puzzle/pouetchess/pouetchess-0.2.0.ebuild b/games-puzzle/pouetchess/pouetchess-0.2.0.ebuild
new file mode 100644
index 000000000000..2bff0813bca5
--- /dev/null
+++ b/games-puzzle/pouetchess/pouetchess-0.2.0.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/pouetchess/pouetchess-0.2.0.ebuild,v 1.1 2006/06/14 18:19:29 wolf31o2 Exp $
+
+inherit eutils games
+
+MY_PN=${PN/c/C}
+S=${WORKDIR}/${PN}_src_${PV}
+
+DESCRIPTION="3D and open source chess game"
+HOMEPAGE="http://pouetchess.sourceforge.net/"
+SRC_URI="mirror://sourceforge/pouetchess/${PN}_src_${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="debug"
+
+RDEPEND=">=media-libs/libsdl-1.2.8
+ media-libs/sdl-image
+ virtual/opengl
+ || (
+ (
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ x11-libs/libXext
+ virtual/x11 ) )"
+
+DEPEND="${RDEPEND}
+ dev-util/scons"
+
+pkg_setup() {
+ einfo "If you experience problems building pouetchess with nvidia drivers,"
+ einfo "you can try:"
+ einfo "eselect opengl set xorg-x11"
+ einfo "emerge pouetchess"
+ einfo "eselect opengl set nvidia"
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ # modify SConstruct file like seen on
+ # http://permalink.gmane.org/gmane.comp.audio.csound.devel/6646
+ epatch "${FILESDIR}"/${P}-sconstruct-sandbox.patch || die "patch failed"
+
+ # Fix up nvidia headers
+ epatch "${FILESDIR}"/${P}-nvidia_glext.patch
+
+ # Fix for LibSDL >= 1.2.10 detection
+ sed -i -e "s:sdlver.split('.') >= \['1','2','8'\]:sdlver.split('.') >= [1,2,8]:" pouetChess.py || die "sed failed"
+}
+
+src_compile() {
+ local myconf="prefix=${GAMES_PREFIX} datadir=${GAMES_DATADIR}/${PN}"
+ use debug && myconf="${myconf} debug=1 strip=false"
+
+ scons configure ${myconf} || die "scons configure failed"
+
+ scons ${MAKEOPTS} || die "scons make failed"
+}
+
+src_install() {
+ # usings scons to install will violate sandbox
+ #scons install DESTDIR=${D} || die "scons install failed"
+
+ dogamesbin bin/"${MY_PN}"
+
+ insinto "${GAMES_DATADIR}/${PN}"
+
+ doins -r data/* || die "installing data failed"
+
+ dodoc ChangeLog README || die "installing docs failed"
+
+ doicon data/icons/${MY_PN}.png || die "installing icon failed"
+ make_desktop_entry ${MY_PN} "pouetChess" ${MY_PN}.png "KDE;Qt;Game;BoardGame" || die "creating desktop entry failed"
+
+ prepgamesdirs
+}