blob: 1db5314e36b8218b2e72e43b17f8b75f1df17c7e (
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
|
# Copyright 1999-2008 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.5 2008/08/27 12:11:53 gentoofan23 Exp $
inherit eutils 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"
RDEPEND="${DEPEND}
media-sound/esound"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}"-gentoo.patch
sed -i -e "s:@GENTOO_STATEDIR@:${GAMES_STATEDIR}/${PN}:" \
handler.c || die "Patching state dir failed"
}
src_compile() {
emake 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
}
|