Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 93695 - ebuild: games-arcade/wop
Summary: ebuild: games-arcade/wop
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Gentoo Games
URL: http://wormsofprey.org/
Whiteboard:
Keywords: EBUILD
: 79351 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-05-23 07:15 UTC by Horst Schirmeier
Modified: 2006-03-21 23:31 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
games-arcade/wop v0.3.1 ebuild (wop-0.3.1.ebuild,1.83 KB, text/plain)
2005-05-23 07:16 UTC, Horst Schirmeier
Details
games-arcade/wop v0.3.1 ebuild (wop-0.3.1.ebuild,2.08 KB, text/plain)
2005-05-24 05:31 UTC, Horst Schirmeier
Details
games-arcade/wop v0.3.1 ebuild (wop-0.3.1.ebuild,2.05 KB, text/plain)
2005-05-24 13:19 UTC, Horst Schirmeier
Details
games-arcade/wop v0.3.1 ebuild (wop-0.3.1.ebuild,1.97 KB, text/plain)
2005-05-26 05:49 UTC, Horst Schirmeier
Details
wop-0.3.1.ebuild (wop-0.3.1.ebuild,1.93 KB, text/plain)
2005-12-08 05:54 UTC, Horst Schirmeier
Details
wop-2005.10.27.ebuild (wop-2005.10.27.ebuild,1.93 KB, text/plain)
2005-12-08 05:56 UTC, Horst Schirmeier
Details
wop-0.4.ebuild (wop-0.4.ebuild,1.91 KB, text/plain)
2005-12-22 14:14 UTC, Horst Schirmeier
Details
wop-0.4.1.ebuild (wop-0.4.1.ebuild,1.91 KB, text/plain)
2006-02-09 07:09 UTC, Horst Schirmeier
Details
wop-0.4.1.ebuild (wop-0.4.1.ebuild,1.89 KB, text/plain)
2006-02-09 07:55 UTC, Horst Schirmeier
Details
wop-0.4.1.ebuild (wop-0.4.1.ebuild,1.89 KB, text/plain)
2006-02-18 09:25 UTC, Horst Schirmeier
Details
wop-0.4.1.ebuild (wop-0.4.1.ebuild,1.60 KB, text/plain)
2006-02-24 00:42 UTC, Horst Schirmeier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Horst Schirmeier 2005-05-23 07:15:27 UTC
Based on the ebuild that was proposed a few months ago in
http://bugs.gentoo.org/show_bug.cgi?id=79351 I wrote one that installs Worms of
Prey 0.3.1.

Modifications from the original proposal:
- Rename from 'games-strategy/wormsofprey' to 'games-arcade/wop' -- this game
has strategic aspects, but IMHO rather belongs to the games-arcade subtree.
- It patches the source so that the included (global) woprc can reside in
$GAMES_SYSCONFDIR rather than /etc
- It patches the included (global) woprc, making it point to the game data
directory.
- Forced virtual/x11 dependency removed (depending on X USE flag now); the
server doesn't need X.

Any objections, suggestions? Please consider adding this ebuild to the Portage tree.

Reproducible: Always
Steps to Reproduce:
Comment 1 Horst Schirmeier 2005-05-23 07:16:54 UTC
Created attachment 59627 [details]
games-arcade/wop v0.3.1 ebuild
Comment 2 Anton Romanov 2005-05-24 01:34:21 UTC
please add 
make_desktop_entry wop "Worms of prey" 
"${GAMES_DATADIR}/${MY_DATA_P}/images/misc/icons/wop16.png"

to src_install
Comment 3 Horst Schirmeier 2005-05-24 05:31:24 UTC
Created attachment 59699 [details]
games-arcade/wop v0.3.1 ebuild

make_desktop_entry for both server and client added
Comment 4 Chris Gianelloni (RETIRED) gentoo-dev 2005-05-24 06:09:02 UTC
It is a bit cleaner to use "newicon" to install the icon file with the same name
as the binary, then use:

make_desktop_entry wop "Worms of prey" wop.png

You can even leave the extension off the icon file, and the desktop environment
will search for them in the path based on the environment's preferences.  For
example, in Gnome, it would use a PNG before an XPM.
Comment 5 Horst Schirmeier 2005-05-24 13:19:43 UTC
Created attachment 59732 [details]
games-arcade/wop v0.3.1 ebuild

"newicon" usage implemented
Comment 6 Anton Romanov 2005-05-25 00:53:33 UTC
i'm not sure should server desktop entry be installed ... because it should be run  
in console...
Comment 7 Mr. Bones. (RETIRED) gentoo-dev 2005-05-25 18:45:03 UTC
*** Bug 79351 has been marked as a duplicate of this bug. ***
Comment 8 Horst Schirmeier 2005-05-26 05:49:51 UTC
Created attachment 59872 [details]
games-arcade/wop v0.3.1 ebuild

