# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils inherit 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" LICENSE="GPL" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="virtual/x11 >=x11-libs/gtk+-1.2.0 media-libs/libpng media-libs/jpeg media-libs/tiff media-libs/imlib media-libs/giflib" S=${WORKDIR}/${P} src_compile() { sed -i -e '/^DATADIR/s:/usr/local/share/xphotohunter:/usr/share/games/xphotohunter:' \ -e '/^BINDIR/s:/usr/local/bin:/usr/games/bin:' \ -e '/^CFLAGS/d' \ Makefile emake || die "emake failed" } src_install() { dodoc README.english README.chinese Rule.txt dogamesbin xphotohunter || die "dogamesbin failed" insinto "${GAMES_DATADIR}/${PN}" doins *.jpg *.xpm *.wav *.bmp xphotohunter.po xphotohunter.dat \ xphotohunter.rc || die "doins failed" insinto "${GAMES_DATADIR}/${PN}/Picture" doins Picture/* || die "doins failed" make_desktop_entry ${PN} xphotohunter prepgamesdirs } pkg_postinst() { # highscore fix chmod g+rw "${ROOT}/${GAMES_DATADIR}/${PN}/xphotohunter.dat" games_pkg_postinst echo einfo "Sound is provided by esdplay, which is part of media-sound/esound" einfo "Also if you would like extra pictures, emerge xphotohunter-extras" echo }