Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-action/violetland/, games-action/violetland/files/
Date: Tue, 31 Jan 2017 00:59:36
Message-Id: 1485824362.b88f1938637ed30a9c7e28e68e77b0b529ea04c4.wizardedit@gentoo
1 commit: b88f1938637ed30a9c7e28e68e77b0b529ea04c4
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 31 00:31:33 2017 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 31 00:59:22 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b88f1938
7
8 games-action/violetland: remove deprecated games eclass
9
10 Also update to EAPI 6
11
12 Gentoo-Bug: https://bugs.gentoo.org/574082
13
14 Package-Manager: Portage-2.3.2, Repoman-2.3.1
15
16 .../files/violetland-0.4.3-boost150.patch | 8 +--
17 games-action/violetland/violetland-0.4.3-r1.ebuild | 57 ++++++++++++++++++++++
18 2 files changed, 61 insertions(+), 4 deletions(-)
19
20 diff --git a/games-action/violetland/files/violetland-0.4.3-boost150.patch b/games-action/violetland/files/violetland-0.4.3-boost150.patch
21 index 4e700ca..5ddd5e8 100644
22 --- a/games-action/violetland/files/violetland-0.4.3-boost150.patch
23 +++ b/games-action/violetland/files/violetland-0.4.3-boost150.patch
24 @@ -1,5 +1,5 @@
25 ---- CMakeLists.txt.old 2012-11-05 15:19:11.501044743 +0100
26 -+++ CMakeLists.txt 2012-11-05 15:19:25.415250207 +0100
27 +--- a/CMakeLists.txt 2012-11-05 15:19:11.501044743 +0100
28 ++++ b/CMakeLists.txt 2012-11-05 15:19:25.415250207 +0100
29 @@ -8,7 +8,6 @@
30 find_package(SDL_mixer REQUIRED)
31 find_package(OpenGL REQUIRED)
32 @@ -8,8 +8,8 @@
33
34 if(${MINGW})
35 set(INTL_LIBRARY intl)
36 ---- src/system/utility/FileUtility.cpp.old 2012-11-05 21:26:07.865488297 +0100
37 -+++ src/system/utility/FileUtility.cpp 2012-11-05 21:30:44.881208230 +0100
38 +--- a/src/system/utility/FileUtility.cpp 2012-11-05 21:26:07.865488297 +0100
39 ++++ b/src/system/utility/FileUtility.cpp 2012-11-05 21:30:44.881208230 +0100
40 @@ -20,7 +20,7 @@
41
42 while (dir_it != boost::filesystem::directory_iterator()) {
43
44 diff --git a/games-action/violetland/violetland-0.4.3-r1.ebuild b/games-action/violetland/violetland-0.4.3-r1.ebuild
45 new file mode 100644
46 index 00000000..a3b711a
47 --- /dev/null
48 +++ b/games-action/violetland/violetland-0.4.3-r1.ebuild
49 @@ -0,0 +1,57 @@
50 +# Copyright 1999-2017 Gentoo Foundation
51 +# Distributed under the terms of the GNU General Public License v2
52 +# $Id$
53 +
54 +EAPI=6
55 +
56 +inherit eutils multilib toolchain-funcs flag-o-matic cmake-utils
57 +
58 +DESCRIPTION="Help a girl named Violet in the struggle with hordes of monsters"
59 +HOMEPAGE="https://code.google.com/p/violetland/"
60 +SRC_URI="https://github.com/ooxi/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
61 +
62 +LICENSE="GPL-3 CC-BY-SA-3.0"
63 +SLOT="0"
64 +KEYWORDS="~amd64 ~x86"
65 +IUSE=""
66 +
67 +RDEPEND="
68 + dev-libs/boost[threads(+)]
69 + media-libs/libsdl[sound,video]
70 + media-libs/sdl-image[png]
71 + media-libs/sdl-mixer[vorbis]
72 + media-libs/sdl-ttf
73 + virtual/glu
74 + virtual/opengl"
75 +DEPEND="${RDEPEND}"
76 +
77 +PATCHES=(
78 + "${FILESDIR}"/${P}-boost150.patch
79 +)
80 +
81 +src_prepare() {
82 + default
83 +
84 + sed -i \
85 + -e "/README_EN.TXT/d" \
86 + -e "/README_RU.TXT/d" \
87 + CMakeLists.txt || die "sed failed"
88 +}
89 +
90 +src_configure() {
91 + mycmakeargs=(
92 + "-DCMAKE_INSTALL_PREFIX=/usr"
93 + "-DDATA_INSTALL_DIR=/usr/share/${PN}"
94 + )
95 + cmake-utils_src_configure
96 +}
97 +
98 +src_compile() {
99 + cmake-utils_src_compile
100 +}
101 +
102 +src_install() {
103 + DOCS="README_EN.TXT CHANGELOG" cmake-utils_src_install
104 + newicon icon-light.png ${PN}.png
105 + make_desktop_entry ${PN} VioletLand
106 +}