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/openastromenace/
Date: Wed, 25 Jan 2017 23:05:29
Message-Id: 1485385508.cc2ba81ca48f6e953b226d1254bbb470591370ba.wizardedit@gentoo
1 commit: cc2ba81ca48f6e953b226d1254bbb470591370ba
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 25 22:46:19 2017 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 25 23:05:08 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc2ba81c
7
8 games-action/openastromenace: 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 .../openastromenace-1.3.2-r1.ebuild | 76 ++++++++++++++++++++++
17 1 file changed, 76 insertions(+)
18
19 diff --git a/games-action/openastromenace/openastromenace-1.3.2-r1.ebuild b/games-action/openastromenace/openastromenace-1.3.2-r1.ebuild
20 new file mode 100644
21 index 00000000..6b8572d
22 --- /dev/null
23 +++ b/games-action/openastromenace/openastromenace-1.3.2-r1.ebuild
24 @@ -0,0 +1,76 @@
25 +# Copyright 1999-2017 Gentoo Foundation
26 +# Distributed under the terms of the GNU General Public License v2
27 +# $Id$
28 +
29 +EAPI=6
30 +inherit gnome2-utils cmake-utils eutils
31 +
32 +DESCRIPTION="Modern 3D space shooter with spaceship upgrade possibilities"
33 +HOMEPAGE="https://sourceforge.net/projects/openastromenace/"
34 +SRC_URI="mirror://sourceforge/openastromenace/${PV}/astromenace-src-${PV}.tar.bz2"
35 +
36 +LICENSE="GPL-3 GPL-3+ CC-BY-SA-3.0 UbuntuFontLicense-1.0 OFL-1.1"
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~x86"
39 +IUSE=""
40 +
41 +DEPEND="
42 + media-libs/freealut
43 + media-libs/freetype:2
44 + media-libs/libogg
45 + media-libs/libsdl[joystick,video,X]
46 + media-libs/libvorbis
47 + media-libs/openal
48 + virtual/glu
49 + virtual/opengl
50 + x11-libs/libXinerama"
51 +RDEPEND=${DEPEND}
52 +
53 +S=${WORKDIR}/AstroMenace
54 +
55 +src_prepare() {
56 + default
57 +
58 + # no messing with CXXFLAGS please.
59 + sed -i -e '/-Os/d' CMakeLists.txt || die
60 +}
61 +
62 +src_configure() {
63 + local mycmakeargs=("-DDATADIR=/usr/share/${PN}")
64 +
65 + cmake-utils_src_configure
66 +}
67 +
68 +src_compile() {
69 + cmake-utils_src_compile
70 +
71 + "${CMAKE_BUILD_DIR}"/AstroMenace --pack \
72 + --rawdata="${S}"/RAW_VFS_DATA \
73 + --dir=$(dirname "${CMAKE_BUILD_DIR}") || die
74 +}
75 +
76 +src_install() {
77 + newbin "${CMAKE_BUILD_DIR}"/AstroMenace "${PN}"
78 +
79 + insinto /usr/share/${PN}
80 + doins ../*.vfs
81 +
82 + newicon -s 128 astromenace_128.png ${PN}.png
83 + newicon -s 64 astromenace_64.png ${PN}.png
84 +
85 + dodoc ChangeLog.txt ReadMe.txt
86 +
87 + make_desktop_entry "${PN}" OpenAstroMenace
88 +}
89 +
90 +pkg_preinst() {
91 + gnome2_icon_savelist
92 +}
93 +
94 +pkg_postinst() {
95 + gnome2_icon_cache_update
96 +}
97 +
98 +pkg_postrm() {
99 + gnome2_icon_cache_update
100 +}