1 |
commit: ff87f1648fae8dc64120e8558166d172a0ded747 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 1 11:59:10 2020 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 1 11:59:51 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff87f164 |
7 |
|
8 |
games-engines/devilutionx: Bump to version 1.0.0 |
9 |
|
10 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
games-engines/devilutionx/Manifest | 1 + |
14 |
games-engines/devilutionx/devilutionx-1.0.0.ebuild | 60 ++++++++++++++++++++++ |
15 |
2 files changed, 61 insertions(+) |
16 |
|
17 |
diff --git a/games-engines/devilutionx/Manifest b/games-engines/devilutionx/Manifest |
18 |
new file mode 100644 |
19 |
index 00000000000..dac3464a12f |
20 |
--- /dev/null |
21 |
+++ b/games-engines/devilutionx/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST devilutionx-1.0.0.tar.gz 1798349 BLAKE2B f2e49e92d8607974dce25ab4de589f01d5603cec4f96e10e55dbdd55b0352ce46d397c91290812dcd8faaa5794c3ab5b23b922098cab9e44dcaf6d049164f6ae SHA512 65eed32e03051880e2e859984911a76c6aae1853cb57491a04090026d6df9cdadf839a0dbb5433691ed1c83cfa7403c72fede38890d494ffd4eff6bef9030c37 |
24 |
|
25 |
diff --git a/games-engines/devilutionx/devilutionx-1.0.0.ebuild b/games-engines/devilutionx/devilutionx-1.0.0.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..6d3bda7a2fb |
28 |
--- /dev/null |
29 |
+++ b/games-engines/devilutionx/devilutionx-1.0.0.ebuild |
30 |
@@ -0,0 +1,60 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+# Sometimes build with ninja fails. |
37 |
+# Please check occasionally if we can revert back to ninja. |
38 |
+# Latest known issue: |
39 |
+# https://github.com/diasurgical/devilutionX/issues/490 |
40 |
+CMAKE_MAKEFILE_GENERATOR="emake" |
41 |
+ |
42 |
+inherit cmake desktop |
43 |
+ |
44 |
+DESCRIPTION="Diablo engine for modern operating systems" |
45 |
+HOMEPAGE="https://github.com/diasurgical/devilutionX" |
46 |
+if [[ "${PV}" == 9999 ]] ; then |
47 |
+ inherit git-r3 |
48 |
+ EGIT_REPO_URI="https://github.com/diasurgical/devilutionX.git" |
49 |
+else |
50 |
+ SRC_URI="https://github.com/diasurgical/devilutionX/archive/${PV}.tar.gz -> ${P}.tar.gz" |
51 |
+ KEYWORDS="~amd64 ~x86" |
52 |
+ S="${WORKDIR}/devilutionX-${PV}" |
53 |
+fi |
54 |
+ |
55 |
+LICENSE="public-domain" |
56 |
+SLOT="0" |
57 |
+ |
58 |
+IUSE="debug" |
59 |
+ |
60 |
+RDEPEND=" |
61 |
+ dev-libs/libsodium |
62 |
+ media-libs/libsdl2[haptic] |
63 |
+ media-libs/sdl2-mixer |
64 |
+ media-libs/sdl2-ttf |
65 |
+" |
66 |
+DEPEND="${RDEPEND}" |
67 |
+BDEPEND=" |
68 |
+ virtual/pkgconfig |
69 |
+" |
70 |
+ |
71 |
+src_configure() { |
72 |
+ local mycmakeargs=( |
73 |
+ -DBINARY_RELEASE=ON |
74 |
+ -DDEBUG="$(usex debug)" |
75 |
+ ) |
76 |
+ cmake_src_configure |
77 |
+} |
78 |
+ |
79 |
+src_install() { |
80 |
+ dobin "${BUILD_DIR}/${PN}" |
81 |
+ make_desktop_entry ${PN} "Diablo devolved" |
82 |
+} |
83 |
+ |
84 |
+pkg_postinst() { |
85 |
+ einfo "In order to play the game you need to install the file" |
86 |
+ einfo " diabdat.mpq" |
87 |
+ einfo "from the original game CD into the following directory:" |
88 |
+ einfo " \${HOME}/.local/share/diasurgical/devilution/" |
89 |
+ einfo "and make sure it's writeable (chmod u+w)." |
90 |
+} |