From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- .../xye/files/xye-0.12.2-fix-buildsystem.patch | 45 ++++++++++++++++++++++ games-puzzle/xye/files/xye-0.12.2-fix-c++14.patch | 14 +++++++ .../xye/files/xye-0.12.2-fix-desktop-file.patch | 18 +++++++++ 3 files changed, 77 insertions(+) create mode 100644 games-puzzle/xye/files/xye-0.12.2-fix-buildsystem.patch create mode 100644 games-puzzle/xye/files/xye-0.12.2-fix-c++14.patch create mode 100644 games-puzzle/xye/files/xye-0.12.2-fix-desktop-file.patch (limited to 'games-puzzle/xye/files') diff --git a/games-puzzle/xye/files/xye-0.12.2-fix-buildsystem.patch b/games-puzzle/xye/files/xye-0.12.2-fix-buildsystem.patch new file mode 100644 index 000000000000..c96d42e34681 --- /dev/null +++ b/games-puzzle/xye/files/xye-0.12.2-fix-buildsystem.patch @@ -0,0 +1,45 @@ +Fix build system to respect correct paths +and install files in correct paths. + +--- a/Makefile.am ++++ b/Makefile.am +@@ -4,13 +4,11 @@ + + + bin_PROGRAMS = xye +-xye_LDFLAGS = + ++doc_DATA = NEWS ChangeLog AUTHORS ++html_DATA = ReadMe.html + +-docedir = $(datadir)/@PACKAGE@ +-doce_DATA = ReadMe.html NEWS ChangeLog AUTHORS +- +-levelsdir= $(datadir)/@PACKAGE@/levels ++levelsdir= $(datadir)/$(PACKAGE)/levels + levels_DATA = levels/5levels.xye \ + levels/levels.xye \ + levels/logo.xye \ +@@ -25,12 +23,10 @@ + levels/xyester.xye \ + levels/SuperJustin.xye + +-resdir= $(datadir)/@PACKAGE@/res ++resdir= $(datadir)/$(PACKAGE)/res + res_DATA = res/default.xml \ + res/xye.png \ + res/xye_luminosity.png \ +-res/DejaVuSans.ttf \ +-res/DejaVuSans-Bold.ttf \ + res/fon.bmp \ + res/fon_bold.bmp \ + res/clean40.xml \ +@@ -103,7 +99,7 @@ + src/skins.cpp \ + src/skins.h + +-EXTRA_DIST = ${EXTRA_DIST1} ${xye_SOURCES} ${res_DATA} ${levels_DATA} ${doce_DATA} ++EXTRA_DIST = ${EXTRA_DIST1} ${xye_SOURCES} ${res_DATA} ${levels_DATA} + + DEFS=@data_path_flag@ + diff --git a/games-puzzle/xye/files/xye-0.12.2-fix-c++14.patch b/games-puzzle/xye/files/xye-0.12.2-fix-c++14.patch new file mode 100644 index 000000000000..f2083b871a82 --- /dev/null +++ b/games-puzzle/xye/files/xye-0.12.2-fix-c++14.patch @@ -0,0 +1,14 @@ +Add explicit cast to silence C++14 -Wnarrowing conversion warnings. +See also: https://bugs.gentoo.org/show_bug.cgi?id=600298 + +--- a/src/xsb_level.cpp ++++ b/src/xsb_level.cpp +@@ -784,7 +784,7 @@ + + bool FromXyeDFS(int* mem, unsigned char x, unsigned char y) + { +- static const unsigned char dx[4] = {0,0,-1,1}, dy[4] = {-1,1,0,0}; ++ static const unsigned char dx[4] = {0,0,(unsigned char)-1,1}, dy[4] = {(unsigned char)-1,1,0,0}; + int &res = mem[y*XYE_HORZ+x]; + if( res==0) + { diff --git a/games-puzzle/xye/files/xye-0.12.2-fix-desktop-file.patch b/games-puzzle/xye/files/xye-0.12.2-fix-desktop-file.patch new file mode 100644 index 000000000000..99558ef28732 --- /dev/null +++ b/games-puzzle/xye/files/xye-0.12.2-fix-desktop-file.patch @@ -0,0 +1,18 @@ +Fix .desktop file to comply with FDO specifications. + +--- a/xye.desktop ++++ b/xye.desktop +@@ -4,11 +4,11 @@ + Encoding=UTF-8 + Exec=xye + Type=Application +-Categories=Application;Game;PuzzleGame ++Categories=Game + Name=Xye + GenericName=Xye + Comment=Solve puzzles and action challenges in order to get all the gems in the room. + Terminal=false + StartupNotify=false +-Icon=xye.png ++Icon=xye + MimeType=application/xye-xml -- cgit v1.2.3