1 |
commit: 61fb218f29c5fa928c7e4912e29c803c959d3b62 |
2 |
Author: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com> |
3 |
AuthorDate: Tue Jun 2 10:32:01 2020 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
5 |
CommitDate: Tue Jun 2 10:32:01 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=61fb218f |
7 |
|
8 |
games-action/taisei: New package. |
9 |
|
10 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
11 |
Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com> |
12 |
|
13 |
games-action/taisei/Manifest | 1 + |
14 |
games-action/taisei/metadata.xml | 14 ++++++++ |
15 |
games-action/taisei/taisei-1.3.1.ebuild | 57 +++++++++++++++++++++++++++++++++ |
16 |
games-action/taisei/taisei-9999.ebuild | 57 +++++++++++++++++++++++++++++++++ |
17 |
4 files changed, 129 insertions(+) |
18 |
|
19 |
diff --git a/games-action/taisei/Manifest b/games-action/taisei/Manifest |
20 |
new file mode 100644 |
21 |
index 0000000..f1112cb |
22 |
--- /dev/null |
23 |
+++ b/games-action/taisei/Manifest |
24 |
@@ -0,0 +1 @@ |
25 |
+DIST taisei-v1.3.1.tar.xz 70763196 BLAKE2B ca1901ba0205f6771c087ee70222ceaa3c406a1c632a5f46df1fe4fe493c89af8b587e397551777cd956ab73b5104450356303d0ea0cb8d5cd1b6723ceb1d648 SHA512 5e6f364e67717091041a30103bf117bb5d7a6be76d3d9499b13e36fc190be8c2a0e7ceb582e1d106aa0c1acbb6e39b99a4873a0885af1ec2117ff6ff08e14e3c |
26 |
|
27 |
diff --git a/games-action/taisei/metadata.xml b/games-action/taisei/metadata.xml |
28 |
new file mode 100644 |
29 |
index 0000000..b3e78d8 |
30 |
--- /dev/null |
31 |
+++ b/games-action/taisei/metadata.xml |
32 |
@@ -0,0 +1,14 @@ |
33 |
+<?xml version="1.0" encoding="UTF-8"?> |
34 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
35 |
+<pkgmetadata> |
36 |
+ <maintainer type="person"> |
37 |
+ <email>o.freyermuth@××××××××××.com</email> |
38 |
+ <name>Oliver Freyermuth</name> |
39 |
+ </maintainer> |
40 |
+ <upstream> |
41 |
+ <remote-id type="github">taisei-project/taisei</remote-id> |
42 |
+ </upstream> |
43 |
+ <use> |
44 |
+ <flag name="lto">Enable link time optimization</flag> |
45 |
+ </use> |
46 |
+</pkgmetadata> |
47 |
|
48 |
diff --git a/games-action/taisei/taisei-1.3.1.ebuild b/games-action/taisei/taisei-1.3.1.ebuild |
49 |
new file mode 100644 |
50 |
index 0000000..27ed838 |
51 |
--- /dev/null |
52 |
+++ b/games-action/taisei/taisei-1.3.1.ebuild |
53 |
@@ -0,0 +1,57 @@ |
54 |
+# Copyright 1999-2020 Gentoo Authors |
55 |
+# Distributed under the terms of the GNU General Public License v2 |
56 |
+ |
57 |
+EAPI=7 |
58 |
+ |
59 |
+if [[ ${PV} == *9999* ]]; then |
60 |
+ inherit git-r3 |
61 |
+ KEYWORDS="" |
62 |
+ EGIT_REPO_URI="https://github.com/taisei-project/taisei.git" |
63 |
+else |
64 |
+ SRC_URI="https://github.com/taisei-project/${PN}/releases/download/v${PV}/${PN}-v${PV}.tar.xz" |
65 |
+ KEYWORDS="~amd64 ~x86" |
66 |
+ S="${WORKDIR}/${PN}-v${PV}" |
67 |
+fi |
68 |
+ |
69 |
+inherit meson |
70 |
+ |
71 |
+DESCRIPTION="A free and open-source Touhou Project clone and fangame" |
72 |
+HOMEPAGE="https://taisei-project.org/" |
73 |
+ |
74 |
+LICENSE="MIT CC-BY-4.0 CC0-1.0 public-domain" |
75 |
+SLOT="0" |
76 |
+IUSE="doc +lto" |
77 |
+ |
78 |
+RDEPEND=" |
79 |
+ >=media-libs/libsdl2-2.0.6 |
80 |
+ >=media-libs/sdl2-mixer-2.0.4 |
81 |
+ media-libs/freetype:2 |
82 |
+ >=media-libs/libpng-1.5 |
83 |
+ >=media-libs/libwebp-0.5 |
84 |
+ >=dev-libs/libzip-1.2 |
85 |
+ media-libs/opusfile |
86 |
+ dev-libs/openssl |
87 |
+ media-libs/shaderc |
88 |
+ dev-util/spirv-tools" |
89 |
+DEPEND="${RDEPEND}" |
90 |
+BDEPEND=">=dev-util/meson-0.49 |
91 |
+ >=dev-lang/python-3.5 |
92 |
+ doc? ( dev-python/docutils )" |
93 |
+ |
94 |
+src_prepare() { |
95 |
+ if use doc; then |
96 |
+ # Fixup install path for documentation. |
97 |
+ sed -i "s/doc_path = join_paths(datadir, 'doc', 'taisei')/doc_path = join_paths(datadir, 'doc', '"${P}"')/" meson.build || die |
98 |
+ fi |
99 |
+ default |
100 |
+} |
101 |
+ |
102 |
+src_configure() { |
103 |
+ local emesonargs=( |
104 |
+ $(meson_use doc docs) |
105 |
+ $(meson_use lto b_lto) |
106 |
+ # Stips binary by default otherwise. |
107 |
+ -Dstrip=false |
108 |
+ ) |
109 |
+ meson_src_configure |
110 |
+} |
111 |
|
112 |
diff --git a/games-action/taisei/taisei-9999.ebuild b/games-action/taisei/taisei-9999.ebuild |
113 |
new file mode 100644 |
114 |
index 0000000..27ed838 |
115 |
--- /dev/null |
116 |
+++ b/games-action/taisei/taisei-9999.ebuild |
117 |
@@ -0,0 +1,57 @@ |
118 |
+# Copyright 1999-2020 Gentoo Authors |
119 |
+# Distributed under the terms of the GNU General Public License v2 |
120 |
+ |
121 |
+EAPI=7 |
122 |
+ |
123 |
+if [[ ${PV} == *9999* ]]; then |
124 |
+ inherit git-r3 |
125 |
+ KEYWORDS="" |
126 |
+ EGIT_REPO_URI="https://github.com/taisei-project/taisei.git" |
127 |
+else |
128 |
+ SRC_URI="https://github.com/taisei-project/${PN}/releases/download/v${PV}/${PN}-v${PV}.tar.xz" |
129 |
+ KEYWORDS="~amd64 ~x86" |
130 |
+ S="${WORKDIR}/${PN}-v${PV}" |
131 |
+fi |
132 |
+ |
133 |
+inherit meson |
134 |
+ |
135 |
+DESCRIPTION="A free and open-source Touhou Project clone and fangame" |
136 |
+HOMEPAGE="https://taisei-project.org/" |
137 |
+ |
138 |
+LICENSE="MIT CC-BY-4.0 CC0-1.0 public-domain" |
139 |
+SLOT="0" |
140 |
+IUSE="doc +lto" |
141 |
+ |
142 |
+RDEPEND=" |
143 |
+ >=media-libs/libsdl2-2.0.6 |
144 |
+ >=media-libs/sdl2-mixer-2.0.4 |
145 |
+ media-libs/freetype:2 |
146 |
+ >=media-libs/libpng-1.5 |
147 |
+ >=media-libs/libwebp-0.5 |
148 |
+ >=dev-libs/libzip-1.2 |
149 |
+ media-libs/opusfile |
150 |
+ dev-libs/openssl |
151 |
+ media-libs/shaderc |
152 |
+ dev-util/spirv-tools" |
153 |
+DEPEND="${RDEPEND}" |
154 |
+BDEPEND=">=dev-util/meson-0.49 |
155 |
+ >=dev-lang/python-3.5 |
156 |
+ doc? ( dev-python/docutils )" |
157 |
+ |
158 |
+src_prepare() { |
159 |
+ if use doc; then |
160 |
+ # Fixup install path for documentation. |
161 |
+ sed -i "s/doc_path = join_paths(datadir, 'doc', 'taisei')/doc_path = join_paths(datadir, 'doc', '"${P}"')/" meson.build || die |
162 |
+ fi |
163 |
+ default |
164 |
+} |
165 |
+ |
166 |
+src_configure() { |
167 |
+ local emesonargs=( |
168 |
+ $(meson_use doc docs) |
169 |
+ $(meson_use lto b_lto) |
170 |
+ # Stips binary by default otherwise. |
171 |
+ -Dstrip=false |
172 |
+ ) |
173 |
+ meson_src_configure |
174 |
+} |