Gentoo Archives: gentoo-devhelp

From: Peter Volkov <pva@g.o>
To: gentoo-devhelp@l.g.o
Subject: Re: [gentoo-devhelp] games eclass has no effect with distutils
Date: Thu, 25 Aug 2011 07:27:07
Message-Id: 1314257154.21876.16.camel@tablet
In Reply to: [gentoo-devhelp] games eclass has no effect with distutils by Nikos Chantziaras
1 В Втр, 16/08/2011 в 18:35 +0300, Nikos Chantziaras пишет:
2 > My inherit line is:
3 >
4 > inherit eutils distutils games
5 >
6 > I only have a src_install() function defined:
7 >
8 > src_install() {
9 > distutils_src_install
10 > prepgamesdirs
11 > }
12 >
13 > However, the executables end up in /usr/bin instead of /usr/games/bin
14 > and their permissions are wrong (no games group.)
15 >
16 > How is this supposed to work?
17
18 It should work, but looks like for this build system you'll have to
19 customize path for binary files installation manually. Just
20
21 cd /usr/portage
22
23 and run
24
25 find games-* -name '*.ebuild' -exec egrep -H '^inherit.*(games|distutils)+ .*(games|distutils)+$' '{}' \;
26
27 to see some ideas how to write distutils/games based ebuilds. E.g.
28 games-board/pychess/pychess-0.10.ebuild.
29
30 --
31 Peter.