1 |
commit: eee55ae2995fbed8258f126d8689789fb195e071 |
2 |
Author: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com> |
3 |
AuthorDate: Tue Jun 2 15:43:58 2020 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
5 |
CommitDate: Tue Jun 2 15:43:58 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=eee55ae2 |
7 |
|
8 |
games-arcade/taisei: Add live ebuild, BDEPEND, doc/lto, LICENSE. |
9 |
|
10 |
This adds: |
11 |
- Me as additional maintainer (clarified with @lanodan). |
12 |
- doc USE flag to build docs conditionally. |
13 |
- lto USE flag (upstream has it default on). |
14 |
- missing BDEPEND packages. |
15 |
- A live ebuild. |
16 |
- Fixes LICENSE. |
17 |
|
18 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
19 |
Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com> |
20 |
|
21 |
games-arcade/taisei/metadata.xml | 5 +++ |
22 |
games-arcade/taisei/taisei-1.3.1.ebuild | 30 +++++++++++++----- |
23 |
games-arcade/taisei/taisei-9999.ebuild | 54 +++++++++++++++++++++++++++++++++ |
24 |
3 files changed, 81 insertions(+), 8 deletions(-) |
25 |
|
26 |
diff --git a/games-arcade/taisei/metadata.xml b/games-arcade/taisei/metadata.xml |
27 |
index 3111344..8d7c68e 100644 |
28 |
--- a/games-arcade/taisei/metadata.xml |
29 |
+++ b/games-arcade/taisei/metadata.xml |
30 |
@@ -5,6 +5,10 @@ |
31 |
<email>contact@×××××××××.me</email> |
32 |
<name>Haelwenn (lanodan) Monnier</name> |
33 |
</maintainer> |
34 |
+ <maintainer type="person"> |
35 |
+ <email>o.freyermuth@××××××××××.com</email> |
36 |
+ <name>Oliver Freyermuth</name> |
37 |
+ </maintainer> |
38 |
<upstream> |
39 |
<bugs-to>https://github.com/taisei-project/taisei/issues</bugs-to> |
40 |
<changelog>https://taisei-project.org/news.atom</changelog> |
41 |
@@ -14,6 +18,7 @@ |
42 |
Taisei is an open clone of the Touhou Project series. Touhou is a one-man project of shoot-em-up games set in an isolated world full of Japanese folklore. |
43 |
</longdescription> |
44 |
<use> |
45 |
+ <flag name="lto">Enable link time optimization</flag> |
46 |
<flag name="zip">Enable loading of game data from ZIP packages via <pkg>dev-libs/libzip</pkg></flag> |
47 |
</use> |
48 |
</pkgmetadata> |
49 |
|
50 |
diff --git a/games-arcade/taisei/taisei-1.3.1.ebuild b/games-arcade/taisei/taisei-1.3.1.ebuild |
51 |
index ef0458c..a8371fb 100644 |
52 |
--- a/games-arcade/taisei/taisei-1.3.1.ebuild |
53 |
+++ b/games-arcade/taisei/taisei-1.3.1.ebuild |
54 |
@@ -5,15 +5,22 @@ EAPI=7 |
55 |
|
56 |
inherit meson |
57 |
|
58 |
+if [[ ${PV} == *9999* ]]; then |
59 |
+ inherit git-r3 |
60 |
+ KEYWORDS="" |
61 |
+ EGIT_REPO_URI="https://github.com/taisei-project/taisei.git" |
62 |
+else |
63 |
+ SRC_URI="https://github.com/taisei-project/taisei/releases/download/v${PV}/${PN}-v${PV}.tar.xz" |
64 |
+ KEYWORDS="~amd64" |
65 |
+ S="${WORKDIR}/${PN}-v${PV}" |
66 |
+fi |
67 |
+ |
68 |
DESCRIPTION="Clone of the Touhou series, written in C using SDL/OpenGL/OpenAL." |
69 |
HOMEPAGE="https://taisei-project.org/" |
70 |
-LICENSE="BSD" |
71 |
+LICENSE="MIT CC-BY-4.0 CC0-1.0 public-domain" |
72 |
SLOT="0" |
73 |
-SRC_URI="https://github.com/taisei-project/taisei/releases/download/v${PV}/${PN}-v${PV}.tar.xz" |
74 |
-KEYWORDS="~amd64" |
75 |
-IUSE="zip" |
76 |
|
77 |
-S="${WORKDIR}/${PN}-v${PV}" |
78 |
+IUSE="doc +lto zip" |
79 |
|
80 |
DEPEND=" |
81 |
media-libs/freetype:2 |
82 |
@@ -24,17 +31,24 @@ DEPEND=" |
83 |
sys-libs/zlib |
84 |
zip? ( dev-libs/libzip ) |
85 |
" |
86 |
+BDEPEND=">=dev-util/meson-0.49 |
87 |
+ >=dev-lang/python-3.5 |
88 |
+ doc? ( dev-python/docutils )" |
89 |
|
90 |
src_prepare() { |
91 |
- sed -i '/strip=true/d' meson.build || die "Failed removing auto-stripping" |
92 |
- sed -i "s/doc_path = join.*/doc_path = join_paths(datadir, \'doc\', \'taisei-${PV}\')/" \ |
93 |
- meson.build || die "Failed changing doc_path" |
94 |
+ if use doc; then |
95 |
+ sed -i "s/doc_path = join.*/doc_path = join_paths(datadir, \'doc\', \'${P}\')/" \ |
96 |
+ meson.build || die "Failed changing doc_path" |
97 |
+ fi |
98 |
default |
99 |
} |
100 |
|
101 |
src_configure() { |
102 |
local emesonargs=( |
103 |
+ $(meson_use doc docs) |
104 |
+ $(meson_use lto b_lto) |
105 |
$(meson_use zip enable_zip) |
106 |
+ -Dstrip=false |
107 |
) |
108 |
meson_src_configure |
109 |
} |
110 |
|
111 |
diff --git a/games-arcade/taisei/taisei-9999.ebuild b/games-arcade/taisei/taisei-9999.ebuild |
112 |
new file mode 100644 |
113 |
index 0000000..a8371fb |
114 |
--- /dev/null |
115 |
+++ b/games-arcade/taisei/taisei-9999.ebuild |
116 |
@@ -0,0 +1,54 @@ |
117 |
+# Copyright 2019-2020 Gentoo Authors |
118 |
+# Distributed under the terms of the GNU General Public License v2 |
119 |
+ |
120 |
+EAPI=7 |
121 |
+ |
122 |
+inherit meson |
123 |
+ |
124 |
+if [[ ${PV} == *9999* ]]; then |
125 |
+ inherit git-r3 |
126 |
+ KEYWORDS="" |
127 |
+ EGIT_REPO_URI="https://github.com/taisei-project/taisei.git" |
128 |
+else |
129 |
+ SRC_URI="https://github.com/taisei-project/taisei/releases/download/v${PV}/${PN}-v${PV}.tar.xz" |
130 |
+ KEYWORDS="~amd64" |
131 |
+ S="${WORKDIR}/${PN}-v${PV}" |
132 |
+fi |
133 |
+ |
134 |
+DESCRIPTION="Clone of the Touhou series, written in C using SDL/OpenGL/OpenAL." |
135 |
+HOMEPAGE="https://taisei-project.org/" |
136 |
+LICENSE="MIT CC-BY-4.0 CC0-1.0 public-domain" |
137 |
+SLOT="0" |
138 |
+ |
139 |
+IUSE="doc +lto zip" |
140 |
+ |
141 |
+DEPEND=" |
142 |
+ media-libs/freetype:2 |
143 |
+ >=media-libs/libpng-1.5 |
144 |
+ media-libs/libsdl2 |
145 |
+ media-libs/sdl2-mixer |
146 |
+ media-libs/libwebp |
147 |
+ sys-libs/zlib |
148 |
+ zip? ( dev-libs/libzip ) |
149 |
+" |
150 |
+BDEPEND=">=dev-util/meson-0.49 |
151 |
+ >=dev-lang/python-3.5 |
152 |
+ doc? ( dev-python/docutils )" |
153 |
+ |
154 |
+src_prepare() { |
155 |
+ if use doc; then |
156 |
+ sed -i "s/doc_path = join.*/doc_path = join_paths(datadir, \'doc\', \'${P}\')/" \ |
157 |
+ meson.build || die "Failed changing doc_path" |
158 |
+ fi |
159 |
+ default |
160 |
+} |
161 |
+ |
162 |
+src_configure() { |
163 |
+ local emesonargs=( |
164 |
+ $(meson_use doc docs) |
165 |
+ $(meson_use lto b_lto) |
166 |
+ $(meson_use zip enable_zip) |
167 |
+ -Dstrip=false |
168 |
+ ) |
169 |
+ meson_src_configure |
170 |
+} |