summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-08-19 01:12:06 +0100
committerSam James <sam@gentoo.org>2021-08-19 01:38:58 +0100
commit2cc8300fe0b1887194c6c4ce26d48f1fb3c5525a (patch)
tree3ccd3e6f292bfa012ebda8aa2830d3628bee68b1 /games-arcade/openmortal
parentgames-arcade/fishsupper: update EAPI 6 -> 7, add missing libsdl2[joystick] (diff)
downloadgentoo-2cc8300fe0b1887194c6c4ce26d48f1fb3c5525a.tar.gz
gentoo-2cc8300fe0b1887194c6c4ce26d48f1fb3c5525a.tar.bz2
gentoo-2cc8300fe0b1887194c6c4ce26d48f1fb3c5525a.zip
games-arcade/openmortal: update EAPI 6 -> 7, add libsdl2[joystick] dep
Closes: https://bugs.gentoo.org/742518 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-arcade/openmortal')
-rw-r--r--games-arcade/openmortal/files/openmortal-0.7-freetype.patch4
-rw-r--r--games-arcade/openmortal/files/openmortal-0.7-freetype_pkgconfig.patch4
-rw-r--r--games-arcade/openmortal/files/openmortal-0.7-gcc41.patch2
-rw-r--r--games-arcade/openmortal/openmortal-0.7-r2.ebuild20
4 files changed, 17 insertions, 13 deletions
diff --git a/games-arcade/openmortal/files/openmortal-0.7-freetype.patch b/games-arcade/openmortal/files/openmortal-0.7-freetype.patch
index 3a342c88979d..2c545edc1d13 100644
--- a/games-arcade/openmortal/files/openmortal-0.7-freetype.patch
+++ b/games-arcade/openmortal/files/openmortal-0.7-freetype.patch
@@ -1,5 +1,5 @@
---- openmortal-0.7/src/sge_tt_text.cpp.old
-+++ openmortal-0.7/src/sge_tt_text.cpp
+--- a/src/sge_tt_text.cpp
++++ b/src/sge_tt_text.cpp
@@ -37,9 +37,9 @@
#ifndef _SGE_NOTTF
diff --git a/games-arcade/openmortal/files/openmortal-0.7-freetype_pkgconfig.patch b/games-arcade/openmortal/files/openmortal-0.7-freetype_pkgconfig.patch
index fe683899f2e9..cde67a66e107 100644
--- a/games-arcade/openmortal/files/openmortal-0.7-freetype_pkgconfig.patch
+++ b/games-arcade/openmortal/files/openmortal-0.7-freetype_pkgconfig.patch
@@ -1,5 +1,5 @@
---- openmortal-0.7/configure.in
-+++ openmortal-0.7/configure.in
+--- a/configure.in
++++ b/configure.in
@@ -25,6 +25,7 @@
AC_C_CONST
AC_PROG_CXX
diff --git a/games-arcade/openmortal/files/openmortal-0.7-gcc41.patch b/games-arcade/openmortal/files/openmortal-0.7-gcc41.patch
index 2620c153e837..888a06868d01 100644
--- a/games-arcade/openmortal/files/openmortal-0.7-gcc41.patch
+++ b/games-arcade/openmortal/files/openmortal-0.7-gcc41.patch
@@ -1,4 +1,4 @@
---- a/src/OnlineChat.cpp.old
+--- a/src/OnlineChat.cpp
+++ b/src/OnlineChat.cpp
@@ -56,7 +56,7 @@
class CChallengeMenu: public Menu
diff --git a/games-arcade/openmortal/openmortal-0.7-r2.ebuild b/games-arcade/openmortal/openmortal-0.7-r2.ebuild
index 6e1e3a824afa..1c6c8ce1d1b9 100644
--- a/games-arcade/openmortal/openmortal-0.7-r2.ebuild
+++ b/games-arcade/openmortal/openmortal-0.7-r2.ebuild
@@ -1,7 +1,8 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
+
inherit autotools desktop
DESCRIPTION="A spoof of the famous Mortal Kombat game"
@@ -11,7 +12,6 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE=""
RDEPEND="media-libs/libsdl[video]
media-libs/sdl-image
@@ -21,21 +21,25 @@ RDEPEND="media-libs/libsdl[video]
>=media-libs/freetype-2.4.0:2
dev-lang/perl
"
-DEPEND="${RDEPEND}
- virtual/pkgconfig"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}/${P}"-gcc41.patch
+ "${FILESDIR}/${P}"-freetype.patch
+ "${FILESDIR}/${P}"-freetype_pkgconfig.patch
+)
src_prepare() {
default
- eapply \
- "${FILESDIR}/${P}"-gcc41.patch \
- "${FILESDIR}/${P}"-freetype.patch \
- "${FILESDIR}/${P}"-freetype_pkgconfig.patch
+
mv configure.{in,ac} || die
eautoreconf
}
src_install() {
default
+
newicon data/gfx/icon.png ${PN}.png
make_desktop_entry ${PN} OpenMortal
}