1 |
commit: c9f8ba0276d96d8d28e7ac2c0061043fb1fad760 |
2 |
Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Jul 19 22:47:33 2020 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 1 22:32:07 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9f8ba02 |
7 |
|
8 |
games-strategy/naev: update to 0.7.0 |
9 |
|
10 |
Migrate to EAPI 7, use github sources. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/546562 |
13 |
Package-Manager: Portage-2.3.103, Repoman-2.3.23 |
14 |
Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com> |
15 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
16 |
|
17 |
games-strategy/naev/Manifest | 2 ++ |
18 |
games-strategy/naev/metadata.xml | 2 +- |
19 |
games-strategy/naev/naev-0.7.0.ebuild | 68 +++++++++++++++++++++++++++++++++++ |
20 |
3 files changed, 71 insertions(+), 1 deletion(-) |
21 |
|
22 |
diff --git a/games-strategy/naev/Manifest b/games-strategy/naev/Manifest |
23 |
index bf071dd302e..23ec384b96d 100644 |
24 |
--- a/games-strategy/naev/Manifest |
25 |
+++ b/games-strategy/naev/Manifest |
26 |
@@ -1,2 +1,4 @@ |
27 |
DIST naev-0.6.1.tar.bz2 1047908 BLAKE2B 3763440c64f89c5ceb5993a3e4ee356d0cc615df8b70dba14ce0fb35d12a0a136e82958349887d9c5a719e14d9ddfc47beb524b88650ea6f7a6859a6422d6898 SHA512 4766c80b49de5a7e748948f0404ac54edbc5afa80618150d1f993d66c7462ea73bfc5220d73073cb51cd76ff5dc6ecdf935d6f843051943136ceefaea9837203 |
28 |
+DIST naev-0.7.0-ndata.zip 319608404 BLAKE2B e6edd79282171d4b327d220b33af37720e09f7137a26697de472e3494587525de5d9509865bfccc1093f5d4befa11faa10e0d4f4c59ea8621ecd8d564eb546fe SHA512 5fa8faad36e410f0d2af1c80e6fedbffdd020da72dc96b329ce623e9836490cfb515c1bb88719045491366ca96a32888374029eec6cd14ed86ac8597750995ca |
29 |
+DIST naev-0.7.0.tar.bz2 1076658 BLAKE2B 582bbfbc16e33d16600c19928ed6810dfe5fd3165930e6a51ec9b65d25305cd0bbfaf6f4cced12c5b7f76163ed4dc36b7108e81f4a4e82dc626c6045d3fe769f SHA512 9f8a2912e9f4f29ed6e276b008d4010da3ccdd309de5bb4360c393f2704aa7aff6e18db9e5d3657b4229e911ddec9b2a3312cf182c3c48a91a007a91138d84ae |
30 |
DIST ndata-0.6.1.zip 303984255 BLAKE2B 154d8b326e2596cfe16fc646e7d482c07d7015253b6933889d12b93a2ee7e28649b1f3ffcb0c0ed2bfe9d1e3654623cab00113486d05fe6fd1262ce989bf9c25 SHA512 71c3024e1713b094b63cb0de3c70239d61c54142b715e61d5206c5eb3cb8c7a851fc1b388ecf891110dd8bb5c2b3759af71d20f39cb6e629c71b27386a57d7fe |
31 |
|
32 |
diff --git a/games-strategy/naev/metadata.xml b/games-strategy/naev/metadata.xml |
33 |
index fd273f3193a..935309187f7 100644 |
34 |
--- a/games-strategy/naev/metadata.xml |
35 |
+++ b/games-strategy/naev/metadata.xml |
36 |
@@ -12,6 +12,6 @@ |
37 |
</flag> |
38 |
</use> |
39 |
<upstream> |
40 |
- <remote-id type="sourceforge">naev</remote-id> |
41 |
+ <remote-id type="github">naev/naev</remote-id> |
42 |
</upstream> |
43 |
</pkgmetadata> |
44 |
|
45 |
diff --git a/games-strategy/naev/naev-0.7.0.ebuild b/games-strategy/naev/naev-0.7.0.ebuild |
46 |
new file mode 100644 |
47 |
index 00000000000..20d6fd69fb5 |
48 |
--- /dev/null |
49 |
+++ b/games-strategy/naev/naev-0.7.0.ebuild |
50 |
@@ -0,0 +1,68 @@ |
51 |
+# Copyright 1999-2020 Gentoo Authors |
52 |
+# Distributed under the terms of the GNU General Public License v2 |
53 |
+ |
54 |
+EAPI=7 |
55 |
+inherit xdg-utils |
56 |
+ |
57 |
+DESCRIPTION="A 2D space trading and combat game, in a similar vein to Escape Velocity" |
58 |
+HOMEPAGE="https://naev.org/ https://github.com/naev/naev" |
59 |
+SRC_URI="https://github.com/naev/naev/releases/download/${P}/${P}.tar.bz2 |
60 |
+ https://github.com/naev/naev/releases/download/${P}/${P}-ndata.zip" |
61 |
+ |
62 |
+LICENSE="GPL-2 GPL-3 public-domain CC-BY-3.0 CC-BY-SA-3.0" |
63 |
+SLOT="0" |
64 |
+KEYWORDS="~amd64 ~x86" |
65 |
+IUSE="debug +mixer +openal" |
66 |
+ |
67 |
+RDEPEND=" |
68 |
+ media-libs/libsdl2[X,sound,video] |
69 |
+ dev-libs/libzip |
70 |
+ dev-libs/libxml2 |
71 |
+ >=media-libs/freetype-2:2 |
72 |
+ >=media-libs/libvorbis-1.2.1 |
73 |
+ >=media-libs/libpng-1.2:0= |
74 |
+ virtual/glu |
75 |
+ virtual/opengl |
76 |
+ dev-lang/lua:0 |
77 |
+ mixer? ( media-libs/sdl2-mixer ) |
78 |
+ openal? ( media-libs/openal ) |
79 |
+" |
80 |
+DEPEND="${RDEPEND}" |
81 |
+BDEPEND="virtual/pkgconfig" |
82 |
+ |
83 |
+src_unpack() { |
84 |
+ unpack ${P}.tar.bz2 |
85 |
+} |
86 |
+ |
87 |
+src_configure() { |
88 |
+ econf \ |
89 |
+ --enable-lua=shared \ |
90 |
+ $(use_enable debug) \ |
91 |
+ $(use_with openal) \ |
92 |
+ $(use_with mixer sdlmixer) |
93 |
+} |
94 |
+ |
95 |
+src_compile() { |
96 |
+ emake V=1 |
97 |
+} |
98 |
+ |
99 |
+src_install() { |
100 |
+ emake \ |
101 |
+ DESTDIR="${D}" \ |
102 |
+ appicondir=/usr/share/pixmaps \ |
103 |
+ appdatadir=/usr/share/metainfo \ |
104 |
+ Graphicsdir=/usr/share/applications \ |
105 |
+ install |
106 |
+ insinto /usr/share/${PN} |
107 |
+ newins "${DISTDIR}/${P}-ndata.zip" ndata |
108 |
+ |
109 |
+ rm -f "${D}/usr/share/doc/${PF}/LICENSE" |
110 |
+} |
111 |
+ |
112 |
+pkg_postinst() { |
113 |
+ xdg_icon_cache_update |
114 |
+} |
115 |
+ |
116 |
+pkg_postrm() { |
117 |
+ xdg_icon_cache_update |
118 |
+} |