summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2007-05-08 21:35:02 +0000
committerAlfredo Tupone <tupone@gentoo.org>2007-05-08 21:35:02 +0000
commitf78c715b2f1290aa8405d9b3298c13b21035d588 (patch)
tree02ecbc5ef3ea1759fd8acf7792093d33b5ed9334 /games-puzzle
parentStable wrt bug #177184 (diff)
downloadgentoo-2-f78c715b2f1290aa8405d9b3298c13b21035d588.tar.gz
gentoo-2-f78c715b2f1290aa8405d9b3298c13b21035d588.tar.bz2
gentoo-2-f78c715b2f1290aa8405d9b3298c13b21035d588.zip
New package requested with bug #132951
(Portage version: 2.1.2.2)
Diffstat (limited to 'games-puzzle')
-rw-r--r--games-puzzle/xphotohunter/ChangeLog11
-rw-r--r--games-puzzle/xphotohunter/Manifest20
-rw-r--r--games-puzzle/xphotohunter/files/digest-xphotohunter-1.43
-rw-r--r--games-puzzle/xphotohunter/files/xphotohunter-1.4-gentoo.patch47
-rw-r--r--games-puzzle/xphotohunter/metadata.xml10
-rw-r--r--games-puzzle/xphotohunter/xphotohunter-1.4.ebuild43
6 files changed, 134 insertions, 0 deletions
diff --git a/games-puzzle/xphotohunter/ChangeLog b/games-puzzle/xphotohunter/ChangeLog
new file mode 100644
index 000000000000..60bdaa511c8d
--- /dev/null
+++ b/games-puzzle/xphotohunter/ChangeLog
@@ -0,0 +1,11 @@
+# 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.1 2007/05/08 21:35:02 tupone Exp $
+
+*xphotohunter-1.4 (08 May 2007)
+
+ 08 May 2007; Tupone Alfredo <tupone@gentoo.org>
+ +files/xphotohunter-1.4-gentoo.patch, +metadata.xml,
+ +xphotohunter-1.4.ebuild:
+ New package requested with bug #132951 by Greg Watson
+
diff --git a/games-puzzle/xphotohunter/Manifest b/games-puzzle/xphotohunter/Manifest
new file mode 100644
index 000000000000..06821ea489af
--- /dev/null
+++ b/games-puzzle/xphotohunter/Manifest
@@ -0,0 +1,20 @@
+AUX xphotohunter-1.4-gentoo.patch 1493 RMD160 1973be9614097ec38d553d9d0b6d72b0b84d59e6 SHA1 a3b1f0833de85744d0d2a969ac0bb73157830201 SHA256 31f950f48e6deedecdb48313e9932e6ec3c12a7ffa45005aad5136380f97f3ee
+MD5 c6c665f75c48fafe91edba3fa81f7aa2 files/xphotohunter-1.4-gentoo.patch 1493
+RMD160 1973be9614097ec38d553d9d0b6d72b0b84d59e6 files/xphotohunter-1.4-gentoo.patch 1493
+SHA256 31f950f48e6deedecdb48313e9932e6ec3c12a7ffa45005aad5136380f97f3ee files/xphotohunter-1.4-gentoo.patch 1493
+DIST xphotohunter-1.4.tar.gz 1011382 RMD160 263fe0d5159d7f35d4da4303f7ac64308af00fed SHA1 44792d4553aece9e317137971fb030cf1add7c31 SHA256 87864d4b72665f92892f2a6029399193167e3f7d7b4a75b1d26bc2885b81ef2c
+EBUILD xphotohunter-1.4.ebuild 1079 RMD160 0598514883103e1e93662474e317bba09193b2e0 SHA1 9dfdd5673e2e587ce4837928ab479a30dab5b38a SHA256 961cec72f96d92c509bc76ba7c6185891351715ce0baab590a83acf7c99d17d7
+MD5 3e50f39f489a1e014e52a0bc8389e67e xphotohunter-1.4.ebuild 1079
+RMD160 0598514883103e1e93662474e317bba09193b2e0 xphotohunter-1.4.ebuild 1079
+SHA256 961cec72f96d92c509bc76ba7c6185891351715ce0baab590a83acf7c99d17d7 xphotohunter-1.4.ebuild 1079
+MISC ChangeLog 349 RMD160 f86218cedba9a5599f236f9714528eb801d93943 SHA1 5df73f743eab1492dce333034a02584aa058d145 SHA256 d3205b70bdcb46a6649a4c5e892be7d1b3a7fd4da08043196ff449e33ce49310
+MD5 f35283f0141c5491b4245f90dab64df0 ChangeLog 349
+RMD160 f86218cedba9a5599f236f9714528eb801d93943 ChangeLog 349
+SHA256 d3205b70bdcb46a6649a4c5e892be7d1b3a7fd4da08043196ff449e33ce49310 ChangeLog 349
+MISC metadata.xml 381 RMD160 aa4e45aca96960303e4abf5841607c39e2ed3bf2 SHA1 1d52fabd1706c8fd48926cddb59926b872517287 SHA256 7c06498113d3ec1a52aec3e5784a48408f6c8f6e037c8618633e9f0fe93459db
+MD5 ad818535e26e8570f8910aacfbbb6fa5 metadata.xml 381
+RMD160 aa4e45aca96960303e4abf5841607c39e2ed3bf2 metadata.xml 381
+SHA256 7c06498113d3ec1a52aec3e5784a48408f6c8f6e037c8618633e9f0fe93459db metadata.xml 381
+MD5 420b073c731181e955a0c7201fb10273 files/digest-xphotohunter-1.4 253
+RMD160 c9d4848c3ff382a1a55eb1807a8a6fce645a661d files/digest-xphotohunter-1.4 253
+SHA256 36275360f0502b1b4eb1a70c0fc1dc211d627060ee87d22313e4f8b72cb1e3c5 files/digest-xphotohunter-1.4 253
diff --git a/games-puzzle/xphotohunter/files/digest-xphotohunter-1.4 b/games-puzzle/xphotohunter/files/digest-xphotohunter-1.4
new file mode 100644
index 000000000000..3aad532e522e
--- /dev/null
+++ b/games-puzzle/xphotohunter/files/digest-xphotohunter-1.4
@@ -0,0 +1,3 @@
+MD5 8f0bbde73a3ac6bc0ddfceb07925d06e xphotohunter-1.4.tar.gz 1011382
+RMD160 263fe0d5159d7f35d4da4303f7ac64308af00fed xphotohunter-1.4.tar.gz 1011382
+SHA256 87864d4b72665f92892f2a6029399193167e3f7d7b4a75b1d26bc2885b81ef2c xphotohunter-1.4.tar.gz 1011382
diff --git a/games-puzzle/xphotohunter/files/xphotohunter-1.4-gentoo.patch b/games-puzzle/xphotohunter/files/xphotohunter-1.4-gentoo.patch
new file mode 100644
index 000000000000..09044eca23e6
--- /dev/null
+++ b/games-puzzle/xphotohunter/files/xphotohunter-1.4-gentoo.patch
@@ -0,0 +1,47 @@
+--- handler.c.old 2007-05-08 22:24:43.000000000 +0200
++++ handler.c 2007-05-08 22:29:15.000000000 +0200
+@@ -19,6 +19,7 @@
+
+ #include "main.h"
+ #include "handler.h"
++static char state_dir[] = "@GENTOO_STATEDIR@/";
+
+ /* This is an internally used function to set notebook tab widgets. */
+ /*
+@@ -1483,7 +1484,7 @@
+ strcpy(rank_record[insert_num-1].word, gtk_entry_get_text(GTK_ENTRY(dialog_word_t)) );
+ rank_record[insert_num-1].grade = grade;
+
+- strcpy(string, data_dir);
++ strcpy(string, state_dir);
+ strcat(string, RANK_FILE);
+ fp = fopen(string, "w");
+ fd = fileno(fp);
+@@ -1527,7 +1528,7 @@
+ gint i;
+ gchar string[100];
+
+- strcpy(string, data_dir);
++ strcpy(string, state_dir);
+ strcat(string, RANK_FILE);
+ fp = fopen(string, "r");
+ if (fp==NULL)
+@@ -1561,7 +1561,7 @@
+
+ for (i=0;i<RANK_NUM*sizeof(struct rank_struct);i++)
+ buf[i] = 0;
+- strcpy(string, data_dir);
++ strcpy(string, state_dir);
+ strcat(string, RANK_FILE);
+ fp = fopen(string, "w");
+ fwrite(buf, 1, RANK_NUM*sizeof(struct rank_struct), fp);
+--- Makefile.old 2007-05-08 22:59:55.000000000 +0200
++++ Makefile 2007-05-08 23:17:45.000000000 +0200
+@@ -18,7 +18,6 @@
+ # -lz -lgif -lXi -lXext -lX11 -lm
+ #LIBS=-L/usr/lib -L/usr/X11R6/lib -L/usr/local/lib `gtk-config --libs`
+ LIBS=-lgdk_imlib -ljpeg -ltiff -lpng -lz -lgif `gtk-config --libs` -lXi -lXext -lX11 -lm
+-CFLAGS= -g -O2 -Wall
+
+ INSTALL = /usr/bin/install -c
+ INSTALL_DIR= $(INSTALL) -d -m 755
diff --git a/games-puzzle/xphotohunter/metadata.xml b/games-puzzle/xphotohunter/metadata.xml
new file mode 100644
index 000000000000..a4fc0f10975a
--- /dev/null
+++ b/games-puzzle/xphotohunter/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+<longdescription lang="en">
+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.
+</longdescription>
+</pkgmetadata>
diff --git a/games-puzzle/xphotohunter/xphotohunter-1.4.ebuild b/games-puzzle/xphotohunter/xphotohunter-1.4.ebuild
new file mode 100644
index 000000000000..54488e330c99
--- /dev/null
+++ b/games-puzzle/xphotohunter/xphotohunter-1.4.ebuild
@@ -0,0 +1,43 @@
+# 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.ebuild,v 1.1 2007/05/08 21:35:02 tupone 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"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+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 Picture *.jpg *.xpm *.bmp *.wav \
+ || die "Installing data 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
+}