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-simulation/crrcsim/
Date: Wed, 21 Sep 2016 20:57:09
Message-Id: 1474491413.0f4174060aaa6c36cd002730ed123beb32986299.wizardedit@gentoo
1 commit: 0f4174060aaa6c36cd002730ed123beb32986299
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 21 17:56:23 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 21 20:56:53 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f417406
7
8 games-simulation/crrcsim: 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.0
15
16 games-simulation/crrcsim/crrcsim-0.9.12-r2.ebuild | 63 +++++++++++++++++++++++
17 1 file changed, 63 insertions(+)
18
19 diff --git a/games-simulation/crrcsim/crrcsim-0.9.12-r2.ebuild b/games-simulation/crrcsim/crrcsim-0.9.12-r2.ebuild
20 new file mode 100644
21 index 00000000..6bd7440
22 --- /dev/null
23 +++ b/games-simulation/crrcsim/crrcsim-0.9.12-r2.ebuild
24 @@ -0,0 +1,63 @@
25 +# Copyright 1999-2016 Gentoo Foundation
26 +# Distributed under the terms of the GNU General Public License v2
27 +# $Id$
28 +
29 +EAPI=6
30 +WANT_AUTOMAKE="1.10"
31 +inherit autotools eutils gnome2-utils
32 +
33 +DESCRIPTION="model-airplane flight simulation program"
34 +HOMEPAGE="https://sourceforge.net/projects/crrcsim/"
35 +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
36 +
37 +LICENSE="GPL-2"
38 +SLOT="0"
39 +KEYWORDS="~amd64 ~x86"
40 +IUSE="portaudio"
41 +
42 +RDEPEND="
43 + media-libs/libsdl[X,sound,joystick,opengl,video]
44 + media-libs/plib
45 + sci-mathematics/cgal
46 + portaudio? ( media-libs/portaudio )"
47 +DEPEND="${RDEPEND}"
48 +
49 +PATCHES=(
50 + "${FILESDIR}"/${PN}-buildsystem.patch
51 +)
52 +
53 +src_prepare() {
54 + default
55 +
56 + if has_version "sci-mathematics/cgal[gmp(+)]" ; then
57 + eapply "${FILESDIR}"/${PN}-cgal_gmp.patch
58 + fi
59 + eautoreconf
60 +}
61 +
62 +src_configure() {
63 + econf \
64 + --datadir="/usr/share" \
65 + --datarootdir="${EPREFIX%/}/usr/share" \
66 + --docdir="${EPREFIX%/}/usr/share/doc/${PF}" \
67 + $(use_with portaudio)
68 +}
69 +
70 +src_install() {
71 + emake DESTDIR="${D}" install
72 + dodoc AUTHORS HISTORY NEWS README
73 + doicon -s 32 packages/icons/${PN}.png
74 + make_desktop_entry ${PN}
75 +}
76 +
77 +pkg_preinst() {
78 + gnome2_icon_savelist
79 +}
80 +
81 +pkg_postinst() {
82 + gnome2_icon_cache_update
83 +}
84 +
85 +pkg_postrm() {
86 + gnome2_icon_cache_update
87 +}