| 1 |
# Copyright 1999-2012 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/games-puzzle/ngstar/ngstar-2.1.8-r2.ebuild,v 1.8 2011/06/19 21:53:04 mr_bones_ Exp $ |
| 4 |
|
| 5 |
EAPI=2 |
| 6 |
inherit eutils games |
| 7 |
|
| 8 |
DESCRIPTION="NGStar is a clone of a HP48 game called dstar" |
| 9 |
HOMEPAGE="http://freshmeat.net/projects/ngstar" |
| 10 |
SRC_URI="mirror://gentoo//${P}-src.tar.bz2" |
| 11 |
|
| 12 |
LICENSE="GPL-2" |
| 13 |
SLOT="0" |
| 14 |
KEYWORDS="~amd64 x86" |
| 15 |
IUSE="" |
| 16 |
|
| 17 |
DEPEND="sys-libs/ncurses |
| 18 |
sys-libs/gpm" |
| 19 |
|
| 20 |
src_prepare() { |
| 21 |
epatch \ |
| 22 |
"${FILESDIR}"/${P}-gentoo-path.patch \ |
| 23 |
"${FILESDIR}"/${P}-gcc43.patch \ |
| 24 |
"${FILESDIR}"/${P}-gcc47.patch \ |
| 25 |
"${FILESDIR}"/${P}-ldflags.patch |
| 26 |
sed -i \ |
| 27 |
-e "s:@GENTOO_DATA@:${GAMES_DATADIR}:" \ |
| 28 |
-e "s:@GENTOO_BIN@:${GAMES_BINDIR}:" \ |
| 29 |
-e "/^CPPFLAGS/s:+=:+= ${CXXFLAGS}:" \ |
| 30 |
-e "/SILENT/d" \ |
| 31 |
configure || die "sed configure failed" |
| 32 |
} |
| 33 |
|
| 34 |
src_configure() { |
| 35 |
./configure \ |
| 36 |
--prefix "" \ |
| 37 |
--without-fltk2 || die "configure failed" |
| 38 |
} |
| 39 |
|
| 40 |
src_install() { |
| 41 |
emake DESTDIR="${D}" install || die "emake install failed" |
| 42 |
dodoc AUTHORS Changelog README TODO |
| 43 |
prepgamesdirs |
| 44 |
} |