r15761 - in packages/trunk/late/debian: . patches source

Markus Koschany apo at moszumanska.debian.org
Sun Apr 17 05:52:25 UTC 2016


Author: apo
Date: 2016-04-17 05:52:25 +0000 (Sun, 17 Apr 2016)
New Revision: 15761

Added:
   packages/trunk/late/debian/late-data.install
   packages/trunk/late/debian/late.desktop
   packages/trunk/late/debian/late.install
   packages/trunk/late/debian/late.manpages
   packages/trunk/late/debian/late.png
   packages/trunk/late/debian/patches/gcc-4.3.patch
   packages/trunk/late/debian/patches/gcc-4.6.patch
   packages/trunk/late/debian/patches/gcc.patch
   packages/trunk/late/debian/patches/series
   packages/trunk/late/debian/patches/usleep.patch
   packages/trunk/late/debian/source/
   packages/trunk/late/debian/source/format
   packages/trunk/late/debian/source/include-binaries
Removed:
   packages/trunk/late/debian/dirs
   packages/trunk/late/debian/late-data.dirs
   packages/trunk/late/debian/late-data.files
   packages/trunk/late/debian/late.dirs
   packages/trunk/late/debian/late.files
   packages/trunk/late/debian/patches/00list
   packages/trunk/late/debian/patches/gcc-4.3.dpatch
   packages/trunk/late/debian/patches/gcc-4.6.dpatch
   packages/trunk/late/debian/patches/gcc.dpatch
   packages/trunk/late/debian/patches/usleep.dpatch
Modified:
   packages/trunk/late/debian/changelog
   packages/trunk/late/debian/compat
   packages/trunk/late/debian/control
   packages/trunk/late/debian/copyright
   packages/trunk/late/debian/late.6
   packages/trunk/late/debian/postinst
   packages/trunk/late/debian/postrm
   packages/trunk/late/debian/rules
   packages/trunk/late/debian/watch
Log:
Release 0.1.0-13


Modified: packages/trunk/late/debian/changelog
===================================================================
--- packages/trunk/late/debian/changelog	2016-04-15 10:49:27 UTC (rev 15760)
+++ packages/trunk/late/debian/changelog	2016-04-17 05:52:25 UTC (rev 15761)
@@ -1,9 +1,27 @@
-late (0.1.0-13) UNRELEASED; urgency=low
+late (0.1.0-13) unstable; urgency=medium
 
-  * Correct Vcs-* URLs to point to anonscm.debian.org
+  * Team upload.
 
- -- Evgeni Golov <evgeni at debian.org>  Mon, 15 Jul 2013 22:21:38 +0200
+  [ Evgeni Golov ]
+  * Correct Vcs-* URLs to point to anonscm.debian.org.
 
