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
commit065af3408dee8057290b50fcb85f601179d80cc0 (patch)
treea3a08277e318fecd9b39e428176d25756be1979c /games-puzzle
parentStable wrt bug #177184 (diff)
downloadhistorical-065af3408dee8057290b50fcb85f601179d80cc0.tar.gz
historical-065af3408dee8057290b50fcb85f601179d80cc0.tar.bz2
historical-065af3408dee8057290b50fcb85f601179d80cc0.zip
New package requested with bug #132951
Package-Manager: portage-2.1.2.2
Diffstat (limited to 'games-puzzle')
-rw-r--r--games-puzzle/xphotohunter/ChangeLog11
-rw-r--r--games-puzzle/xphotohunter/Manifest30
-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, 144 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..5d45e8f982f9
--- /dev/null
+++ b/games-puzzle/xphotohunter/Manifest
@@ -0,0 +1,30 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+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 1190 RMD160 c335c9b806e2de41b51e048c8c9698962a19bbfd SHA1 a1ad07b74408d2749cb082c3cda2312809289b18 SHA256 145ffdaa9f99f20fa0aafe34ff5915e991d68e1930642d3603d3b8128d055279
+MD5 aedb1fc04c537fe071fc5aa2443f9aa6 xphotohunter-1.4.ebuild 1190
+RMD160 c335c9b806e2de41b51e048c8c9698962a19bbfd xphotohunter-1.4.ebuild 1190
+SHA256 145ffdaa9f99f20fa0aafe34ff5915e991d68e1930642d3603d3b8128d055279 xphotohunter-1.4.ebuild 1190
+MISC ChangeLog 446 RMD160 e212d15e5398e0049cacd15ac99149c6344cdd6a SHA1 2c641933676c07196835b65d9c78864425b5dc66 SHA256 f8c385b33952f89404dbe7b487d5e0c21fc5ac5d1596ba8352761d85240d514c
+MD5 9e4c5ad23fa38e68ce32021589d55c07 ChangeLog 446
+RMD160 e212d15e5398e0049cacd15ac99149c6344cdd6a ChangeLog 446
+SHA256 f8c385b33952f89404dbe7b487d5e0c21fc5ac5d1596ba8352761d85240d514c ChangeLog 446
+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
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.6 (GNU/Linux)
+
+iD8DBQFGQO0QRmMZkarFlIwRAiOKAKC0h81HJk1M9ZVHCOUeJco3RNVGGgCgzhRh
+p2g16oq4fzTr3846AJ22isA=
+=6xPr
+-----END PGP SIGNATURE-----
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
+}