Bug 33296 - sge 030809 ( New Package )
Bug#: 33296 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: games@gentoo.org Reported By: magnet@suidzer0.org
Component: Games
URL:  http://www.etek.chalmers.se/~e8cal1/sge/index.html
Summary: sge 030809 ( New Package )
Keywords:  EBUILD
Status Whiteboard: 
Opened: 2003-11-12 04:28 0000
Description:   Opened: 2003-11-12 04:28 0000
SGE is an add-on graphics library for the Simple Direct Media Layer.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.

------- Comment #1 From Minati jean michel 2003-11-12 04:30:35 0000 -------
Created an attachment (id=20639) [details]
Ebuild for sge 030809

here is the ebuild for sge 030809.I suggest media-libs/sge as portage
subsection.

------- Comment #2 From Christoph Brill (egore) 2004-02-29 14:16:40 0000 -------
Created an attachment (id=26621) [details]
Version Bump

Since i didn't know there was an ebuild, i wrote my own. Take a look at it, it
works for me and i don't know what the already existing ebuild does different.
Mine looks much simpler :)

------- Comment #3 From Minati jean michel 2004-03-01 01:22:53 0000 -------
I made this ebuild because it's a dependencie for a games I was packaging.
I did not success with the game,so I don t plan to take care of the package( exept if a dev ask me ).
your ebuild seems ok to me.trough , the truetype support is optional ( look my ebuild ).
also you didn t named the ebuild, so we don t know for which version of sge it's working.
the additional sed I was doing were needed by the version of sge I used.

------- Comment #4 From Christoph Brill (egore) 2004-03-01 02:28:26 0000 -------
Thanks for the info. The "sed" part no longer seems to be needed. AFAIK it
installs correct.
I will try to mix both ebuilds to enhance mine with your truetype support.

The only thing is that their version numbers are in MMDDYY-format and not in
YYMMDD as usual. Will try if i can find a solution for that.

------- Comment #5 From Minati jean michel 2004-03-01 04:11:59 0000 -------
for your date trouble, you can still name in YYMMDD format , then use sed in
the ebuild to correct the package's name.
like echo ${PV} |  sed 's,\(..\)\(..\)\(..\),\3\1\2,g' .

