if timidity is installed, MIDI is set to pmidi, no matter, if pmidi is installed or not. i would suggest setting that to aplaymidi or put pmidi as dependency.
maybe I'm missing what you're saying, can you restate it please? The ebuild changes behavior based on the timidity use flag. Can you give an example of the changes to the ebuild?
i've found those lines: if ! use timidity; then use alsa && myopts="${myopts} MIDI=/usr/bin/pmidi" fi in the ebuild and assumed (means i have no clue), that this somehow configures openttd to use pmidi as midi player. if this is not correct, ignore my statement. even more, since i've emerged pmidi and still get no midi sound. i've copied over al .gm's, yes, and i can even listen to them with aplaymidi, but they won't be played in the game, what made me look in the ebuild for something in the first place.
post the output of emerge --info please.
root@eNTi # emerge info Portage 2.0.51-r13 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r5 x86_64) ================================================================= System uname: 2.6.10-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System version 1.6.8 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Jan 11 2005, 21:55:34)] ccache version 2.3 [enabled] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.9.4, 1.5, 1.6.3, 1.7.9, 1.4_p6, 1.8.5-r2 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r2 virtual/os-headers: 2.6.8.1-r3 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-march=k8 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /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="-march=k8 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache digest distlocks fixpackages" GENTOO_MIRRORS="http://gentoo.inode.at/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://mir.zyrianes.net/gentoo/ ftp://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://mir.zyrianes.net/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://ftp.ntua.gr/pub/linux/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.ntua.gr/pub/linux/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 S3TC X aalib acpi acpi4linux alsa async bash-completion berkdb bidi bitmap-fonts bzlib cdb cddb cdinstall cdparanoia cdr cdrom chroot codecs crypt cups dga distcache divx4linux dts dvb dvd dvdr dvdread emul-linux-x86 escreen ethereal ext-png ext-zlib faac faad fam fame fastcgi fftw flac fltk fmod font-server freetype ftp gd gdbm gif gimp gimpprint gkrellm glut gpm gs gtk gtkhtml icq imagemagick imlib imlib2 ipv6 java javadoc jikes jp2 jpeg junit lcms libcaca libwww lzo lzw lzw-tiff maildir matroska mcal mjpeg mmap mng moznocompose moznoirc moznomail mozsvg mp3 multilib mythtv native ncurses nethack network nls no-old-linux nocd nowin nvidia offensive oggvorbis openal opengl operanom2 oscar oss pam pcre perl php physfs png posix ppds python qt readline rtc samba sdl shared sharedmem slp sndfile sockets ssl stencil-buffer stroke svg tcltk tcpd tetex theora threads tiff timidity transcode truetype truetype-fonts type1 type1-fonts usb userlocales vim vim-with-x vnc winbind wmf wxwindows xchatdccserver xine xmlrpc xmms xosd xpm xrandr xv xvid xvmc zlib" Unset: LDFLAGS, PORTDIR_OVERLAY
That code means that if you don't have timidity in your use flags that it will use pmidi instead. The deps and the code seem to be correct for this so it sounds like you have some local setup issues with playing midi files with timidity. If you would prefer to use pmidi instead of timidity for openttd you should add specify that in the package.use file (see man portage). I'm going to mark this invalid as the ebuild seems to be doing the right thing as far as I can tell.