diff options
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 } |