+  [ Markus Koschany ]
+  * wrap-and-sort -sa.
+  * Declare compliance with Debian Policy 3.9.8.
+  * Vcs-Browser: Use https.
+  * Switch to source format 3.0 (quilt).
+  * Remove dpatch from Build-Depends.
+  * Use compat level 9 and require debhelper >= 9.
+  * Update debian/copyright to copyright format 1.0.
+  * debian/watch: Use version=4.
+  * Switch to dh sequencer and modernize debian/rules.
+  * Use set -e in postinst and postrm maintainer scripts.
+  * Migrate patch system from dpatch to quilt.
+  * Export DEB_BUILD_MAINT_OPTIONS = hardening=+all.
+  * Add late.desktop file and new icon. (Closes: #726810)
+
+ -- Markus Koschany <apo at debian.org>  Sun, 17 Apr 2016 07:12:11 +0200
+
 late (0.1.0-12) unstable; urgency=low
 
   * Team upload.

Modified: packages/trunk/late/debian/compat
===================================================================
--- packages/trunk/late/debian/compat	2016-04-15 10:49:27 UTC (rev 15760)
+++ packages/trunk/late/debian/compat	2016-04-17 05:52:25 UTC (rev 15761)
@@ -1 +1 @@
-5
+9

Modified: packages/trunk/late/debian/control
===================================================================
--- packages/trunk/late/debian/control	2016-04-15 10:49:27 UTC (rev 15760)
+++ packages/trunk/late/debian/control	2016-04-17 05:52:25 UTC (rev 15761)
@@ -2,16 +2,25 @@
 Section: games
 Priority: optional
 Maintainer: Debian Games Team <pkg-games-devel at lists.alioth.debian.org>
-Build-Depends: debhelper (>= 5), autotools-dev, libsdl-image1.2-dev, libsdl1.2-dev, dpatch
-Standards-Version: 3.7.3
-Uploaders: Javier Galicia <javiergaliciaacm at gmail.com>, Barry deFreese <bddebian at comcast.net>
+Uploaders:
+ Javier Galicia <javiergaliciaacm at gmail.com>,
+ Barry deFreese <bddebian at comcast.net>
+Build-Depends:
+ autotools-dev,
+ debhelper (>= 9),
+ libsdl-image1.2-dev,
+ libsdl1.2-dev
+Standards-Version: 3.9.8
 Vcs-Svn: svn://anonscm.debian.org/pkg-games/packages/trunk/late/
-Vcs-Browser: http://anonscm.debian.org/viewvc/pkg-games/packages/trunk/late/
+Vcs-Browser: https://anonscm.debian.org/viewvc/pkg-games/packages/trunk/late/
 Homepage: http://late.sourceforge.net/
 
 Package: late
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, late-data (>= 0.1.0-5)
+Depends:
+ late-data (>= 0.1.0-5),
+ ${misc:Depends},
+ ${shlibs:Depends}
 Description: simple game of capturing balls
  This is a simple and fun game, which involves using your mouse
  based guillotine to trap bouncing balls.
@@ -22,8 +31,10 @@
 
 Package: late-data
 Architecture: all
-Depends: ${misc:Depends}
-Suggests: late
+Depends:
+ ${misc:Depends}
+Suggests:
+ late
 Description: data files for late game
  late is a simple ball capturing game
  .

Modified: packages/trunk/late/debian/copyright
===================================================================
--- packages/trunk/late/debian/copyright	2016-04-15 10:49:27 UTC (rev 15760)
+++ packages/trunk/late/debian/copyright	2016-04-17 05:52:25 UTC (rev 15761)
@@ -1,25 +1,20 @@
-This package was debianized by Steve Kemp <skx at debian.org> on
-Sat,  9 Aug 2003 19:35:43 +0100.
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: late
+Source: https://sourceforge.net/projects/late/files/
 
-It was downloaded from http://late.sourceforge.net/
+Files: *
+Copyright: 2003, Caleb Moore <scarlet at users.sourceforge.net>
+License: GPL-2+
 
-Copyright 2003 Caleb Moore <scarlet at users.sourceforge.net>
+Files: debian/*
+Copyright: 2003-2006, Steve Kemp <skx at debian.org>
+           2006,      Anibal Monsalve Salazar <anibal at debian.org>
+           2007,      Javier Galicia <javiergaliciaacm at gmail.com>
+           2008,      Barry deFreese <bddebian at comcast.net>
+           2011,      Evgeni Golov <evgeni at debian.org>
+           2016,      Markus Koschany <apo at debian.org>
+License: GPL-2+
 
-The software is licensed under the terms of the GNU Public License:
-
-   This package is free software; you can redistribute it and/or modify
-   it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; version 2 dated June, 1991.
-
-   This package is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
-
-   You should have received a copy of the GNU General Public License
-   along with this package; if not, write to the Free Software
-   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, 
-   MA 02110-1301, USA.
-
-On Debian systems, the complete text of the GNU General Public
-License version 2 can be found in `/usr/share/common-licenses/GPL-2'.
+License: GPL-2+
+ On Debian systems, the complete text of the GNU General Public
+ License version 2 can be found in `/usr/share/common-licenses/GPL-2'.

Deleted: packages/trunk/late/debian/dirs
===================================================================
--- packages/trunk/late/debian/dirs	2016-04-15 10:49:27 UTC (rev 15760)
+++ packages/trunk/late/debian/dirs	2016-04-17 05:52:25 UTC (rev 15761)
@@ -1,4 +0,0 @@
-usr/games
-var/games
-usr/share/games/late
-usr/share/menu
\ No newline at end of file

Deleted: packages/trunk/late/debian/late-data.dirs
===================================================================
--- packages/trunk/late/debian/late-data.dirs	2016-04-15 10:49:27 UTC (rev 15760)
+++ packages/trunk/late/debian/late-data.dirs	2016-04-17 05:52:25 UTC (rev 15761)
@@ -1 +0,0 @@
-usr/share/games/late
\ No newline at end of file

Deleted: packages/trunk/late/debian/late-data.files
===================================================================
--- packages/trunk/late/debian/late-data.files	2016-04-15 10:49:27 UTC (rev 15760)
+++ packages/trunk/late/debian/late-data.files	2016-04-17 05:52:25 UTC (rev 15761)
@@ -1 +0,0 @@
-usr/share/games/late
\ No newline at end of file

Added: packages/trunk/late/debian/late-data.install
===================================================================
--- packages/trunk/late/debian/late-data.install	                        (rev 0)
+++ packages/trunk/late/debian/late-data.install	2016-04-17 05:52:25 UTC (rev 15761)
@@ -0,0 +1,2 @@
+usr/share/games/late
+debian/late.png usr/share/icons/hicolor/64x64/apps

Modified: packages/trunk/late/debian/late.6
===================================================================
--- packages/trunk/late/debian/late.6	2016-04-15 10:49:27 UTC (rev 15760)
+++ packages/trunk/late/debian/late.6	2016-04-17 05:52:25 UTC (rev 15761)
@@ -19,7 +19,7 @@
 late \- A simple game for one player.
 .SH SYNOPSIS
 .B late
-.RI [ options ] 
+.RI [ options ]
 .br
 .SH DESCRIPTION
 This manual page documents briefly the
@@ -30,7 +30,7 @@
 Instead, it has documentation in the GNU Info format; see below.
 .PP
 .\" TeX users may be more comfortable with the \fB<whatever>\fP and
-.\" \fI<whatever>\fP escape sequences to invode bold face and italics, 
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
 .\" respectively.
 .SH OPTIONS
 This program does not follow the usual GNU command line syntax, only long
@@ -49,7 +49,7 @@
 .br
 Your mouse is controls a sophisticated tool against evil: basically a fancy fancy tube. This is your weapon, a savage gillotine that cuts up wallpaper with not a shred of hesitation nor remorse. It has but one weakness, it can only withstand a few impacts with balls....
 Fortunantly for you, the evil, heartless little balls also have a weakness, they can only travel across the original terrain and may be locked up tight by its removal.
-And lock them up tight you must, for the only way to exact vengance from these ricocheting feinds is to choke them out of existance. Your gillotine is sharp and quick, it may be shot out using the left button, and its orientation may be changed in ninety degree increments with the right, but once you fire, there is no way to stop its cutting and razing until it has made its cut, or been struck.
+And lock them up tight you must, for the only way to exact vengance from these ricocheting feinds is to choke them out of existence. Your gillotine is sharp and quick, it may be shot out using the left button, and its orientation may be changed in ninety degree increments with the right, but once you fire, there is no way to stop its cutting and razing until it has made its cut, or been struck.
 The balls, in their spherical cunning have developed many tricks beyond just the contemptable bounce tactics of the simple fireball, there are balls made from goo that divide and disperse when hit and can reform in an effort to confuse their prey. There are unstable groups of three balls that will spontaniously explode when encapsulated tight enough. There are balls that will teleport for suprise tactics. And even cold blooded balls that will be towards the cutters whenever they are seen.
 
 You must fight these crewl balls, and you must prevail!

Added: packages/trunk/late/debian/late.desktop
===================================================================
--- packages/trunk/late/debian/late.desktop	                        (rev 0)
+++ packages/trunk/late/debian/late.desktop	2016-04-17 05:52:25 UTC (rev 15761)
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Version=1.0
+Name=Late
+Comment=simple game of capturing balls
+Comment[de]=Einfaches Ballfangspiel
+Exec=late
+Icon=late
+Terminal=false
+Type=Application
+Categories=Game;ArcadeGame;
+Keywords=balls;capture;trapping;
+

Deleted: packages/trunk/late/debian/late.dirs
===================================================================
--- packages/trunk/late/debian/late.dirs	2016-04-15 10:49:27 UTC (rev 15760)
+++ packages/trunk/late/debian/late.dirs	2016-04-17 05:52:25 UTC (rev 15761)
@@ -1,3 +0,0 @@
-usr/games
-var/games/late
-usr/share/man/man6

Deleted: packages/trunk/late/debian/late.files
===================================================================
--- packages/trunk/late/debian/late.files	2016-04-15 10:49:27 UTC (rev 15760)
+++ packages/trunk/late/debian/late.files	2016-04-17 05:52:25 UTC (rev 15761)
@@ -1 +0,0 @@
-usr/games/late usr/share/man/man6/late.6
\ No newline at end of file

Added: packages/trunk/late/debian/late.install
===================================================================
--- packages/trunk/late/debian/late.install	                        (rev 0)
+++ packages/trunk/late/debian/late.install	2016-04-17 05:52:25 UTC (rev 15761)
@@ -0,0 +1,2 @@
+usr/games/late
+debian/late.desktop usr/share/applications

Added: packages/trunk/late/debian/late.manpages
===================================================================
--- packages/trunk/late/debian/late.manpages	                        (rev 0)
+++ packages/trunk/late/debian/late.manpages	2016-04-17 05:52:25 UTC (rev 15761)
@@ -0,0 +1 @@
+debian/late.6

Added: packages/trunk/late/debian/late.png
===================================================================
(Binary files differ)


Property changes on: packages/trunk/late/debian/late.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Deleted: packages/trunk/late/debian/patches/00list
===================================================================
--- packages/trunk/late/debian/patches/00list	2016-04-15 10:49:27 UTC (rev 15760)
+++ packages/trunk/late/debian/patches/00list	2016-04-17 05:52:25 UTC (rev 15761)
@@ -1,4 +0,0 @@
-usleep.dpatch
-gcc.dpatch
-gcc-4.3.dpatch
-gcc-4.6.dpatch

Deleted: packages/trunk/late/debian/patches/gcc-4.3.dpatch
===================================================================
--- packages/trunk/late/debian/patches/gcc-4.3.dpatch	2016-04-15 10:49:27 UTC (rev 15760)
+++ packages/trunk/late/debian/patches/gcc-4.3.dpatch	2016-04-17 05:52:25 UTC (rev 15761)
@@ -1,18 +0,0 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-## gcc-4.3.dpatch by  <bddebian at comcast.net>
-##
-## All lines beginning with `## DP:' are a description of the patch.
-## DP: Build with gcc-4.3.
-
- at DPATCH@
-diff -urNad late-0.1.0~/src/init.cpp late-0.1.0/src/init.cpp
---- late-0.1.0~/src/init.cpp	2008-02-05 11:29:04.000000000 -0500
-+++ late-0.1.0/src/init.cpp	2008-02-05 11:29:19.000000000 -0500
-@@ -27,6 +27,7 @@
- #include <cstdlib>
- #include <fstream>
- #include <iostream>
-+#include <cstring>
- using namespace std; 
- 
- 

Added: packages/trunk/late/debian/patches/gcc-4.3.patch
===================================================================
--- packages/trunk/late/debian/patches/gcc-4.3.patch	                        (rev 0)
+++ packages/trunk/late/debian/patches/gcc-4.3.patch	2016-04-17 05:52:25 UTC (rev 15761)
@@ -0,0 +1,25 @@
+From: Debian Games Team <pkg-games-devel at lists.alioth.debian.org>
+Date: Sun, 17 Apr 2016 07:10:03 +0200
+Subject: gcc-4.3
+
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## gcc-4.3.dpatch by  <bddebian at comcast.net>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Build with gcc-4.3.
+---
+ src/init.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/init.cpp b/src/init.cpp
+index da3e9ca..40a5194 100644
+--- a/src/init.cpp
++++ b/src/init.cpp
+@@ -27,6 +27,7 @@
+ #include <cstdlib>
+ #include <fstream>
+ #include <iostream>
++#include <cstring>
+ using namespace std; 
+ 
+ 

Deleted: packages/trunk/late/debian/patches/gcc-4.6.dpatch
===================================================================
--- packages/trunk/late/debian/patches/gcc-4.6.dpatch	2016-04-15 10:49:27 UTC (rev 15760)
+++ packages/trunk/late/debian/patches/gcc-4.6.dpatch	2016-04-17 05:52:25 UTC (rev 15761)
@@ -1,17 +0,0 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-## gcc-4.6.dpatch by Evgeni Golov <evgeni at debian.org>
-##
-## All lines beginning with `## DP:' are a description of the patch.
-## DP: Build with gcc-4.6.
-
- at DPATCH@
---- late-0.1.0.orig/src/ball.h
-+++ late-0.1.0/src/ball.h
-@@ -25,6 +25,7 @@
- class ball;
- 
- #include "square.h"
-+#include <stddef.h>
- 
- class ball_base
- {

Added: packages/trunk/late/debian/patches/gcc-4.6.patch
===================================================================
--- packages/trunk/late/debian/patches/gcc-4.6.patch	                        (rev 0)
+++ packages/trunk/late/debian/patches/gcc-4.6.patch	2016-04-17 05:52:25 UTC (rev 15761)
@@ -0,0 +1,25 @@
+From: Debian Games Team <pkg-games-devel at lists.alioth.debian.org>
+Date: Sun, 17 Apr 2016 07:10:03 +0200
+Subject: gcc-4.6
+
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## gcc-4.6.dpatch by Evgeni Golov <evgeni at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Build with gcc-4.6.
+---
+ src/ball.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/ball.h b/src/ball.h
+index 4e211fd..fcfb342 100644
+--- a/src/ball.h
++++ b/src/ball.h
+@@ -25,6 +25,7 @@
+ class ball;
+ 
+ #include "square.h"
++#include <stddef.h>
+ 
+ class ball_base
+ {

Deleted: packages/trunk/late/debian/patches/gcc.dpatch
===================================================================
--- packages/trunk/late/debian/patches/gcc.dpatch	2016-04-15 10:49:27 UTC (rev 15760)
+++ packages/trunk/late/debian/patches/gcc.dpatch	2016-04-17 05:52:25 UTC (rev 15761)
@@ -1,16 +0,0 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-## gcc.dpatch by Martin Michlmayr <tbm at cyrius.com>
-## DP: Patch for gcc4.
-
- at DPATCH@
-diff -ur late-0.1.0/src/init.cpp late-0.1.0-gcc/src/init.cpp
---- late-0.1.0/src/init.cpp	2003-08-17 10:33:27.000000000 +0000
-+++ late-0.1.0-gcc/src/init.cpp	2007-04-22 21:34:16.000000000 +0000
-@@ -24,6 +24,7 @@
- #include "graphics.h"
- #include "arch.h"
- #include "scorescreen.h"
-+#include <cstdlib>
- #include <fstream>
- #include <iostream>
- using namespace std; 

Added: packages/trunk/late/debian/patches/gcc.patch
===================================================================
--- packages/trunk/late/debian/patches/gcc.patch	                        (rev 0)
+++ packages/trunk/late/debian/patches/gcc.patch	2016-04-17 05:52:25 UTC (rev 15761)
@@ -0,0 +1,23 @@
+From: Debian Games Team <pkg-games-devel at lists.alioth.debian.org>
+Date: Sun, 17 Apr 2016 07:10:03 +0200
+Subject: gcc
+
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## gcc.dpatch by Martin Michlmayr <tbm at cyrius.com>
+## DP: Patch for gcc4.
+---
+ src/init.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/init.cpp b/src/init.cpp
+index 8a1b03f..da3e9ca 100644
+--- a/src/init.cpp
++++ b/src/init.cpp
+@@ -24,6 +24,7 @@
+ #include "graphics.h"
+ #include "arch.h"
+ #include "scorescreen.h"
++#include <cstdlib>
+ #include <fstream>
+ #include <iostream>
+ using namespace std; 

Added: packages/trunk/late/debian/patches/series
===================================================================
--- packages/trunk/late/debian/patches/series	                        (rev 0)
+++ packages/trunk/late/debian/patches/series	2016-04-17 05:52:25 UTC (rev 15761)
@@ -0,0 +1,4 @@
+gcc.patch
+gcc-4.3.patch
+gcc-4.6.patch
+usleep.patch

Deleted: packages/trunk/late/debian/patches/usleep.dpatch
===================================================================
--- packages/trunk/late/debian/patches/usleep.dpatch	2016-04-15 10:49:27 UTC (rev 15760)
+++ packages/trunk/late/debian/patches/usleep.dpatch	2016-04-17 05:52:25 UTC (rev 15761)
@@ -1,86 +0,0 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-## usleep.dpatch by Eric Andresen <ndiin at users.sourceforge.net>
-## DP: Add check for sleep counter.
-
- at DPATCH@
-diff -ur late-0.1.0/src/game.cpp late-0.1.0-usleep/src/game.cpp
---- late-0.1.0/src/game.cpp	2003-08-17 15:09:59.000000000 -0700
-+++ late-0.1.0-usleep/src/game.cpp	2003-08-21 22:47:24.000000000 -0700
-@@ -38,6 +38,7 @@
- #include "explosiveball.h"
- #include <fstream>
- #include <iostream>
-+#include <unistd.h>
- #include "menu.h"
- #include "killerball.h"
- #include "magnet.h"
-@@ -775,6 +776,7 @@
- {
-   unsigned int ticks;
-   unsigned int newticks;
-+  unsigned int counter = 0;
- 
-   restartgame();
- 
-@@ -792,9 +794,12 @@
- 	  add_highscore(toadd);
- 	  return;
- 	}
--      newticks = SDL_GetTicks();
--      update (float(newticks - ticks) / 5.0);
--      ticks = newticks;
-+      if (counter%3 == 0) {
-+          newticks = SDL_GetTicks();
-+          update (float(newticks - ticks) / 5.0);
-+          ticks = newticks;
-+      }
-+      ++counter;
-       SDL_Event event;
-       while(SDL_PollEvent(&event))
- 	{
-@@ -862,5 +867,6 @@
- 	      ticks = SDL_GetTicks();  //pause the game
- 	    }
- 	}
-+      usleep(10);
-     }
- }
-Only in late-0.1.0-usleep/src: game.cpp.orig
-Only in late-0.1.0-usleep/src: game.cpp.rej
-diff -ur late-0.1.0/src/menu.cpp late-0.1.0-usleep/src/menu.cpp
---- late-0.1.0/src/menu.cpp	2003-08-01 15:33:44.000000000 -0700
-+++ late-0.1.0-usleep/src/menu.cpp	2003-08-21 22:44:32.000000000 -0700
-@@ -22,6 +22,7 @@
- #include <string>
- #include <iostream>
- #include <SDL/SDL.h>
-+#include <unistd.h>
- #include "text.h"
- #include "graphics.h"
- #include "menu.h"
-@@ -152,5 +153,6 @@
- 	      exit(0);
- 	    }
- 	}
-+        usleep(50);
-     }
- }
-diff -ur late-0.1.0/src/scorescreen.cpp late-0.1.0-usleep/src/scorescreen.cpp
---- late-0.1.0/src/scorescreen.cpp	2003-08-17 04:10:45.000000000 -0700
-+++ late-0.1.0-usleep/src/scorescreen.cpp	2003-08-21 22:44:32.000000000 -0700
-@@ -25,6 +25,7 @@
- #include "highscores.h"
- #include <SDL/SDL.h>
- #include <sstream>
-+#include <unistd.h>
- using namespace std;
- 
- static unsigned int font;
-@@ -55,6 +56,7 @@
- 	      exit(0);
- 	    }
- 	}
-+      usleep(50);
-     }
- }
- 

Added: packages/trunk/late/debian/patches/usleep.patch
===================================================================
--- packages/trunk/late/debian/patches/usleep.patch	                        (rev 0)
+++ packages/trunk/late/debian/patches/usleep.patch	2016-04-17 05:52:25 UTC (rev 15761)
@@ -0,0 +1,96 @@
+From: Debian Games Team <pkg-games-devel at lists.alioth.debian.org>
+Date: Sun, 17 Apr 2016 07:10:03 +0200
+Subject: usleep
+
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## usleep.dpatch by Eric Andresen <ndiin at users.sourceforge.net>
+## DP: Add check for sleep counter.
+
+---
+ src/game.cpp        | 12 +++++++++---
+ src/menu.cpp        |  2 ++
+ src/scorescreen.cpp |  2 ++
+ 3 files changed, 13 insertions(+), 3 deletions(-)
+
+diff --git a/src/game.cpp b/src/game.cpp
+index cd5699a..51da24b 100644
+--- a/src/game.cpp
++++ b/src/game.cpp
+@@ -38,6 +38,7 @@ using namespace std;
+ #include "explosiveball.h"
+ #include <fstream>
+ #include <iostream>
++#include <unistd.h>
+ #include "menu.h"
+ #include "killerball.h"
+ #include "magnet.h"
+@@ -775,6 +776,7 @@ void mainloop()
+ {
+   unsigned int ticks;
+   unsigned int newticks;
++  unsigned int counter = 0;
+ 
+   restartgame();
+ 
+@@ -792,9 +794,12 @@ void mainloop()
+ 	  add_highscore(toadd);
+ 	  return;
+ 	}
+-      newticks = SDL_GetTicks();
+-      update (float(newticks - ticks) / 5.0);
+-      ticks = newticks;
++      if (counter%3 == 0) {
++          newticks = SDL_GetTicks();
++          update (float(newticks - ticks) / 5.0);
++          ticks = newticks;
++      }
++      ++counter;
+       SDL_Event event;
+       while(SDL_PollEvent(&event))
+ 	{
+@@ -862,5 +867,6 @@ void mainloop()
+ 	      ticks = SDL_GetTicks();  //pause the game
+ 	    }
+ 	}
++      usleep(10);
+     }
+ }
+diff --git a/src/menu.cpp b/src/menu.cpp
+index f72dd9d..5e20f20 100644
+--- a/src/menu.cpp
++++ b/src/menu.cpp
+@@ -22,6 +22,7 @@
+ #include <string>
+ #include <iostream>
+ #include <SDL/SDL.h>
++#include <unistd.h>
+ #include "text.h"
+ #include "graphics.h"
+ #include "menu.h"
+@@ -152,5 +153,6 @@ int menu::getchoice()
+ 	      exit(0);
+ 	    }
+ 	}
++        usleep(50);
+     }
+ }
+diff --git a/src/scorescreen.cpp b/src/scorescreen.cpp
+index 1f1dc63..d4909b1 100644
+--- a/src/scorescreen.cpp
++++ b/src/scorescreen.cpp
+@@ -25,6 +25,7 @@
+ #include "highscores.h"
+ #include <SDL/SDL.h>
+ #include <sstream>
++#include <unistd.h>
+ using namespace std;
+ 
+ static unsigned int font;
+@@ -55,6 +56,7 @@ static void pause_for_input()
+ 	      exit(0);
+ 	    }
+ 	}
++      usleep(50);
+     }
+ }
+ 

Modified: packages/trunk/late/debian/postinst
===================================================================
--- packages/trunk/late/debian/postinst	2016-04-15 10:49:27 UTC (rev 15760)
+++ packages/trunk/late/debian/postinst	2016-04-17 05:52:25 UTC (rev 15761)
@@ -1,4 +1,5 @@
-#!/bin/sh -e
+#!/bin/sh
+set -e
 
 #
 #  Score file for the game.
@@ -15,7 +16,8 @@
 # First install the score file might be missing.
 if [ ! -e $scorefile ]
 then
-	touch $scorefile
+    install -d /var/games
+    touch $scorefile
 fi
 
 

Modified: packages/trunk/late/debian/postrm
===================================================================
--- packages/trunk/late/debian/postrm	2016-04-15 10:49:27 UTC (rev 15760)
+++ packages/trunk/late/debian/postrm	2016-04-17 05:52:25 UTC (rev 15761)
@@ -1,4 +1,5 @@
-#!/bin/sh -e
+#!/bin/sh
+set -e
 
 #
 #  Score file for the game.

Modified: packages/trunk/late/debian/rules
===================================================================
--- packages/trunk/late/debian/rules	2016-04-15 10:49:27 UTC (rev 15760)
+++ packages/trunk/late/debian/rules	2016-04-17 05:52:25 UTC (rev 15761)
@@ -1,115 +1,17 @@
 #!/usr/bin/make -f
-# Sample debian/rules that uses debhelper.
-# GNU copyright 1997 to 1999 by Joey Hess.
-
-# Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
-include /usr/share/dpatch/dpatch.make
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
-# These are used for cross-compiling and for saving the configure script
-# from having to guess our platform (since we know it already)
-DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+%:
+	dh $@ --parallel --with autotools_dev
 
+override_dh_auto_configure:
+	dh_auto_configure -- \
+		--prefix=/usr \
+		--mandir=\$${prefix}/share/man \
+		--infodir=\$${prefix}/share/info \
+		--datadir=/usr/share/games \
+		--bindir=/usr/games
 
-#
-#  We should be using CXXFLAGS here not CFLAGS.
-#
-CFLAGS = -Wall -g
-
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-	CFLAGS += -O0
-else
-	CFLAGS += -O2
-endif
-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
-	INSTALL_PROGRAM += -s
-endif
-
-#
-#  Export the flags to configura, etc.
-#
-export CXXFLAGS = $(CFLAGS)
-
-
-
-config.status: configure
-	dh_testdir
-ifneq "$(wildcard /usr/share/misc/config.sub)" ""
-	cp -f /usr/share/misc/config.sub config.sub
-endif
-ifneq "$(wildcard /usr/share/misc/config.guess)" ""
-	cp -f /usr/share/misc/config.guess config.guess
-endif
-	# Add here commands to configure the package.
-	./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --datadir=/usr/share/games --bindir=/usr/games
-
-
-build: build-stamp
-
-build-stamp:  patch-stamp config.status
-	dh_testdir
-
-	# Add here commands to compile the package.
-	$(MAKE)
-	#/usr/bin/docbook-to-man debian/late.sgml > late.6
-
-	touch build-stamp
-
-clean: clean-patched unpatch
-clean-patched:
-	dh_testdir
-	dh_testroot
-	rm -f build-stamp 
-
-	# Add here commands to clean up after the build process.
-	[ ! -f Makefile ] || [ ! -f config.status ] || $(MAKE) distclean
-ifneq "$(wildcard /usr/share/misc/config.sub)" ""
-	rm -f config.sub
-endif
-ifneq "$(wildcard /usr/share/misc/config.guess)" ""
-	rm -f config.guess
-endif
-	dh_clean config.log config.cache config.status
-
-install: build
-	dh_testdir
-	dh_testroot
-	dh_clean -k
-	dh_installdirs
-
-	# Add here commands to install the package into debian/late.
+override_dh_auto_install:
 	$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp scoredir=/var/games
-
-	mkdir -p $(CURDIR)/debian/tmp/usr/share/man/man6/
-	cp debian/late.6  $(CURDIR)/debian/tmp/usr/share/man/man6/late.6
-
-	dh_movefiles -p late
-	dh_movefiles -p late-data
-
-
-
-
-# Build architecture-independent files here.
-binary-indep: build install
-# We have nothing to do by default.
-
-# Build architecture-dependent files here.
-binary-arch: build install
-	dh_testdir
-	dh_testroot
-	dh_installchangelogs
-	dh_installdocs
-	dh_installmenu
-	dh_link
-	dh_strip
-	dh_compress
-	dh_fixperms
-	dh_installdeb
-	dh_shlibdeps
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install patch unpatch

Added: packages/trunk/late/debian/source/format
===================================================================
--- packages/trunk/late/debian/source/format	                        (rev 0)
+++ packages/trunk/late/debian/source/format	2016-04-17 05:52:25 UTC (rev 15761)
@@ -0,0 +1 @@
+3.0 (quilt)

Added: packages/trunk/late/debian/source/include-binaries
===================================================================
--- packages/trunk/late/debian/source/include-binaries	                        (rev 0)
+++ packages/trunk/late/debian/source/include-binaries	2016-04-17 05:52:25 UTC (rev 15761)
@@ -0,0 +1 @@
+debian/late.png

Modified: packages/trunk/late/debian/watch
===================================================================
--- packages/trunk/late/debian/watch	2016-04-15 10:49:27 UTC (rev 15760)
+++ packages/trunk/late/debian/watch	2016-04-17 05:52:25 UTC (rev 15761)
@@ -1,3 +1,2 @@
-version=3
-
+version=4
 http://sf.net/late/late-([\d.]*)\.tar\.gz




More information about the Pkg-games-commits mailing list