# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-simulation/lincity-ng/lincity-ng-2.0.ebuild,v 1.6 2012/05/02 21:16:56 jdhore Exp $ EAPI=2 inherit eutils games DESCRIPTION="city/country simulation game for X and opengl" HOMEPAGE="http://lincity-ng.berlios.de/" SRC_URI="mirror://berlios/${PN}/${P}.tar.bz2" LICENSE="GPL-2 BitstreamVera" SLOT="0" KEYWORDS="amd64 ~ppc ~sparc x86" IUSE="" RDEPEND="virtual/opengl sys-libs/zlib dev-libs/libxml2 media-libs/libsdl[audio,joystick,opengl,video] media-libs/sdl-mixer[vorbis] media-libs/sdl-image[png] media-libs/sdl-ttf media-libs/sdl-gfx dev-games/physfs" DEPEND="${RDEPEND} virtual/pkgconfig dev-util/ftjam" src_compile() { local jamopts=$(echo "${MAKEOPTS}" | sed -ne "/-j/ { s/.*\(-j[[:space:]]*[0-9]\+\).*/\1/; p }") jam ${jamopts} || die "jam failed" } src_install() { jam -sDESTDIR="${D}" \ -sappdocdir="/usr/share/doc/${PF}" \ -sapplicationsdir="/usr/share/applications" \ -spixmapsdir="/usr/share/pixmaps" \ install \ || die "jam install failed" rm -f "${D}"/usr/share/doc/${PF}/COPYING* prepalldocs prepgamesdirs }