1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="city simulation game"
9 HOMEPAGE="http://savannah.nongnu.org/projects/senken/"
10 SRC_URI="mirror://gentoo/${P}.tar.gz"
14 KEYWORDS="amd64 ~ppc x86"
17 RDEPEND="x11-libs/gtk+:2
18 >=media-libs/libsdl-1.2.4
20 nls? ( virtual/libintl )"
22 nls? ( sys-devel/gettext )"
26 -e "s:/usr/local/share:${GAMES_DATADIR}:" \
29 "${FILESDIR}"/${P}-as-needed.patch \
30 "${FILESDIR}"/${P}-warnings.patch
33 egamesconf $(use_enable nls)
39 dodir "${GAMES_DATADIR}"
40 mv "${D}/${GAMES_PREFIX}/share/senken" "${D}/${GAMES_DATADIR}/" || die
41 rm -rf "${D}/${GAMES_PREFIX}"/{include,lib,man,share} || die
43 insinto "${GAMES_DATADIR}/senken/img"
46 find "${D}/${GAMES_DATADIR}/" -type f -exec chmod a-x \{\} +
47 find "${D}/${GAMES_DATADIR}/" -name "Makefile.*" -exec rm -f \{\} +