---- src/audio.cc
-+++ src/audio.cc
+--- a/src/audio.cc
++++ b/src/audio.cc
@@ -22,7 +22,7 @@
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
return false;
}
---- src/ecran.cc
-+++ src/ecran.cc
+--- a/src/ecran.cc
++++ b/src/ecran.cc
@@ -21,7 +21,7 @@
// with this program; if not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
---- src/editeur.cc
-+++ src/editeur.cc
+--- a/src/editeur.cc
++++ b/src/editeur.cc
@@ -25,7 +25,7 @@
#include <windows.h>
#endif
exit(-1);
}
---- src/jeux.cc
-+++ src/jeux.cc
+--- a/src/jeux.cc
++++ b/src/jeux.cc
@@ -25,7 +25,7 @@
#include <windows.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
---- src/loco.cc
-+++ src/loco.cc
+--- a/src/loco.cc
++++ b/src/loco.cc
@@ -21,7 +21,7 @@
// with this program; if not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
---- src/main.cc
-+++ src/main.cc
+--- a/src/main.cc
++++ b/src/main.cc
@@ -23,7 +23,7 @@
#include <stdio.h>
exit(-1);
}
// Change le nom de la fenetre
---- src/menu.cc
-+++ src/menu.cc
+--- a/src/menu.cc
++++ b/src/menu.cc
@@ -21,7 +21,7 @@
// with this program; if not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
exit(-1);
}
---- src/mouse.cc
-+++ src/mouse.cc
+--- a/src/mouse.cc
++++ b/src/mouse.cc
@@ -21,7 +21,7 @@
// with this program; if not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <stdio.h>
#include "mouse.h"
#include "preference.h"
---- src/sprite.cc
-+++ src/sprite.cc
+--- a/src/sprite.cc
++++ b/src/sprite.cc
@@ -21,7 +21,7 @@
// with this program; if not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
return false;
}
return true;
---- src/tableau.cc
-+++ src/tableau.cc
+--- a/src/tableau.cc
++++ b/src/tableau.cc
@@ -21,7 +21,7 @@
// with this program; if not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <stdio.h>
#include <stdlib.h>
#include "preference.h"
---- src/utils.cc
-+++ src/utils.cc
+--- a/src/utils.cc
++++ b/src/utils.cc
@@ -21,7 +21,7 @@
// with this program; if not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
--- /dev/null
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools desktop
+
+DESCRIPTION="Drive a toy wood engine and collect all the coaches"
+HOMEPAGE="http://ri-li.sourceforge.net/"
+SRC_URI="mirror://sourceforge/ri-li/Ri-li-${PV}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl[sound,video]
+ media-libs/sdl-mixer[mod]"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/Ri-li-${PV}"
+
+src_prepare() {
+ default
+ eapply "${FILESDIR}"/${P}-gcc43.patch
+ mv configure.{in,ac}
+ rm aclocal.m4
+ eautoreconf
+}
+
+src_install() {
+ default
+ rm -f "${ED}/usr/share/Ri-li/"*ebuild
+ newicon data/Ri-li-icon-48x48.png ${PN}.png
+ make_desktop_entry Ri_li Ri-li
+}