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-strategy/naev/
Date: Wed, 02 May 2018 19:28:37
Message-Id: 1525289282.1053d7cf800986e9453769eb12e49b79bc894e28.pacho@gentoo
1 commit: 1053d7cf800986e9453769eb12e49b79bc894e28
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 2 18:40:19 2018 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Wed May 2 19:28:02 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1053d7cf
7
8 games-strategy/naev: Stop using games.eclass
9
10 Package-Manager: Portage-2.3.31, Repoman-2.3.9
11
12 games-strategy/naev/naev-0.6.1-r1.ebuild | 79 ++++++++++++++++++++++++++++++++
13 1 file changed, 79 insertions(+)
14
15 diff --git a/games-strategy/naev/naev-0.6.1-r1.ebuild b/games-strategy/naev/naev-0.6.1-r1.ebuild
16 new file mode 100644
17 index 00000000000..c7932c3eb32
18 --- /dev/null
19 +++ b/games-strategy/naev/naev-0.6.1-r1.ebuild
20 @@ -0,0 +1,79 @@
21 +# Copyright 1999-2018 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +inherit flag-o-matic gnome2-utils
26 +
27 +DESCRIPTION="A 2D space trading and combat game, in a similar vein to Escape Velocity"
28 +HOMEPAGE="http://blog.naev.org/"
29 +SRC_URI="mirror://sourceforge/naev/${P}.tar.bz2
30 + mirror://sourceforge/naev/ndata-${PV}.zip"
31 +
32 +LICENSE="GPL-2 GPL-3 public-domain CC-BY-3.0 CC-BY-SA-3.0"
33 +SLOT="0"
34 +KEYWORDS="~amd64 ~x86"
35 +IUSE="debug +mixer +openal"
36 +
37 +RDEPEND="
38 + media-libs/libsdl2[X,sound,video]
39 + dev-libs/libzip
40 + dev-libs/libxml2
41 + >=media-libs/freetype-2:2
42 + >=media-libs/libvorbis-1.2.1
43 + >=media-libs/libpng-1.2:0=
44 + virtual/glu
45 + virtual/opengl
46 + dev-lang/lua:0
47 + mixer? ( media-libs/sdl2-mixer )
48 + openal? ( media-libs/openal )
49 +"
50 +DEPEND="${RDEPEND}
51 + virtual/pkgconfig
52 +"
53 +
54 +src_unpack() {
55 + unpack ${P}.tar.bz2
56 +}
57 +
58 +src_configure() {
59 + econf \
60 + --docdir=/usr/share/doc/${PF} \
61 + --enable-lua=shared \
62 + $(use_enable debug) \
63 + $(use_with openal) \
64 + $(use_with mixer sdlmixer)
65 +}
66 +
67 +src_compile() {
68 + emake V=1
69 +}
70 +
71 +src_install() {
72 + emake \
73 + DESTDIR="${D}" \
74 + appicondir=/usr/share/pixmaps \
75 + appdatadir=/usr/share/appdata \
76 + Graphicsdir=/usr/share/applications \
77 + install
78 + insinto /usr/share/${PN}
79 + newins "${DISTDIR}"/ndata-${PV}.zip ndata
80 +
81 + local res
82 + for res in 16 32 64 128; do
83 + newicon -s ${res} extras/logos/logo${res}.png naev.png
84 + done
85 +
86 + rm -f "${D}"/usr/share/doc/${PF}/LICENSE
87 +}
88 +
89 +pkg_preinst() {
90 + gnome2_icon_savelist
91 +}
92 +
93 +pkg_postinst() {
94 + gnome2_icon_cache_update
95 +}
96 +
97 +pkg_postrm() {
98 + gnome2_icon_cache_update
99 +}