ChangeLog

# ChangeLog for games-puzzle/xphotohunter
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/games-puzzle/xphotohunter/ChangeLog,v 1.2 2007/05/09 19:15:35 tupone Exp $

*xphotohunter-1.4-r1 (09 May 2007)

09 May 2007; Tupone Alfredo -xphotohunter-1.4.ebuild,
+xphotohunter-1.4-r1.ebuild:
Adding extra pictures. Bug #132953 by Greg Watson

*xphotohunter-1.4 (08 May 2007)

08 May 2007; Tupone Alfredo
+files/xphotohunter-1.4-gentoo.patch, +metadata.xml,
+xphotohunter-1.4.ebuild:
New package requested with bug #132951 by Greg Watson

Manifest

AUX xphotohunter-1.4-gentoo.patch 1493 RMD160 1973be9614097ec38d553d9d0b6d72b0b84d59e6 SHA1 a3b1f0833de85744d0d2a969ac0bb73157830201 SHA256 31f950f48e6deedecdb48313e9932e6ec3c12a7ffa45005aad5136380f97f3ee
DIST xphotohunter-1.4.tar.gz 1011382 RMD160 263fe0d5159d7f35d4da4303f7ac64308af00fed SHA1 44792d4553aece9e317137971fb030cf1add7c31 SHA256 87864d4b72665f92892f2a6029399193167e3f7d7b4a75b1d26bc2885b81ef2c
DIST xphotohunter_pictures1-1.4.tar.gz 1276569 RMD160 72d5c8b4614cd4ed9865670e0d5546d409e41c4a SHA1 bbd3fc11bf2c4bc041bc4216585dd32431af55c8 SHA256 e8c0a38af14b12bb0bc9bb62cbec13d1245e057c33e58d0d35059298760e31c9
DIST xphotohunter_pictures2-1.4.tar.gz 1147792 RMD160 fe34add348f0109c1482b5308c94e53dbf25be2e SHA1 af32b2fdcfb3f4bf6ebcf44cb3f064e3a25e25f1 SHA256 1f906b19ab5bb9b113f6eb346410b41814cafa39d0f2c09175ddd02bd5e0d354
DIST xphotohunter_pictures3-1.4.tar.gz 961121 RMD160 3bee3fd7af57b94c289d4a37358deac590d31cd5 SHA1 6128c2a4b59508469be1b68e95f0c350df2789ac SHA256 fb51dcc1b440e7d44d4d7e3fc40a09e9c1b92b14ae56f45dd1e9950ca667efcb
EBUILD xphotohunter-1.4-r1.ebuild 1561 RMD160 0aba5993fa6da483775506572e62c44ec9f78856 SHA1 c2938761a849b4954e09e6c642da7d8417de90c9 SHA256 3c73f356c698ecceb623d65fc969c35cfa891a10584808a35e634b08a0ac6778
MISC ChangeLog 642 RMD160 d8cf335e8bf192feab7fb93c883424e10bdd724e SHA1 ac4c1a6ff11883dafd0c2f61ae71ae7e0cee88fc SHA256 0a11968157c5632bd2767d28baa553d8ee52037aa397d77284051cfec3aeaf64
MISC metadata.xml 381 RMD160 aa4e45aca96960303e4abf5841607c39e2ed3bf2 SHA1 1d52fabd1706c8fd48926cddb59926b872517287 SHA256 7c06498113d3ec1a52aec3e5784a48408f6c8f6e037c8618633e9f0fe93459db

files

metadata.xml




games

This is a game under Unix X-window. The contents of the game is the same with
the Windows95 version "Photohunter". The player has to find out differences
between two pictures.

xphotohunter-1.4-r1.ebuild

# Copyright 1999-2007 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.2 2007/08/28 16:51:36 mr_bones_ 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"

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
}