summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2010-11-02 18:44:58 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2010-11-02 18:44:58 +0000
commit27246735aea2934f57c4330fc9200a301e01a70c (patch)
tree801b0a42baa4a71e349fbfb7e54e0d3dac810bb8 /games-puzzle/toppler
parentRemoving unneeded files #342637 (diff)
downloadhistorical-27246735aea2934f57c4330fc9200a301e01a70c.tar.gz
historical-27246735aea2934f57c4330fc9200a301e01a70c.tar.bz2
historical-27246735aea2934f57c4330fc9200a301e01a70c.zip
version bump
Package-Manager: portage-2.1.8.3/cvs/Linux i686
Diffstat (limited to 'games-puzzle/toppler')
-rw-r--r--games-puzzle/toppler/ChangeLog8
-rw-r--r--games-puzzle/toppler/Manifest5
-rw-r--r--games-puzzle/toppler/files/toppler-1.1.4-gentoo.patch192
-rw-r--r--games-puzzle/toppler/toppler-1.1.4.ebuild35
4 files changed, 238 insertions, 2 deletions
diff --git a/games-puzzle/toppler/ChangeLog b/games-puzzle/toppler/ChangeLog
index 97b588be1ab4..394863c8841d 100644
--- a/games-puzzle/toppler/ChangeLog
+++ b/games-puzzle/toppler/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-puzzle/toppler
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-puzzle/toppler/ChangeLog,v 1.20 2010/11/02 09:29:35 tupone Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/toppler/ChangeLog,v 1.21 2010/11/02 18:44:58 mr_bones_ Exp $
+
+*toppler-1.1.4 (02 Nov 2010)
+
+ 02 Nov 2010; Michael Sterrett <mr_bones_@gentoo.org>
+ +toppler-1.1.4.ebuild, +files/toppler-1.1.4-gentoo.patch:
+ version bump
02 Nov 2010; Tupone Alfredo <tupone@gentoo.org> toppler-1.1.3.ebuild,
+files/toppler-1.1.3-ovflfix.patch:
diff --git a/games-puzzle/toppler/Manifest b/games-puzzle/toppler/Manifest
index 1a2b34d031fc..fd19560b7bfc 100644
--- a/games-puzzle/toppler/Manifest
+++ b/games-puzzle/toppler/Manifest
@@ -1,6 +1,9 @@
AUX toppler-1.1.3-gentoo.patch 2249 RMD160 9d0e5cf19327ccf0d6aec0a7b565d42dba60e1a1 SHA1 f89fd9e5577d7518b734412abb964da17a70f1d4 SHA256 35bf74a265696cbe1d9d9c2427dc477fd8750fb01822b9c9101617b232dccba7
AUX toppler-1.1.3-ovflfix.patch 535 RMD160 283436bc87da349ee8e28951f312bd53def6ba69 SHA1 e89b1b58e6e94c3058ff67092057a03f159130ad SHA256 7e4e60b9119a27ea9963ad54a29f6a25d2048a1baad439e09ff1ad045480d4d3
+AUX toppler-1.1.4-gentoo.patch 6761 RMD160 1f82b3e85f084390a1416f24b4b94fa5f169f048 SHA1 ccc54c013c8d556e492de310919de0edf038928f SHA256 7299b4d1ff744fdde15954d2589929bd686d726dfa53e514f4309e01564e6156
DIST toppler-1.1.3.tar.gz 2085343 RMD160 be14acaa9126d47b25431ee7051e556a92c72d74 SHA1 563839ceec44626574fcb10f677d2ab8f82dba29 SHA256 5db9cff3fe39007e9a80c3b27acfb86692641f2b0de118ef1d5e24ebd35d438b
+DIST toppler-1.1.4.tar.gz 2681258 RMD160 50b59c3efcb21fbe5d0a86861e7592475edc55ef SHA1 153d81ded899a8c5390c3f569e8be96ae90a36c7 SHA256 b6ddb217ab8e5681d5590b4e0aab555e834c512a5700313e056adec6e456da93
EBUILD toppler-1.1.3.ebuild 865 RMD160 ec4bd812eae6ed973ea3ad6492ff59e60226e756 SHA1 44eea6d99d6fb8583d0ed3692f646e7fbf8206da SHA256 a7e929dfecc57355e33f61af812773f8a0323f29a3391a0205972d07304e0e71
-MISC ChangeLog 2937 RMD160 19690f15f9b22f201fd5f149ba985e518de6171f SHA1 bd87974b534ca9b56ce3f5cf9441ec2a8c652d52 SHA256 c245343bfac0587be1f925099c5c5436b45106527f52f88f200e2df56f1c75e9
+EBUILD toppler-1.1.4.ebuild 861 RMD160 1cc269dd156ef7e529a9e922f83f21419f2ab62d SHA1 0a7646912985a0c429754f63a33dad358ea0b6cb SHA256 d2a7a241c9062384cbba77f3bef05fc06ce8ebdce3e465f97e8924aabe14dfbe
+MISC ChangeLog 3101 RMD160 1eb0589b958b5f2bb80ebff40577d417372d8a32 SHA1 2fb95ec6c3a4ec9d96f350cf1d18e28fefd17140 SHA256 e4e43e13172041e16c83c935dd7d6677ee9702839b5c3f9ae0070a4bebb80bae
MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3
diff --git a/games-puzzle/toppler/files/toppler-1.1.4-gentoo.patch b/games-puzzle/toppler/files/toppler-1.1.4-gentoo.patch
new file mode 100644
index 000000000000..7974e1cdc8e1
--- /dev/null
+++ b/games-puzzle/toppler/files/toppler-1.1.4-gentoo.patch
@@ -0,0 +1,192 @@
+Only in toppler-1.1.4.orig: .txtsys.cc.swp
+diff -ru toppler-1.1.4.orig/Makefile.in toppler-1.1.4/Makefile.in
+--- toppler-1.1.4.orig/Makefile.in 2009-10-10 21:18:21.000000000 -0400
++++ toppler-1.1.4/Makefile.in 2010-11-02 12:49:48.345213363 -0400
+@@ -300,8 +300,8 @@
+ event.cc event.h \
+ qnxicon.c
+
+-pixmapsdir = $(datadir)/pixmaps
+-applicationsdir = $(datadir)/applications
++pixmapsdir = /usr/share/pixmaps
++applicationsdir = /usr/share/applications
+ pkgdocdir = $(docdir)/$(PACKAGE)
+ pkglocalstatedir = $(localstatedir)/$(PACKAGE)
+ dist_pixmaps_DATA = $(PACKAGE).xpm
+@@ -959,7 +959,7 @@
+ info-am:
+
+ install-data-am: install-applicationsDATA install-dist_pixmapsDATA \
+- install-dist_pkgdataDATA install-dist_pkgdocDATA \
++ install-dist_pkgdataDATA \
+ install-dist_pkglocalstateDATA install-man
+ @$(NORMAL_INSTALL)
+ $(MAKE) $(AM_MAKEFLAGS) install-data-hook
+@@ -1022,7 +1022,7 @@
+ dvi-am html html-am info info-am install install-am \
+ install-applicationsDATA install-binPROGRAMS install-data \
+ install-data-am install-data-hook install-dist_pixmapsDATA \
+- install-dist_pkgdataDATA install-dist_pkgdocDATA \
++ install-dist_pkgdataDATA \
+ install-dist_pkglocalstateDATA install-dvi install-dvi-am \
+ install-exec install-exec-am install-exec-hook install-html \
+ install-html-am install-info install-info-am install-man \
+diff -ru toppler-1.1.4.orig/decl.cc toppler-1.1.4/decl.cc
+--- toppler-1.1.4.orig/decl.cc 2009-10-10 19:46:06.000000000 -0400
++++ toppler-1.1.4/decl.cc 2010-11-02 12:49:48.345213363 -0400
+@@ -156,7 +156,7 @@
+ #ifndef WIN32
+ // look into actual directory
+ if (dcl_fileexists(name)) {
+- snprintf(f, len, name);
++ snprintf(f, len, "%s", name);
+ return true;
+ }
+
+@@ -165,7 +165,7 @@
+
+ snprintf(n, 200, TOP_DATADIR"/%s", name);
+ if (dcl_fileexists(n)) {
+- snprintf(f, len, n);
++ snprintf(f, len, "%s", n);
+ return true;
+ }
+
+diff -ru toppler-1.1.4.orig/highscore.cc toppler-1.1.4/highscore.cc
+--- toppler-1.1.4.orig/highscore.cc 2009-10-10 19:46:06.000000000 -0400
++++ toppler-1.1.4/highscore.cc 2010-11-02 12:49:48.346213175 -0400
+@@ -139,7 +139,7 @@
+ setegid(GameGroupID);
+ int lockfd;
+
+- while ((lockfd = open(HISCOREDIR "/" SCOREFNAME ".lck", O_CREAT | O_RDWR | O_EXCL, S_IRUSR | S_IWUSR)) == -1) {
++ while ((lockfd = open(HISCOREDIR "/" SCOREFNAME ".lck", O_CREAT | O_RDWR | O_EXCL, 0660)) == -1) {
+ dcl_wait();
+ scr_swap();
+ }
+diff -ru toppler-1.1.4.orig/level.cc toppler-1.1.4/level.cc
+--- toppler-1.1.4.orig/level.cc 2009-10-10 19:46:06.000000000 -0400
++++ toppler-1.1.4/level.cc 2010-11-02 12:49:48.346213175 -0400
+@@ -533,8 +533,8 @@
+ } while ((towersection)section != TSS_END);
+ }
+
+-char *
+-gen_passwd(int pwlen, char *allowed, int buflen, char *buf)
++static char *
++gen_passwd(int pwlen, const char *allowed, int buflen, char *buf)
+ {
+ static char passwd[PASSWORD_LEN + 1];
+ int len = buflen;
+@@ -1405,7 +1405,7 @@
+ Uint32 section_len;
+ int idx;
+
+- if (!tower) return;
++ if (!name) return;
+
+ missionidx[nmission] = ftell(fmission);
+ nmission++;
+diff -ru toppler-1.1.4.orig/leveledit.cc toppler-1.1.4/leveledit.cc
+--- toppler-1.1.4.orig/leveledit.cc 2009-10-10 19:46:06.000000000 -0400
++++ toppler-1.1.4/leveledit.cc 2010-11-02 12:55:02.937193701 -0400
+@@ -307,7 +307,7 @@
+ r = row;
+ c = -col;
+
+- static char *problemstr[NUM_TPROBLEMS] = {
++ static const char *problemstr[NUM_TPROBLEMS] = {
+ _("No problems found"),
+ _("No starting step"),
+ _("Start is blocked"),
+diff -ru toppler-1.1.4.orig/menu.cc toppler-1.1.4/menu.cc
+--- toppler-1.1.4.orig/menu.cc 2009-10-10 19:46:06.000000000 -0400
++++ toppler-1.1.4/menu.cc 2010-11-02 12:49:48.347212987 -0400
+@@ -1002,7 +1002,7 @@
+ }
+
+
+-unsigned char men_yn(char* s, bool defchoice, menuopt_callback_proc pr) {
++unsigned char men_yn(const char* s, bool defchoice, menuopt_callback_proc pr) {
+ Menusystem ms(s, pr, 0, SCREENHEI / 5);
+ ms.add_option(NULL,men_yn_option_no,SDLK_n);
+ ms.add_option(NULL,men_yn_option_yes,SDLK_y);
+diff -ru toppler-1.1.4.orig/menu.h toppler-1.1.4/menu.h
+--- toppler-1.1.4.orig/menu.h 2009-10-10 19:46:06.000000000 -0400
++++ toppler-1.1.4/menu.h 2010-11-02 12:49:48.347212987 -0400
+@@ -44,7 +44,7 @@
+
+ /* asks a yes/no question; return 0 if "no",
+ 1 if "yes" */
+-unsigned char men_yn(char *s, bool defchoice, menuopt_callback_proc pr = 0);
++unsigned char men_yn(const char *s, bool defchoice, menuopt_callback_proc pr = 0);
+
+
+ /* shows string s, waits a certain time, (-1 = indefinitely),
+diff -ru toppler-1.1.4.orig/po/Makefile.in.in toppler-1.1.4/po/Makefile.in.in
+--- toppler-1.1.4.orig/po/Makefile.in.in 2007-07-19 10:27:04.000000000 -0400
++++ toppler-1.1.4/po/Makefile.in.in 2010-11-02 12:49:48.348212800 -0400
+@@ -21,7 +21,7 @@
+ prefix = @prefix@
+ exec_prefix = @exec_prefix@
+ datadir = @datadir@
+-localedir = $(datadir)/locale
++localedir = /usr/share/locale
+ gettextsrcdir = $(datadir)/gettext/po
+
+ INSTALL = @INSTALL@
+diff -ru toppler-1.1.4.orig/toppler.desktop.in toppler-1.1.4/toppler.desktop.in
+--- toppler-1.1.4.orig/toppler.desktop.in 2009-10-10 19:46:06.000000000 -0400
++++ toppler-1.1.4/toppler.desktop.in 2010-11-02 12:49:48.348212800 -0400
+@@ -1,12 +1,11 @@
+ [Desktop Entry]
+-Encoding=UTF-8
+-Categories=Application;Game;ArcadeGame;
++Categories=Game;ArcadeGame;
+ X-Desktop-File-Install-Version=0.2
+ Name=@FULLNAME@
+ Comment=A clone of the 'Nebulus' game on old 8 and 16 bit machines.
+ Comment[de]=Klon des alten Spiels 'Nebulus'
+ Comment[cs]=Klon hry 'Nebulus' z dob 8 a 16 bitovÜch počítačů.
+-Icon=@prefix@/pixmaps/@PACKAGE@.xpm
++Icon=@PACKAGE@
+ Exec=@prefix@/bin/toppler
+-Terminal=0
++Terminal=false
+ Type=Application
+diff -ru toppler-1.1.4.orig/txtsys.cc toppler-1.1.4/txtsys.cc
+--- toppler-1.1.4.orig/txtsys.cc 2009-10-10 19:46:06.000000000 -0400
++++ toppler-1.1.4/txtsys.cc 2010-11-02 12:57:19.306613950 -0400
+@@ -23,7 +23,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+
+-textsystem::textsystem(char *title, menuopt_callback_proc pr)
++textsystem::textsystem(const char *title, menuopt_callback_proc pr)
+ {
+ if (title) {
+ this->title = new char[strlen(title)+1];
+@@ -52,7 +52,7 @@
+ if (title) delete [] title;
+ }
+
+-void textsystem::addline(char *line)
++void textsystem::addline(const char *line)
+ {
+ int olen;
+
+diff -ru toppler-1.1.4.orig/txtsys.h toppler-1.1.4/txtsys.h
+--- toppler-1.1.4.orig/txtsys.h 2009-10-10 19:46:06.000000000 -0400
++++ toppler-1.1.4/txtsys.h 2010-11-02 12:57:30.410531216 -0400
+@@ -25,9 +25,9 @@
+ class textsystem {
+
+ public:
+- textsystem(char *title, menuopt_callback_proc pr);
++ textsystem(const char *title, menuopt_callback_proc pr);
+ ~textsystem();
+- void addline(char *line);
++ void addline(const char *line);
+ void run();
+
+ private:
diff --git a/games-puzzle/toppler/toppler-1.1.4.ebuild b/games-puzzle/toppler/toppler-1.1.4.ebuild
new file mode 100644
index 000000000000..f6ac9aa2b1de
--- /dev/null
+++ b/games-puzzle/toppler/toppler-1.1.4.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/toppler/toppler-1.1.4.ebuild,v 1.1 2010/11/02 18:44:58 mr_bones_ Exp $
+
+EAPI=2
+inherit games
+
+DESCRIPTION="Reimplementation of Nebulous using SDL"
+HOMEPAGE="http://toppler.sourceforge.net/"
+SRC_URI="mirror://sourceforge/toppler/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="nls"
+
+RDEPEND="media-libs/libsdl[video]
+ media-libs/sdl-mixer[vorbis]
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
+
+src_configure() {
+ egamesconf \
+ --disable-dependency-tracking \
+ $(use_enable nls)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc AUTHORS ChangeLog README
+ prepgamesdirs
+}