1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 )
8 inherit autotools eutils python-single-r1
10 DESCRIPTION="Arcade game with elements of economy and adventure"
11 HOMEPAGE="https://sourceforge.net/projects/gamediameter/"
12 SRC_URI="mirror://sourceforge/gamediameter/${P}.tar.bz2"
16 KEYWORDS="~amd64 ~x86"
18 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
21 >=dev-games/guichan-0.8[opengl,sdl]
23 media-libs/libsdl[video]
24 media-libs/sdl-image[gif,jpeg,png]
25 media-libs/sdl-mixer[mod]
32 S=${WORKDIR}/gamediameter
38 -e "s:gamediameter:diameter:" \
40 mv configure.in configure.ac || die
42 -e '/for i in .*\/lib/s:".*:/usr/lib/ ; do:' \
43 -e "/AC_SUBST.*LDFLAGS/s/\".*\"/\$PYTHON_LIBS/" \
47 -e '/gui nebular3.gif/s/gui//' \
48 data/texture/Makefile.am || die
51 # needed, otherwise -lpython2.7 will not be found
52 python_export PYTHON PYTHON_LIBS
58 newicon data/texture/gui/eng/main/logo.png ${PN}.png
59 make_desktop_entry ${PN} ${PN^}