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:
Created attachment 59627 [details] games-arcade/wop v0.3.1 ebuild
please add make_desktop_entry wop "Worms of prey" "${GAMES_DATADIR}/${MY_DATA_P}/images/misc/icons/wop16.png" to src_install
Created attachment 59699 [details] games-arcade/wop v0.3.1 ebuild make_desktop_entry for both server and client added
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.
Created attachment 59732 [details] games-arcade/wop v0.3.1 ebuild "newicon" usage implemented
i'm not sure should server desktop entry be installed ... because it should be run in console...
*** Bug 79351 has been marked as a duplicate of this bug. ***
Created attachment 59872 [details] games-arcade/wop v0.3.1 ebuild #6/Anton: agreed. Desktop entry for server removed.
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
Created attachment 74306 [details] wop-0.3.1.ebuild small fix regarding WoP icon
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
wop is 0.4 now
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)
I don't know, but wormux belongs to the games-strategy category ... maybe w
I don't know, but wormux belongs to the games-strategy category ... maybe wörms of prey should belong to the same category ?
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. :-)
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.
The 0.4.1 version compiles and runs nicely here on ~x86.
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.
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
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)
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}"?
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 :-)
(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.
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
In portage. Thanks for the bug report and ebuild.