Bug 121937 - ebuild for games-board/pouetchess
Bug#: 121937 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: games@gentoo.org Reported By: bgiraudou@gmail.com
Component: Games
URL:  http://pouetchess.sourceforge.net
Summary: ebuild for games-board/pouetchess
Keywords:  EBUILD
Status Whiteboard: 
Opened: 2006-02-07 00:15 0000
Description:   Opened: 2006-02-07 00:15 0000
pouetChess is a 3D and open source chess game
(http://pouetchess.sourceforge.net). Here's an ebuild for it

------- Comment #1 From Benoît Giraudou 2006-02-07 00:16:26 0000 -------
Created an attachment (id=79090) [details]
ebuild for version 0.11

------- Comment #2 From Stefan Schweizer 2006-02-07 02:49:18 0000 -------
I prepared another ebuild for this independantly:

http://genstef.homelinux.org/local/games-board/pouetchess/pouetchess-0.11.ebuild

------- Comment #3 From Mr. Bones. 2006-02-07 08:17:43 0000 -------
Neither ebuild is of portage-quality as is.

------- Comment #4 From Adrian Frühwirth (bonki) 2006-02-07 13:09:54 0000 -------
Created an attachment (id=79159) [details]
pouetchess-0.11.ebuild

Not sure about the opengl/glu stuff, this always confuses the hell out of me.
Might also want to patch for homedir-configfile-fun. Your turn :)
(untested btw due to lack of a proper gfx card)

------- Comment #5 From Bernard Cafarelli 2006-05-31 08:52:49 0000 -------
pouetchess-0.2 is out and includes:
- a scons-based build system
- config files in home directory
- an embedded AI!

I'll attach my current ebuild for it, issues remaining:
- CFLAGS and friends are not respected...
- I get 2 sandbox violations (a scons trademark), in spite of adding a prefix
parameter...

open_wr:   /usr/include/SDL/.scons21369
open_wr:   /usr/include/SDL/.sconsign

- scons install does not respect DESTDIR, so I install files by hand

------- Comment #6 From Bernard Cafarelli 2006-05-31 08:53:15 0000 -------
Created an attachment (id=87992) [details]
0.2.0 ebuild

------- Comment #7 From Bernard Cafarelli 2006-05-31 23:54:30 0000 -------
Created an attachment (id=88066) [details]
0.2.0 ebuild

The correct version this time (the first one did not install the data in the
right place), sorry

------- Comment #8 From Gorch 2006-06-01 10:08:48 0000 -------
Created an attachment (id=88111) [details]
new iteration of the pouetchess ebuild

new iteration of the pouetchess ebuild

additions:

- keyword ~x86 (works on my installation)
- keyword ~ppc (not testet)
- patch for sandbox violations due to scons
- desktop entry

------- Comment #9 From Gorch 2006-06-01 10:11:42 0000 -------
Created an attachment (id=88112) [details]
patch for the SConstruct file

this adds two lines to the SConstruct file, as seen on

http://permalink.gmane.org/gmane.comp.audio.csound.devel/6646

------- Comment #10 From Mr. Bones. 2006-06-01 10:41:17 0000 -------
some comments:

make the variables at the top in the same format as the other games ebuilds:
blank line after SRC_URI, MY_PN at the top, sort KEYWORDS, RDEPEND first and
mentioned in DEPEND

patch in src_unpack, not src_compile

don't install COPYING

------- Comment #11 From Gorch 2006-06-05 12:59:15 0000 -------
Created an attachment (id=88468) [details]
pouetchess-0.2.0.ebuild

cleaned up as mr.bones advised

------- Comment #12 From Chris Gianelloni (RETIRED) 2006-06-06 09:27:46 0000 -------
# emerge -v pouetchess
Calculating dependencies... done!
>>> Emerging (1 of 1) games-board/pouetchess-0.2.0 to /
>>> Creating Manifest for /usr/local/portage/games-board/pouetchess
>>> Unpacking source...
>>> Unpacking pouetchess_src_0.2.0.tar.gz to /var/tmp/portage/pouetchess-0.2.0/work
 * Applying sconstruct-sandbox.patch ...                                  [ ok
]>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/pouetchess-0.2.0/work/pouetchess_src_0.2.0 ...
scons: Reading SConscript files ...

Now configuring.  If something fails, consult `config.log' for details.

Detected platform : linux
Checking gcc version... 4.1.1
profiling NOT enabled, debugging NOT enabled, level 1 optimizing enabled
Detecting processor...
Couldn't detect your CPU, guessing i686 compatible..
Checking for SDL...
  Checking for sdl-config... /usr/bin/sdl-config
  Checking for LibSDL >= 1.2.8... 1.2.10
You need LibSDL version 1.2.8 or greater for this program

!!! ERROR: games-board/pouetchess-0.2.0 failed.
Call stack:
  ebuild.sh, line 1531:   Called dyn_compile
  ebuild.sh, line 931:   Called src_compile
  pouetchess-0.2.0.ebuild, line 46:   Called die

!!! scons configure failed
!!! If you need support, post the topmost build error, and the call stack if
relevant.




It looks like it could use some work.  Feel free to REOPEN this if there's a
newer upstream release or a patch for this.

------- Comment #13 From Bernard Cafarelli 2006-06-06 12:29:15 0000 -------
I had a fix for this one in the first 0.2.0 ebuild. I'll attach a merged one

Also, does somebody compile with nvidia opengl? I encountered problems until i
switched to xorg-x11 (like suggested for celestia), so I put a pkg_setup
function with some einfos on it (same as celestia). If you do not have the
problem, please disregard it from the ebuild

EDIT: hum, cannot reopen, I'll just attach the ebuild then ;)

------- Comment #14 From Bernard Cafarelli 2006-06-06 12:31:16 0000 -------
Created an attachment (id=88554) [details]
Ebuild with libsdl detection fix

------- Comment #15 From Chris Gianelloni (RETIRED) 2006-06-06 15:14:15 0000 -------
Cool.

I'll look into it.  Thanks for the update.  =]

------- Comment #16 From Chris Gianelloni (RETIRED) 2006-06-12 09:01:20 0000 -------
OK.  It compiles on my box fine, but only if I do the eselect junk.  We really
should be patching the problem rather than masking it.  Asking users to change
their opengl provider to compile something isn't acceptable for us anymore.

------- Comment #17 From Bernard Cafarelli 2006-06-12 12:01:44 0000 -------
(In reply to comment #16)
After digging around a little bit, other projects got this problem with nvidia
OpenGL headers ( Wine for example at
http://www.winehq.org/pipermail/wine-patches/2005-September/021035.html ). 
The often used fix is to manually #define GL_GLEXT_PROTOTYPES *before*
including gl.h (or SDL_opengl.h in this case).

The attached patch fixes the problem for pouetchess

------- Comment #18 From Bernard Cafarelli 2006-06-12 12:03:21 0000 -------
Created an attachment (id=88989) [details]
Fix for nvidia opengl headers

------- Comment #19 From Chris Gianelloni (RETIRED) 2006-06-14 11:19:10 0000 -------
Added to CVS... thanks to all of you for the work on this.