commit:     f6773157b4cafe701e3745087c99948737f2b65d
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Thu Oct  1 11:05:40 2020 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Thu Oct  1 11:07:34 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6773157

games-rpg/manaplus: Revbump for appdata -> metainfo

Bug: https://bugs.gentoo.org/739362
Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 .../files/manaplus-1.9.3.23-metainfo.patch         | 38 ++++++++++++++++++++++
 ...1.9.3.23.ebuild => manaplus-1.9.3.23-r1.ebuild} | 12 ++++---
 2 files changed, 46 insertions(+), 4 deletions(-)

diff --git a/games-rpg/manaplus/files/manaplus-1.9.3.23-metainfo.patch 
b/games-rpg/manaplus/files/manaplus-1.9.3.23-metainfo.patch
new file mode 100644
index 00000000000..dd324e5da8b
--- /dev/null
+++ b/games-rpg/manaplus/files/manaplus-1.9.3.23-metainfo.patch
@@ -0,0 +1,38 @@
+From c8e83006fb78b5768de1e3e19993c91a29f5da6d Mon Sep 17 00:00:00 2001
+From: Lars Wendler <[email protected]>
+Date: Thu, 1 Oct 2020 12:48:02 +0200
+Subject: [PATCH] Rename appdata to metainfo
+
+See https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html
+chapter 2.1.2 "Filesystem locations"
+
+Signed-off-by: Lars Wendler <[email protected]>
+---
+ Makefile.am                                   | 4 ++--
+ manaplus.appdata.xml => manaplus.metainfo.xml | 0
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+ rename manaplus.appdata.xml => manaplus.metainfo.xml (100%)
+
+diff --git a/Makefile.am b/Makefile.am
+index 603cf8e16..70c6981be 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -6,9 +6,9 @@ desktopdir = $(datarootdir)/applications
+ desktop_DATA = manaplus.desktop \
+            manaplustest.desktop
+ 
+-appdatadir = $(datarootdir)/appdata
++appdatadir = $(datarootdir)/metainfo
+ 
+-appdata_DATA = manaplus.appdata.xml
++appdata_DATA = manaplus.metainfo.xml
+ 
+ # Extra files to include
+ EXTRA_DIST = $(desktop_DATA) \
+diff --git a/manaplus.appdata.xml b/manaplus.metainfo.xml
+similarity index 100%
+rename from manaplus.appdata.xml
+rename to manaplus.metainfo.xml
+-- 
+2.28.0
+

diff --git a/games-rpg/manaplus/manaplus-1.9.3.23.ebuild 
b/games-rpg/manaplus/manaplus-1.9.3.23-r1.ebuild
similarity index 97%
rename from games-rpg/manaplus/manaplus-1.9.3.23.ebuild
rename to games-rpg/manaplus/manaplus-1.9.3.23-r1.ebuild
index 85e22dbccd8..a319f2a4328 100644
--- a/games-rpg/manaplus/manaplus-1.9.3.23.ebuild
+++ b/games-rpg/manaplus/manaplus-1.9.3.23-r1.ebuild
@@ -3,10 +3,12 @@
 
 EAPI=7
 
+inherit autotools
+
 DESCRIPTION="OpenSource 2D MMORPG client for Evol Online and The Mana World"
 HOMEPAGE="https://manaplus.org";
 if [[ ${PV} == 9999 ]] ; then
-       inherit autotools git-r3
+       inherit git-r3
        EGIT_REPO_URI="https://github.com/ManaPlus/ManaPlus.git";
 else
        
SRC_URI="http://download.evolonline.org/manaplus/download/${PV}/${P}.tar.xz";
@@ -56,11 +58,13 @@ BDEPEND="
        virtual/pkgconfig
        nls? ( sys-devel/gettext )"
 
+PATCHES=(
+       "${FILESDIR}/${P}-metainfo.patch"
+)
+
 src_prepare() {
        default
-       if [[ ${PV} == 9999 ]] ; then
-               eautoreconf
-       fi
+       eautoreconf
 }
 
 src_configure() {

Reply via email to