------- Comment #6 From John Croisant 2004-03-13 15:49:57 0000 -------
The version numbers are, as far as I can tell, *not* in MMDDYY format as
previously said, but actually in YYMMDD format: version 030809 is likely from
September 09, 2003, seeing as how we are not yet in the year 2009.
Therefore (and this is confirmed at the package's homepage), 030809 is the
latest version.

I have modified the initial ebuild (for sge-030809) to:
-Use the proper license (LGPL-2.1, not GPL-2), as in LICENSE
-List sed as a build dependency (required for src_compile)
(do I assume correctly that 'make', 'gcc' etc. need not be listed, if no
specific version is needed?)
-Use PV rather than 030809 in several places
-Use a local USE flag, 'image', to indicate whether to depend on sdl-image
(sdl-image provides _optional_ support for PNG-based bitmap-fonts)
-Install the example source files (as docs)

I will attach this updated ebuild file after a couple more tests and
looks-over.

Additionally, I am emailing the author about PREFIX et al. flags. Perhaps then,
in future versions we will not have to use 'sed' to edit the silliness in
Makefile.conf!

------- Comment #7 From John Croisant 2004-03-13 18:14:17 0000 -------
Created an attachment (id=27327) [details]
Improved ebuild for SDL Graphics Extension

In addition to the features I described in an earlier comment, this ebuild
removes 2 lines and a blank line from ${S}/examples/README, which described how
to use 'make' to compile the example applications. These instructions would not
work unless ${S}/Makefile.conf was also installed, and the examples folder was
made user-writable. The example source files are still all there, providing
examples of how to do things. The README still describes the function of each
of these examples.

This ebuild should be put in media-libs, like most of the SDL-related libraries
(some language-specific SDL libraries, such as pygame and RUDL, are in their
respective dev-[language] directories)

Thanks.

------- Comment #8 From Christoph Brill (egore) 2005-02-19 04:28:17 0000 -------
Created an attachment (id=51583) [details]
media-libs/sge-030809

useing a patch to work with freetype

------- Comment #9 From Christoph Brill (egore) 2005-02-19 04:38:01 0000 -------
Created an attachment (id=51584) [details]
sge-freetype.patch

the needed patch

------- Comment #10 From Keffin 2005-06-18 05:03:37 0000 -------
Tested and working on amd64. Thanks for the ebuild. 

------- Comment #11 From Jakub Moc (RETIRED) 2005-07-27 17:28:43 0000 -------
*** Bug 57087 has been marked as a duplicate of this bug. ***

------- Comment #12 From Espen Rønnevik 2006-01-30 19:53:46 0000 -------
Created an attachment (id=78538) [details]
Rename and a few fixes

I feel the ebuild should be called sdl-sge-030809.ebuild to similar to other
"addons" to the SDL library already in the portage tree. Also included another
mirror, rearanged order so inheritance will not kill description and changed it
to be little more detailed.

------- Comment #13 From Espen Rønnevik 2006-01-30 20:31:29 0000 -------
Created an attachment (id=78540) [details]
minor updates: sdl-sge-030809-r1 

Changed header to be correct and removed a few spaces, as indicated by repoman

------- Comment #14 From Steven Davidovitz 2006-02-04 13:13:20 0000 -------
Created an attachment (id=78884) [details]
SGE with CMap Patch.

------- Comment #15 From Steven Davidovitz 2006-02-04 13:13:40 0000 -------
Created an attachment (id=78885) [details]
SGE CMap Patch

------- Comment #16 From Steven Davidovitz 2006-02-04 13:15:04 0000 -------
(From update of attachment 78885 [details])
This is a patch to fix SGE's collisionmap set/clear functions for large
collisionmaps.

------- Comment #17 From Carsten Lohrke 2006-02-12 16:53:56 0000 -------
- do MY_P="sge${PV}" and use that instead hardcoding twice
- emake install  should be  make DESTDIR=${D} install  otherwise we'll run into
sandbox violations
- doc/${P}  should be doc/${PF}

------- Comment #18 From Tristan Heaven 2006-03-18 02:58:13 0000 -------
Created an attachment (id=82448) [details]
sdl-sge-030809.ebuild

Changes:
- Fixed problems pointed out by carlo
- Use our CXXFLAGS
- epatch doesn't need die
- Removed unneeded files from dodoc
- Made html docs optional
- Removed depend on sed >=4 as everyone has this now
- Force SDL_image/FreeType support on or off regardless of what is found on the
system
- Build examples and install them with their source (Had to use make -j1...)

Steve, I wasn't sure whether your patch should be used by default so I left it
out (Commented)

------- Comment #19 From Steven Davidovitz 2006-03-28 20:15:07 0000 -------
My patch is needed for a game I am developing. Without the patch a large
surface causes the collision map set and clear methods to segfault.

I am also wondering why this is still not in portage. Are there any humoungus
problems with this package I am not seeing or is it just a lack of a
maintainer?

------- Comment #20 From SpanKY 2006-03-28 20:50:56 0000 -------
> My patch is needed for a game I am developing. Without the patch a large
> surface causes the collision map set and clear methods to segfault.

please take this patch upstream

> I am also wondering why this is still not in portage. Are there any humoungus
> problems with this package I am not seeing or is it just a lack of a
> maintainer?

lack of a maintainer

------- Comment #21 From Steven Davidovitz 2006-03-28 20:54:20 0000 -------
(In reply to comment #20)
> > My patch is needed for a game I am developing. Without the patch a large
> > surface causes the collision map set and clear methods to segfault.
> 
> please take this patch upstream

I actually emailed him a while ago, but he has not responded and since the last
release was in '03 I don't think I can get a hold of him.

------- Comment #22 From SpanKY 2006-03-28 21:14:41 0000 -------
Created an attachment (id=83347) [details]
sge-030809-build.patch

ive looked through the source and sent a bunch of fixes upstream ... in the
meantime, you guys can use this patch

------- Comment #23 From SpanKY 2006-03-28 21:16:38 0000 -------
Created an attachment (id=83348) [details]
sge-030809.ebuild

ive cleaned up the ebuild a bunch ... for one thing, you should never refer to
$ROOT in src_install()

------- Comment #24 From Paul Bredbury 2006-04-02 11:27:22 0000 -------
I've successfully tested the ebuild with games-action/stransball2 in bug
#109199.

------- Comment #25 From SpanKY 2006-04-02 11:29:23 0000 -------
> I actually emailed him a while ago,

then can you explain what the patch does and the problem it's solving ?

------- Comment #26 From Steven Davidovitz 2006-04-02 12:51:30 0000 -------
(In reply to comment #25)
> > I actually emailed him a while ago,
> 
> then can you explain what the patch does and the problem it's solving ?

It changes the 16bit integers for setting and clearing collision maps to 32bit
because if the surface is too large the program will segfault.

------- Comment #27 From Cristiano Chiucchiolo 2006-04-04 04:28:07 0000 -------
What about putting it in portage?

------- Comment #28 From Mr. Bones. 2006-04-04 07:36:39 0000 -------
the src_install needs to be fixed up to not mv or rm files out of ${S}.  It's
an error to not be able to run src_install over and over again and get the same
output in ${D}.

------- Comment #29 From Tristan Heaven 2006-04-04 07:47:37 0000 -------
(In reply to comment #28)
> the src_install needs to be fixed up to not mv or rm files out of ${S}.  It's
> an error to not be able to run src_install over and over again and get the same
> output in ${D}.
> 

I don't see where it does that.

------- Comment #30 From Mr. Bones. 2006-04-04 07:49:57 0000 -------
http://bugs.gentoo.org/attachment.cgi?id=83348

you must not be looking at the same ebuild then.

------- Comment #31 From Mr. Bones. 2006-04-04 07:53:31 0000 -------
ah, nm.  I didn't notice the cd to ${D}

------- Comment #32 From SpanKY 2006-04-06 06:25:23 0000 -------
really the 'use examples' logic needs to be cleaned up and then i'd have no
problem with adding the package

------- Comment #33 From Tristan Heaven 2006-04-06 14:23:04 0000 -------
Any hints regarding the 'use examples' mess?

Also, there are still problems with the Makefile...

The original sge_config.h isn't being overwritten. A tmp fix was 'rm
sge_config.h' in src_unpack.

After that, it builds fine but sdl_image and freetype are still linked if
they're found. I assume that shouldn't happen.

------- Comment #34 From Tupone Alfredo 2006-04-07 13:27:21 0000 -------
Created an attachment (id=84160) [details]
sge-030809.ebuild

examples clean ebuild

------- Comment #35 From Tupone Alfredo 2006-04-07 14:25:15 0000 -------
Created an attachment (id=84169) [details]
sge-030809-gentoo.patch

Adding the patch file

------- Comment #36 From SpanKY 2006-04-07 19:47:32 0000 -------
better to keep patches for sep issues sep rather than merging them into one big
mondo patch

makes it a huge pita down the road with upgrades/upstream/etc... when it's just
one big patch

------- Comment #37 From SpanKY 2006-04-07 20:00:11 0000 -------
cleaned up and added to portage, thanks everyone

------- Comment #38 From Tupone Alfredo 2006-04-08 02:29:16 0000 -------
with doins the example binary get installed with wrong permission.
I don't know if that is wanted.

------- Comment #39 From SpanKY 2006-04-08 11:32:11 0000 -------
there should be no example binaries

ive removed the compile steps from src_compile()