Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-engines/odamex/
Date: Sun, 29 Apr 2018 13:07:06
Message-Id: 1525007204.7e808d88c2036fe4bf8306f8089e67f34b5a65de.pacho@gentoo
1 commit: 7e808d88c2036fe4bf8306f8089e67f34b5a65de
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 29 12:55:35 2018 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 29 13:06:44 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e808d88
7
8 games-engines/odamex: Drop old
9
10 Package-Manager: Portage-2.3.31, Repoman-2.3.9
11
12 games-engines/odamex/odamex-0.7.0.ebuild | 116 -------------------------------
13 1 file changed, 116 deletions(-)
14
15 diff --git a/games-engines/odamex/odamex-0.7.0.ebuild b/games-engines/odamex/odamex-0.7.0.ebuild
16 deleted file mode 100644
17 index 9dbda85d5fc..00000000000
18 --- a/games-engines/odamex/odamex-0.7.0.ebuild
19 +++ /dev/null
20 @@ -1,116 +0,0 @@
21 -# Copyright 1999-2017 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=5
25 -WX_GTK_VER="3.0"
26 -inherit cmake-utils eutils gnome2-utils wxwidgets games
27 -
28 -MY_P=${PN}-src-${PV}
29 -DESCRIPTION="An online multiplayer, free software engine for Doom and Doom II"
30 -HOMEPAGE="http://odamex.net/"
31 -SRC_URI="mirror://sourceforge/${PN}/Odamex/${PV}/${MY_P}.tar.bz2"
32 -
33 -LICENSE="GPL-2"
34 -SLOT="0"
35 -KEYWORDS="~amd64 ~x86"
36 -IUSE="dedicated +odalaunch master portmidi server"
37 -
38 -RDEPEND="
39 - dedicated? ( >=net-libs/miniupnpc-1.8 )
40 - !dedicated? (
41 - media-libs/libpng:0
42 - >=media-libs/libsdl-1.2.9[X,sound,joystick,video]
43 - >=media-libs/sdl-mixer-1.2.6
44 - odalaunch? ( x11-libs/wxGTK:${WX_GTK_VER}[X] )
45 - portmidi? ( media-libs/portmidi )
46 - server? ( >=net-libs/miniupnpc-1.8 )
47 - )"
48 -DEPEND="${RDEPEND}"
49 -
50 -S=${WORKDIR}/src-${PV:2:3}
51 -
52 -pkg_pretend() {
53 - if ! test-flag-CXX -std=c++11; then
54 - die "You need at least GCC 4.7.x or Clang >= 3.0 for C++11-specific compiler flags"
55 - fi
56 -}
57 -
58 -src_prepare() {
59 - epatch "${FILESDIR}"/1-${P}-install-rules.patch \
60 - "${FILESDIR}"/2-${P}-cmake-options.patch \
61 - "${FILESDIR}"/3-${P}-wad-search-path.patch \
62 - "${FILESDIR}"/4-${P}-odalauncher-bin-path.patch \
63 - "${FILESDIR}"/${P}-miniupnpc.patch \
64 - "${FILESDIR}"/${P}-gcc6.patch
65 -
66 - rm -r libraries/libminiupnpc || die
67 -
68 - epatch_user
69 -}
70 -
71 -src_configure() {
72 - local mycmakeargs=(
73 - -DUSE_INTREE_PORTMIDI=OFF
74 - -DCMAKE_INSTALL_BINDIR="${GAMES_BINDIR}"
75 - -DCMAKE_INSTALL_DATADIR="${GAMES_DATADIR}"
76 - $(cmake-utils_use_build master MASTER)
77 - )
78 -
79 - if use dedicated ; then
80 - mycmakeargs+=(
81 - -DBUILD_CLIENT=OFF
82 - -DBUILD_ODALAUNCH=OFF
83 - -DBUILD_SERVER=ON
84 - -DENABLE_PORTMIDI=OFF
85 - )
86 - else
87 - mycmakeargs+=(
88 - -DBUILD_CLIENT=ON
89 - $(cmake-utils_use_build odalaunch ODALAUNCH)
90 - $(cmake-utils_use_build server SERVER)
91 - $(cmake-utils_use_enable portmidi PORTMIDI)
92 - )
93 - fi
94 -
95 - append-cxxflags -std=c++11
96 -
97 - cmake-utils_src_configure
98 -}
99 -
100 -src_compile() {
101 - cmake-utils_src_compile
102 -}
103 -
104 -src_install() {
105 - cmake-utils_src_install
106 -
107 - if ! use dedicated ; then
108 - newicon -s 128 "${S}/media/icon_${PN}_128.png" "${PN}.png"
109 - make_desktop_entry ${PN}
110 -
111 - if use odalaunch ; then
112 - newicon -s 128 "${S}/media/icon_odalaunch_128.png" "odalaunch.png"
113 - make_desktop_entry odalaunch "Odamex Launcher" odalaunch
114 - fi
115 - fi
116 -
117 - prepgamesdirs
118 -}
119 -
120 -pkg_preinst() {
121 - games_pkg_preinst
122 - gnome2_icon_savelist
123 -}
124 -
125 -pkg_postinst() {
126 - games_pkg_postinst
127 - einfo
128 - elog "This is just the engine, you will need doom resource files in order to play."
129 - elog "Check: http://odamex.net/wiki/FAQ#What_data_files_are_required.3F"
130 - einfo
131 - gnome2_icon_cache_update
132 -}
133 -
134 -pkg_postrm() {
135 - gnome2_icon_cache_update
136 -}