blob: a6c7dbe5bf974de6df47f9032fd3b37cad22f8b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-puzzle/codebreaker/codebreaker-1.2.1-r1.ebuild,v 1.9 2007/12/12 03:11:13 mr_bones_ Exp $
inherit eutils games
DESCRIPTION="mastermind style game"
HOMEPAGE="http://packages.debian.org/codebreaker"
SRC_URI="mirror://debian/pool/main/c/codebreaker/${PN}_${PV}.orig.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE=""
DEPEND="x11-libs/libXi
=x11-libs/gtk+-1.2*"
S="${WORKDIR}/${P}.orig"
src_unpack() {
unpack ${A}
cd "${S}"
sed -i \
-e '/-DHOWTO=/s:\${prefix}/doc/\$(PACKAGE)-\$(VERSION):/usr/share/doc/${PF}:' \
src/Makefile.in \
|| die "sed failed"
}
src_install() {
dogamesbin src/codebreaker || die
dodoc README AUTHORS
insinto /usr/share/doc/${PF}
doins doc/HOWTO # don't gzip this #38128
make_desktop_entry codebreaker Codebreaker
prepgamesdirs
}
|