blob: c6aa2e0fe13df6f45c1c96d2d47d020b8ca0e4ac (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-puzzle/xphotohunter/xphotohunter-1.4-r1.ebuild,v 1.10 2009/11/24 17:58:40 halcy0n Exp $
EAPI=2
inherit eutils toolchain-funcs games
DESCRIPTION="Find the differences between two pictures."
HOMEPAGE="http://micro.ee.nthu.edu.tw/~tomcat/Xphotohunter/main-english.html"
SRC_URI="http://micro.ee.nthu.edu.tw/~tomcat/Xphotohunter/${P}.tar.gz
http://micro.ee.nthu.edu.tw/~tomcat/Xphotohunter/${PN}_pictures1-${PV}.tar.gz
http://micro.ee.nthu.edu.tw/~tomcat/Xphotohunter/${PN}_pictures2-${PV}.tar.gz
http://micro.ee.nthu.edu.tw/~tomcat/Xphotohunter/${PN}_pictures3-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND="media-libs/imlib[deprecated]"
RDEPEND="${DEPEND}
media-sound/esound"
src_prepare() {
epatch "${FILESDIR}/${P}"-gentoo.patch
sed -i \
-e "s:@GENTOO_STATEDIR@:${GAMES_STATEDIR}/${PN}:" \
handler.c \
|| die "Patching state dir failed"
}
src_compile() {
emake CC="$(tc-getCC)" \
DATADIR="${GAMES_DATADIR}/${PN}" || die "emake failed"
}
src_install() {
dogamesbin xphotohunter || die "Installing binary failed"
insinto "${GAMES_DATADIR}/${PN}"
doins -r *.jpg *.xpm *.bmp *.wav \
|| die "Installing data files failed"
insinto "${GAMES_DATADIR}/${PN}/Picture"
doins Picture/* ../${PN}_pictures*-${PV}/* \
|| die "Installing picture files failed"
insinto "${GAMES_STATEDIR}/${PN}"
insopts -m0660
doins ${PN}.dat \
|| die "Installing data files failed"
dodoc License.txt README.chinese README.english Rule.txt
prepgamesdirs
}
|