Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-engines/odamex/, games-engines/odamex/files/
Date: Sun, 14 Oct 2018 18:35:27
Message-Id: 1539542112.542e520bfe8cfc266b8899f50502fdb527ac4508.asturm@gentoo
1 commit: 542e520bfe8cfc266b8899f50502fdb527ac4508
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 14 18:27:19 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 14 18:35:12 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=542e520b
7
8 games-engines/odamex: EAPI-6 bump, sort stuff
9
10 Drop superfluous pkg_pretend, pkg_preinst.
11
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13 Package-Manager: Portage-2.3.51, Repoman-2.3.11
14
15 .../odamex/files/odamex-0.7.0-miniupnpc20.patch | 4 +-
16 games-engines/odamex/odamex-0.7.0-r1.ebuild | 51 ++++++++++------------
17 2 files changed, 24 insertions(+), 31 deletions(-)
18
19 diff --git a/games-engines/odamex/files/odamex-0.7.0-miniupnpc20.patch b/games-engines/odamex/files/odamex-0.7.0-miniupnpc20.patch
20 index 716a07fe628..377286220b1 100644
21 --- a/games-engines/odamex/files/odamex-0.7.0-miniupnpc20.patch
22 +++ b/games-engines/odamex/files/odamex-0.7.0-miniupnpc20.patch
23 @@ -1,7 +1,7 @@
24 Index: common/i_net.cpp
25 ===================================================================
26 ---- common/i_net.cpp (revision 5459)
27 -+++ common/i_net.cpp (working copy)
28 +--- a/common/i_net.cpp (revision 5459)
29 ++++ b/common/i_net.cpp (working copy)
30 @@ -151,7 +151,11 @@
31
32 Printf(PRINT_HIGH, "UPnP: Discovering router (max 1 unit supported)\n");
33
34 diff --git a/games-engines/odamex/odamex-0.7.0-r1.ebuild b/games-engines/odamex/odamex-0.7.0-r1.ebuild
35 index 0d2e515d29d..78af4a724d7 100644
36 --- a/games-engines/odamex/odamex-0.7.0-r1.ebuild
37 +++ b/games-engines/odamex/odamex-0.7.0-r1.ebuild
38 @@ -1,19 +1,20 @@
39 -# Copyright 1999-2018 Gentoo Foundation
40 +# Copyright 1999-2018 Gentoo Authors
41 # Distributed under the terms of the GNU General Public License v2
42
43 -EAPI=5
44 +EAPI=6
45 +
46 WX_GTK_VER="3.0"
47 -inherit cmake-utils eutils gnome2-utils readme.gentoo-r1 wxwidgets
48 +inherit cmake-utils desktop gnome2-utils readme.gentoo-r1 wxwidgets
49
50 MY_P=${PN}-src-${PV}
51 -DESCRIPTION="An online multiplayer, free software engine for Doom and Doom II"
52 -HOMEPAGE="http://odamex.net/"
53 +DESCRIPTION="Online multiplayer, free software engine for Doom and Doom II"
54 +HOMEPAGE="https://odamex.net/"
55 SRC_URI="mirror://sourceforge/${PN}/Odamex/${PV}/${MY_P}.tar.bz2"
56
57 LICENSE="GPL-2"
58 SLOT="0"
59 KEYWORDS="~amd64 ~x86"
60 -IUSE="dedicated +odalaunch master portmidi server"
61 +IUSE="dedicated master +odalaunch portmidi server"
62
63 RDEPEND="
64 dedicated? ( >=net-libs/miniupnpc-1.8:0= )
65 @@ -35,23 +36,19 @@ DOC_CONTENTS="
66
67 S="${WORKDIR}/src-${PV:2:3}"
68
69 -pkg_pretend() {
70 - if ! test-flag-CXX -std=c++11; then
71 - die "You need at least GCC 4.7.x or Clang >= 3.0 for C++11-specific compiler flags"
72 - fi
73 -}
74 +PATCHES=(
75 + "${FILESDIR}"/1-${P}-install-rules.patch
76 + "${FILESDIR}"/2-${P}-cmake-options.patch
77 + "${FILESDIR}"/3-${P}-wad-search-path.patch
78 + "${FILESDIR}"/4-${P}-odalauncher-bin-path.patch
79 + "${FILESDIR}"/${P}-miniupnpc.patch
80 + "${FILESDIR}"/${P}-miniupnpc20.patch
81 + "${FILESDIR}"/${P}-gcc6.patch
82 +)
83
84 src_prepare() {
85 - epatch "${FILESDIR}"/1-${P}-install-rules.patch \
86 - "${FILESDIR}"/2-${P}-cmake-options.patch \
87 - "${FILESDIR}"/3-${P}-wad-search-path.patch \
88 - "${FILESDIR}"/4-${P}-odalauncher-bin-path.patch \
89 - "${FILESDIR}"/${P}-miniupnpc.patch \
90 - "${FILESDIR}"/${P}-miniupnpc20.patch \
91 - "${FILESDIR}"/${P}-gcc6.patch
92 -
93 - rm -r libraries/libminiupnpc || die
94 cmake-utils_src_prepare
95 + rm -r libraries/libminiupnpc || die
96 }
97
98 src_configure() {
99 @@ -59,22 +56,22 @@ src_configure() {
100 -DUSE_INTREE_PORTMIDI=OFF
101 -DCMAKE_INSTALL_BINDIR="/usr/bin"
102 -DCMAKE_INSTALL_DATADIR="/usr/share"
103 - $(cmake-utils_use_build master MASTER)
104 + -DBUILD_MASTER=$(usex master)
105 )
106
107 if use dedicated ; then
108 mycmakeargs+=(
109 -DBUILD_CLIENT=OFF
110 -DBUILD_ODALAUNCH=OFF
111 - -DBUILD_SERVER=ON
112 -DENABLE_PORTMIDI=OFF
113 + -DBUILD_SERVER=ON
114 )
115 else
116 mycmakeargs+=(
117 -DBUILD_CLIENT=ON
118 - $(cmake-utils_use_build odalaunch ODALAUNCH)
119 - $(cmake-utils_use_build server SERVER)
120 - $(cmake-utils_use_enable portmidi PORTMIDI)
121 + -DBUILD_ODALAUNCH=$(usex odalaunch)
122 + -DENABLE_PORTMIDI=$(usex portmidi)
123 + -DBUILD_SERVER=$(usex server)
124 )
125 fi
126
127 @@ -102,10 +99,6 @@ src_install() {
128 fi
129 }
130
131 -pkg_preinst() {
132 - gnome2_icon_savelist
133 -}
134 -
135 pkg_postinst() {
136 gnome2_icon_cache_update
137 readme.gentoo_print_elog