#6/Anton: agreed. Desktop entry for server removed.
Comment 9 Nico Blanke 2005-06-08 05:56:26 UTC
Works fine on my system.

Gentoo Base System version 1.6.12
Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.3.4, glibc-2.3.5-r0,
2.6.11-gentoo-r10 i686)
=================================================================
System uname: 2.6.11-gentoo-r10 i686 Intel(R) Pentium(R) 4 CPU 2.53GHz
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.8
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16-r1
sys-devel/libtool:   1.5.18
virtual/os-headers:  2.6.11-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.gentoo.mesh-solutions.com/gentoo/"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LINGUAS="de"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac aalib aim alsa apache2 apm arts avi berkdb bidi bitmap-fonts
cdda cddb cdio cdparanoia cdr cdrdvd cdrom crypt cups curl dba divx4linux dv dvd
dvdr dvdread eds emboss encode esd faad fam fame ffmpeg flac foomaticdb fortran
freetype gd gdbm gif gimpprint gnome gpm gstreamer gtk gtk2 guile icq idea
imagemagick imlib ipv6 irc java jpeg junit libclamav libg++ libwww live matroska
mikmod mjpeg mmx mng motif mp3 mpeg msn mysql ncurses network nls nvidia ogg
oggvorbis opengl openssl pam pdflib perl png ppds python quicktime readline real
ruby samba sdl sndfile spell ssl stream svg svga tcltk tcpd tetex tga tiff
timidity truetype truetype-fonts type1-fonts usb vcd vidx vim-with-x vorbis
win32codecs wmf wxwindows xml xml2 xmms xv xvid yahoo zlib linguas_de
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, MAKEOPTS, PORTDIR_OVERLAY
Comment 10 Horst Schirmeier 2005-12-08 05:54:15 UTC
Created attachment 74306 [details]
wop-0.3.1.ebuild

small fix regarding WoP icon
Comment 11 Horst Schirmeier 2005-12-08 05:56:10 UTC
Created attachment 74307 [details]
wop-2005.10.27.ebuild

ebuild for current WoP CVS snapshot, including the following changes:
- different flavors of bots
- stationary guns
- completely new communication layer
- game info screen
- keyboard configuration menu
- new weapon: guided missile
- focusing other players while being dead
- flashing message window when avatar gets hurt
- many bug fixes
Comment 12 Anton Romanov 2005-12-22 05:09:10 UTC
wop is 0.4 now
Comment 13 Horst Schirmeier 2005-12-22 14:14:21 UTC
Created attachment 75354 [details]
wop-0.4.ebuild

Changes in version 0.4:                                                                                                             
- introduced SkwoermZones                                                                                                           
- stationary guns                                                                                                                   
- completely new communication layer                                                                                                
- game info screen                                                                                                                  
- keyboard configuration menu                                                                                                       
- new weapons: helicopter, dirt grenade                                                                                             
- new theme: sky                                                                                                                    
- improved physics                                                                                                                  
- focusing other players while being dead                                                                                           
- flashing message window when avatar gets hurt                                                                                     
- toggle fullscreen key                                                                                                             
- different flavors of bots (still basic!)                                                                                          
- documentation of replay mode                                                                                                      
- using zlib compression for the transfer of a world from server to client                                                          
- many bug fixes                                                                                                                    
- using SCons for building

ebuild modifications:
- new data tarball version
- dependency on dev-util/scons added
- another small fix regarding WoP icon
- $S doesn't need to be set manually anymore (source tarball contains wop-0.4/ subdirectory instead of wop/ now)
Comment 14 Ali Sabil 2006-01-01 00:26:21 UTC
I don't know, but wormux belongs to the games-strategy category ... maybe w
Comment 15 Ali Sabil 2006-01-01 00:26:21 UTC
I don't know, but wormux belongs to the games-strategy category ... maybe wörms of prey should belong to the same category ?
Comment 16 Horst Schirmeier 2006-01-01 11:41:58 UTC
Unlike Wormux, WoP is a real-time game and not round-based like the original Worms. The game is much more arcade-style than it is strategic, as I already described in the initial bug description.

Just give it a try, you'll see what I mean. :-)
Comment 17 Horst Schirmeier 2006-02-09 07:09:33 UTC
Created attachment 79320 [details]
wop-0.4.1.ebuild

Changes in version 0.4.1:
- re-established synchronicity when mixing different architectures
- improved command line help
- fixed wrong behaviour of client when connecting to Internet server
- new keys: fps display (default: F9) and toggle fps limiter (default: F8)

This is just a copy of the 0.4 .ebuild, no modifications necessary.
Comment 18 Radek Podgorny 2006-02-09 07:41:00 UTC
The 0.4.1 version compiles and runs nicely here on ~x86.
Comment 19 Horst Schirmeier 2006-02-09 07:55:49 UTC
Created attachment 79328 [details]
wop-0.4.1.ebuild

