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.
gentoo-overlay/games-puzzle/gnudoku/gnudoku-0.93.ebuild

41 lines
984 B

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-puzzle/gnudoku/gnudoku-0.93.ebuild,v 1.9 2012/05/04 04:45:29 jdhore Exp $
EAPI=2
inherit eutils games
MY_PN="GNUDoku"
MY_P=${MY_PN}-${PV}
DESCRIPTION="A program for creating and solving Su Doku puzzles"
HOMEPAGE="http://www.icculus.org/~jcspray/GNUDoku"
SRC_URI="http://www.icculus.org/~jcspray/GNUDoku/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc x86"
IUSE=""
RESTRICT="test"
RDEPEND=">=dev-cpp/gtkmm-2.6:2.4"
DEPEND="${RDEPEND}
virtual/pkgconfig"
S=${WORKDIR}/${MY_P}
src_prepare() {
epatch "${FILESDIR}"/${P}-gcc43.patch
sed -i \
-e "s:\$(CXX):\$(CXX) ${CXXFLAGS} ${LDFLAGS}:" \
Makefile \
|| die "sed failed"
}
src_install() {
dogamesbin GNUDoku || die "dogamesbin failed"
newicon GNUDoku.png ${PN}.png
make_desktop_entry ${MY_PN} ${MY_PN}
dodoc ALGORITHM Changelog README TODO
prepgamesdirs
}