diff options
author | Sam James <sam@gentoo.org> | 2021-04-05 16:15:53 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-04-05 16:24:39 +0000 |
commit | a5bc70259289675b96f3fffd18b77ccf7b4c0f84 (patch) | |
tree | b423db8d9485f933a9d5086b760b4e91d7e63bea /games-arcade/emilia-pinball | |
parent | sys-apps/qdirstat: bump to version 1.7.1 (diff) | |
download | gentoo-a5bc70259289675b96f3fffd18b77ccf7b4c0f84.tar.gz gentoo-a5bc70259289675b96f3fffd18b77ccf7b4c0f84.tar.bz2 gentoo-a5bc70259289675b96f3fffd18b77ccf7b4c0f84.zip |
games-arcade/emilia-pinball: port to EAPI 7, games.eclass--
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-arcade/emilia-pinball')
-rw-r--r-- | games-arcade/emilia-pinball/emilia-pinball-0.3.1-r2.ebuild (renamed from games-arcade/emilia-pinball/emilia-pinball-0.3.1-r1.ebuild) | 63 | ||||
-rw-r--r-- | games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-gcc46.patch | 12 | ||||
-rw-r--r-- | games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-glibc210.patch | 4 | ||||
-rw-r--r-- | games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-libtool.patch | 20 | ||||
-rw-r--r-- | games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-parallel.patch | 4 |
5 files changed, 58 insertions, 45 deletions
diff --git a/games-arcade/emilia-pinball/emilia-pinball-0.3.1-r1.ebuild b/games-arcade/emilia-pinball/emilia-pinball-0.3.1-r2.ebuild index 56747f703846..523439876ec8 100644 --- a/games-arcade/emilia-pinball/emilia-pinball-0.3.1-r1.ebuild +++ b/games-arcade/emilia-pinball/emilia-pinball-0.3.1-r2.ebuild @@ -1,43 +1,57 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 -inherit autotools eutils games +EAPI=7 + +inherit autotools desktop MY_PN=${PN/emilia-/} MY_P=${MY_PN}-${PV} DESCRIPTION="SDL OpenGL pinball game" HOMEPAGE="http://pinball.sourceforge.net/" SRC_URI="mirror://sourceforge/pinball/${MY_P}.tar.gz" +S="${WORKDIR}"/${MY_P} LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" -RDEPEND="virtual/opengl - x11-libs/libSM +RDEPEND=" + dev-libs/libltdl:0 media-libs/libsdl[joystick,opengl,video,X] media-libs/sdl-image[png] media-libs/sdl-mixer[vorbis] - dev-libs/libltdl:0" -DEPEND="${RDEPEND} - x11-libs/libXt" + x11-libs/libICE + x11-libs/libSM + virtual/opengl + virtual/glu +" +DEPEND=" + ${DEPEND} + x11-libs/libXt +" -S=${WORKDIR}/${MY_P} +RDEPEND+=" acct-group/gamestat" + +PATCHES=( + "${FILESDIR}"/${P}-glibc210.patch + "${FILESDIR}"/${P}-libtool.patch + "${FILESDIR}"/${P}-gcc46.patch + "${FILESDIR}"/${P}-parallel.patch +) src_prepare() { - sed -i -e '/dnl/d' {src,test}/Makefile.am || die #334899 - epatch "${FILESDIR}"/${P}-glibc210.patch \ - "${FILESDIR}"/${P}-libtool.patch \ - "${FILESDIR}"/${P}-gcc46.patch \ - "${FILESDIR}"/${P}-parallel.patch - rm -rf libltdl + # bug #334899 + sed -i -e '/dnl/d' {src,test}/Makefile.am || die + + default + + rm -rf libltdl || die eautoreconf } src_configure() { - egamesconf --with-x + econf --with-x } src_compile() { @@ -46,14 +60,17 @@ src_compile() { src_install() { default - dosym "${GAMES_BINDIR}"/pinball "${GAMES_BINDIR}"/emilia-pinball - mv "${D}/${GAMES_PREFIX}/include" "${D}/usr/" || die - dodir /usr/bin - mv "${D}/${GAMES_BINDIR}/pinball-config" "${D}/usr/bin/" || die + + dosym pinball /usr/bin/emilia-pinball + sed -i \ -e 's:-I${prefix}/include/pinball:-I/usr/include/pinball:' \ - "${D}"/usr/bin/pinball-config || die + "${ED}"/usr/bin/pinball-config || die + newicon data/pinball.xpm ${PN}.xpm make_desktop_entry emilia-pinball "Emilia pinball" - prepgamesdirs + + fperms -R 660 /var/games/pinball + fowners -R root:gamestat /var/games/pinball + fperms g+s /usr/bin/pinball } diff --git a/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-gcc46.patch b/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-gcc46.patch index d78779197fce..aef1d672df62 100644 --- a/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-gcc46.patch +++ b/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-gcc46.patch @@ -1,5 +1,5 @@ ---- base/SignalSender.cpp.old 2011-04-26 09:39:24.303339444 +0200 -+++ base/SignalSender.cpp 2011-04-26 09:39:51.261063162 +0200 +--- a/base/SignalSender.cpp ++++ b/base/SignalSender.cpp @@ -11,6 +11,7 @@ #include "SignalSender.h" #include "Group.h" @@ -8,8 +8,8 @@ SignalSender * SignalSender::p_SignalSender = NULL; ---- base/Behavior.cpp.old 2011-04-26 09:36:27.129006665 +0200 -+++ base/Behavior.cpp 2011-04-26 09:36:48.855396752 +0200 +--- a/base/Behavior.cpp ++++ b/base/Behavior.cpp @@ -9,6 +9,7 @@ #include "Private.h" #include "Behavior.h" @@ -18,8 +18,8 @@ Behavior::Behavior() { //EM_COUT("Behavior::Behavior", 1); ---- base/BehaviorVisitor.cpp.old 2011-04-26 09:37:39.759653248 +0200 -+++ base/BehaviorVisitor.cpp 2011-04-26 09:37:54.481594952 +0200 +--- a/base/BehaviorVisitor.cpp ++++ b/base/BehaviorVisitor.cpp @@ -9,6 +9,7 @@ #include "BehaviorVisitor.h" #include "Behavior.h" diff --git a/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-glibc210.patch b/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-glibc210.patch index 800dbeae21a7..12f33cd21c85 100644 --- a/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-glibc210.patch +++ b/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-glibc210.patch @@ -1,5 +1,5 @@ ---- base/Config.cpp -+++ base/Config.cpp +--- a/base/Config.cpp ++++ b/base/Config.cpp @@ -423,8 +423,8 @@ m_sDataDir = string(EM_DATADIR) + "/"; m_sExeDir = "./"; diff --git a/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-libtool.patch b/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-libtool.patch index 437e4eb684a4..a9bc00051bab 100644 --- a/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-libtool.patch +++ b/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-libtool.patch @@ -1,6 +1,5 @@ -diff -ur pinball-0.3.1.orig/configure.ac pinball-0.3.1/configure.ac ---- pinball-0.3.1.orig/configure.ac 2003-11-21 09:40:18.000000000 +0200 -+++ pinball-0.3.1/configure.ac 2010-03-05 20:41:24.000000000 +0200 +--- a/configure.ac ++++ b/configure.ac @@ -14,18 +14,13 @@ CFLAGS="-g -W -Wall -O2" CXXFLAGS="-g -W -Wall -O2" @@ -22,9 +21,8 @@ diff -ur pinball-0.3.1.orig/configure.ac pinball-0.3.1/configure.ac dnl ******************************************* dnl PATHS AND DIRS **************************** -diff -ur pinball-0.3.1.orig/Makefile.am pinball-0.3.1/Makefile.am ---- pinball-0.3.1.orig/Makefile.am 2003-12-10 12:15:35.000000000 +0200 -+++ pinball-0.3.1/Makefile.am 2010-03-05 20:36:48.000000000 +0200 +--- a/Makefile.am ++++ b/Makefile.am @@ -1,6 +1,6 @@ AUTOMAKE_OPTIONS = gnu @@ -33,9 +31,8 @@ diff -ur pinball-0.3.1.orig/Makefile.am pinball-0.3.1/Makefile.am EXTRA_DIST = bootstrap pinball.spec clean pinball.desktop -diff -ur pinball-0.3.1.orig/src/Makefile.am pinball-0.3.1/src/Makefile.am ---- pinball-0.3.1.orig/src/Makefile.am 2003-11-20 18:46:17.000000000 +0200 -+++ pinball-0.3.1/src/Makefile.am 2010-03-05 20:37:08.000000000 +0200 +--- a/src/Makefile.am ++++ b/src/Makefile.am @@ -7,9 +7,9 @@ pinlib_LIBRARIES = libemilia_pin.a @@ -48,9 +45,8 @@ diff -ur pinball-0.3.1.orig/src/Makefile.am pinball-0.3.1/src/Makefile.am pinball_LDFLAGS = -export-dynamic pinball_SOURCES = Pinball.cpp -diff -ur pinball-0.3.1.orig/test/Makefile.am pinball-0.3.1/test/Makefile.am ---- pinball-0.3.1.orig/test/Makefile.am 2003-11-20 18:46:17.000000000 +0200 -+++ pinball-0.3.1/test/Makefile.am 2010-03-05 20:36:38.000000000 +0200 +--- a/test/Makefile.am ++++ b/test/Makefile.am @@ -6,8 +6,8 @@ noinst_PROGRAMS = scale simple light texture load explode collision signal billboard font thread menu joy sound trans math misc varray unittest dnl noinst_PROGRAMS = unittest diff --git a/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-parallel.patch b/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-parallel.patch index 3dfef56090c9..f5857c2b2910 100644 --- a/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-parallel.patch +++ b/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-parallel.patch @@ -1,5 +1,5 @@ ---- src/Makefile.am.old 2011-04-26 10:46:05.102070461 +0200 -+++ src/Makefile.am 2011-04-26 10:46:16.872813136 +0200 +--- a/src/Makefile.am ++++ b/src/Makefile.am @@ -9,7 +9,7 @@ INCLUDES = -I../base -I../addon |