SCons dependency removed: make can still be used, SCons usage is optional.

Thanks to popux and T0M for pointing this out.
Comment 20 Ernestas Liubarskij 2006-02-17 11:24:15 UTC
Works fine here. Would be also nice if you port it to modular X.

# emerge --info
Portage 2.1_pre4-r1 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.6-r2, 2.6.15-gentoo-r5 i686)
=================================================================
System uname: 2.6.15-gentoo-r5 i686 Intel(R) Celeron(R) CPU 2.00GHz
Gentoo Base System version 1.12.0_pre16
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=pentium4 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -march=pentium4 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.dtiltas.lt/mirror/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/"
LC_ALL="lt_LT.utf8"
LINGUAS="lt"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac aalib acpi alsa apm artworkextra asf audiofile avi bash-completion berkdb bitmap-fonts browserplugin bzip2 cairo cdb cdparanoia cdr chroot crypt curl dbus dri dv dvd dvdread eds emboss encode exif expat fam fat ffmpeg firefox flac foomaticdb fortran gd gdbm gif glut gnome gnutls gpm gstreamer gtk gtk2 gtkhtml hal howl idn imagemagick imlib irssi java javascript jpeg lame lcms libg++ libwww live logrotate mad matroska mikmod mjpeg mmx mmxext mng motif mozilla mp3 mpeg mplayer nautilus ncurses network nls nptl nsplugin ntfs numeric nvidia offensive ogg oggvorbis openal opengl oss pam pdf pdflib perl pic png python quicktime readline real reiser4 reiserfs sdl shorten spell sqlite sse sse2 ssl symlink tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb vcd vidix vorbis win32codecs wxwindows xchat xine xml xml2 xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_lt userland_GNU video_cards_nvidia"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LDFLAGS, PORTDIR_OVERLAY
Comment 21 Horst Schirmeier 2006-02-18 09:25:45 UTC
Created attachment 80112 [details]
wop-0.4.1.ebuild

Minor ebuild changes:
- "X" USE flag removed
- virtual/x11 dependency removed

The above addresses Ernestas' comment #19 (thanks for the feedback!); the SDL dependencies already take care of modular X support.

- sys-libs/zlib dependency added (although in the base system)
Comment 22 Mr. Bones. (RETIRED) gentoo-dev 2006-02-22 20:15:58 UTC
comments:

no need for virtual/libc in deps
don't quote the MY_DATA assignment
use games_make_wrapper instead of rolling your own
no need for src_compile
make_desktop_entry wop-client "Worms of Prey" is all you need
don't use mv in src_install, use insinto/doins
don't install COPYING
if woprc is required, error check the doins
use sed instead of dosed

what's the dosym for in src_install?  why not just install to "${GAMES_DATADIR}/${PN}"?
Comment 23 Horst Schirmeier 2006-02-23 08:16:30 UTC
Bones, I agree with all your comments (comment #21), besides these:

- "don't quote the MY_DATA assignment" -- Which one do you mean? Why am I not supposed to quote here?
- "don't use mv in src_install, use insinto/doins" -- This can be accomplished, but it'll slow down src_install() significantly: mv moves the data tree very quickly; doins invokes cp for every single file (and uses some homebrew recursiveness instead of cp -r).

About "what's the dosym for in src_install? [...]": I don't know what reason I had to use this symbolic link. I must have had one, but I don't remember it :-)
Comment 24 Mr. Bones. (RETIRED) gentoo-dev 2006-02-23 17:46:05 UTC
(In reply to comment #22)
> - "don't quote the MY_DATA assignment" -- Which one do you mean? Why am I not
> supposed to quote here?

MY_DATA_S="${WORKDIR}/${MY_DATA_P}"

right there ^^^ the quotes are unnecessary.

> - "don't use mv in src_install, use insinto/doins" -- This can be accomplished,
> but it'll slow down src_install() significantly: mv moves the data tree very
> quickly; doins invokes cp for every single file (and uses some homebrew
> recursiveness instead of cp -r).

tough.  mv in src_install is evil because that makes it so you can't run src_install more then once.

> About "what's the dosym for in src_install? [...]": I don't know what reason I
> had to use this symbolic link. I must have had one, but I don't remember it :-)

try it without and see if you can track down why.  If it's still needed it should get a comment.

Comment 25 Horst Schirmeier 2006-02-24 00:42:17 UTC
Created attachment 80578 [details]
wop-0.4.1.ebuild

Implementing Mr. Bones' suggestions.

> try it without and see if you can track down why.
> If it's still needed it should get a comment.

Yes, of course; I removed it.

Additional changes:
- server/client wrappers disappeared: since 0.4.0 this can also be done via GUI
- pkg_postinst() disappeared: game binary name is the same as package name
- more comments added
Comment 26 Mr. Bones. (RETIRED) gentoo-dev 2006-02-24 01:54:05 UTC
In portage.  Thanks for the bug report and ebuild.