summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2020-10-01 13:05:40 +0200
committerLars Wendler <polynomial-c@gentoo.org>2020-10-01 13:07:34 +0200
commitf6773157b4cafe701e3745087c99948737f2b65d (patch)
treeb4a99ed09d53254767b9e7b96afcf4f47549c074
parentnet-im/skypeforlinux: Version bump to 8.65.0.76 (diff)
downloadgentoo-f6773157b4cafe701e3745087c99948737f2b65d.tar.gz
gentoo-f6773157b4cafe701e3745087c99948737f2b65d.tar.bz2
gentoo-f6773157b4cafe701e3745087c99948737f2b65d.zip
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@gentoo.org>
-rw-r--r--games-rpg/manaplus/files/manaplus-1.9.3.23-metainfo.patch38
-rw-r--r--games-rpg/manaplus/manaplus-1.9.3.23-r1.ebuild (renamed from games-rpg/manaplus/manaplus-1.9.3.23.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 000000000000..dd324e5da8b4
--- /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 <polynomial-c@gentoo.org>
+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 <polynomial-c@gentoo.org>
+---
+ 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
index 85e22dbccd84..a319f2a43284 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() {