Bug 109619 - [EBUILD] games-rpg/nwmouse
Bug#: 109619 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: remy.blank@pobox.com
Component: Games
URL:  http://home.woh.rr.com/nwmovies/nwmouse/
Summary: [EBUILD] games-rpg/nwmouse
Keywords:  EBUILD
Status Whiteboard: 
Opened: 2005-10-17 13:32 0000
Description:   Opened: 2005-10-17 13:32 0000
nwmouse enables hardware mouse cursors for Neverwinter Nights.

This ebuild needs a small patch to the script /opt/nwn/nwn, provided by
games-rpg/nwn-data, to add the following lines before the call to nwmain:

if [[ -f ./nwmouse.so ]]; then
    export XCURSOR_PATH="$(pwd)"
    export XCURSOR_THEME=nwmouse
    export LD_PRELOAD=./nwmouse.so:$LD_PRELOAD
fi

I'll provide a patch in bug 106789.

------- Comment #1 From Remy Blank 2005-10-17 13:33:36 0000 -------
Created an attachment (id=70875) [details]
ebuild for nwmouse

------- Comment #2 From Chris Gianelloni (RETIRED) 2005-12-06 15:23:03 0000 -------
Just curious, but what does this ebuild need elfutils for?

------- Comment #3 From Chris Gianelloni (RETIRED) 2005-12-06 15:37:15 0000 -------
Bah... the stinking thing uses 32-bit ASM so can't compile on amd64... I think
I
need to make a binary version of this linked against the proper 32-bit
emul-libs
for amd64 support.

------- Comment #4 From Remy Blank 2005-12-07 00:26:39 0000 -------
It really *is* a dirty hack, as it patches the nwmain binary on load. I think
it
uses elfutils to find the proper locations to patch. OTOH, there's probably no
other way to install hooks into a closed binary that didn't define hooks in the
first place.

I have no AMD64, so I can't help there. Feel free to reject the ebuild if you
think it is too limited/dirty/hackish.

------- Comment #5 From Chris Gianelloni (RETIRED) 2005-12-07 05:06:12 0000 -------
Actually, I got it working fine on AMD64 by compiling it manually on x86.  I
think that instead of always building it from source, I'm just going to provide
a pre-compiled libelf.so.1 and the libdisasm.so, along with nwmouse.so, as I got
it to work on my AMD64 box fine.

------- Comment #6 From Chris Gianelloni (RETIRED) 2005-12-19 13:55:43 0000 -------
Created an attachment (id=75140) [details]
games-rpg/nwmouse/nwmouse-0.1.ebuild

Try out this ebuild instead... see if it works for you... if it does, I'll
probably commit one like it instead, since it works on both x86 and amd64.

------- Comment #7 From Ryan Hill 2006-04-07 22:24:48 0000 -------
Created an attachment (id=84194) [details]
nwmouse-0.1.ebuild

updated w/ mod-x dependencies.

------- Comment #8 From Chris Gianelloni (RETIRED) 2006-06-28 07:39:45 0000 -------
OK.  I need to compile up a new version of the nwmouse files so they don't have
the QA warnings.  I'm going to guess that this actually works for people, since
I haven't heard anyone complain about it being broken.

------- Comment #9 From Chris Gianelloni (RETIRED) 2006-07-26 12:58:39 0000 -------
I've added this to portage now... enjoy...