You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.3 KiB
61 lines
1.3 KiB
7 years ago
|
# Copyright 1999-2017 Gentoo Foundation
|
||
10 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
7 years ago
|
EAPI=6
|
||
|
|
||
10 years ago
|
PYTHON_COMPAT=( python2_7 )
|
||
7 years ago
|
|
||
|
inherit autotools eutils python-single-r1
|
||
10 years ago
|
|
||
|
DESCRIPTION="Arcade game with elements of economy and adventure"
|
||
|
HOMEPAGE="http://gamediameter.sourceforge.net/"
|
||
|
SRC_URI="mirror://sourceforge/gamediameter/${P}.tar.bz2"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
10 years ago
|
KEYWORDS="amd64 x86"
|
||
10 years ago
|
IUSE=""
|
||
7 years ago
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||
10 years ago
|
|
||
7 years ago
|
RDEPEND="
|
||
|
>=dev-games/guichan-0.8[opengl,sdl]
|
||
10 years ago
|
media-libs/libpng:0=
|
||
|
media-libs/libsdl[video]
|
||
|
media-libs/sdl-image[gif,jpeg,png]
|
||
|
media-libs/sdl-mixer[mod]
|
||
7 years ago
|
virtual/opengl
|
||
|
virtual/glu
|
||
10 years ago
|
${PYTHON_DEPS}"
|
||
|
DEPEND="${RDEPEND}
|
||
|
virtual/pkgconfig"
|
||
|
|
||
|
S=${WORKDIR}/gamediameter
|
||
|
|
||
|
src_prepare() {
|
||
7 years ago
|
default
|
||
|
|
||
10 years ago
|
sed -i \
|
||
|
-e "s:gamediameter:diameter:" \
|
||
|
configure.in || die
|
||
|
mv configure.in configure.ac || die
|
||
8 years ago
|
sed -i \
|
||
|
-e '/for i in .*\/lib/s:".*:/usr/lib/ ; do:' \
|
||
|
-e "/AC_SUBST.*LDFLAGS/s/\".*\"/\$PYTHON_LIBS/" \
|
||
|
acinclude.m4 || die
|
||
10 years ago
|
# bug #336812
|
||
|
sed -i \
|
||
|
-e '/gui nebular3.gif/s/gui//' \
|
||
|
data/texture/Makefile.am || die
|
||
|
eautoreconf
|
||
7 years ago
|
|
||
|
# needed, otherwise -lpython2.7 will not be found
|
||
8 years ago
|
python_export PYTHON PYTHON_LIBS
|
||
10 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
|
default
|
||
7 years ago
|
|
||
10 years ago
|
newicon data/texture/gui/eng/main/logo.png ${PN}.png
|
||
7 years ago
|
make_desktop_entry ${PN} ${PN^}
|
||
10 years ago
|
}
|