1 |
commit: 0d416d67f7bb8da223a5861d56a5e19eede338b5 |
2 |
Author: Horea Christian <chr <AT> chymera <DOT> eu> |
3 |
AuthorDate: Mon Jul 19 21:44:35 2021 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jul 26 16:58:15 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d416d67 |
7 |
|
8 |
games-strategy/julius: version bump 1.6.0 |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
11 |
Signed-off-by: Horea Christian <chr <AT> chymera.eu> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/21720 |
13 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
14 |
|
15 |
games-strategy/julius/Manifest | 1 + |
16 |
games-strategy/julius/files/README.gentoo | 7 +++++ |
17 |
games-strategy/julius/julius-1.6.0.ebuild | 44 +++++++++++++++++++++++++++++++ |
18 |
3 files changed, 52 insertions(+) |
19 |
|
20 |
diff --git a/games-strategy/julius/Manifest b/games-strategy/julius/Manifest |
21 |
index 1e31cd76e50..34cd813e85f 100644 |
22 |
--- a/games-strategy/julius/Manifest |
23 |
+++ b/games-strategy/julius/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
DIST julius-1.4.1.tar.gz 8592785 BLAKE2B 8eb91522fccdee33600b02de766727beb19f138c0f695eb92aaa77ea2f25ec293906d0c75d31d42159097a12317ba38b22c01e7edf722670f51fe56d625d9ae7 SHA512 8488cee4a229299fd771f7ebddf076888b2e11458b2edbb6058b29b1f7e79d372ec2f913df3afacd8191551ba692a900508e64661ead1029916e28f356f79f7b |
26 |
+DIST julius-1.6.0.tar.gz 6884324 BLAKE2B 142f05b8f7165e59678fc56fcdf9e2c00aea880540e16fedc627ed40afb4ce96511d99f0cd99f99997d8d66f776e6d847cc66256fafde771345948ba097b940e SHA512 c21256b9f126011b0961411209d354e713e6de44a30c190a7de5e0a702636961ad0775beb171b17767ec70e334e6101f9c1ad26df6860b4f4d59d74510083905 |
27 |
|
28 |
diff --git a/games-strategy/julius/files/README.gentoo b/games-strategy/julius/files/README.gentoo |
29 |
new file mode 100644 |
30 |
index 00000000000..1f086719687 |
31 |
--- /dev/null |
32 |
+++ b/games-strategy/julius/files/README.gentoo |
33 |
@@ -0,0 +1,7 @@ |
34 |
+Julius requires you to download the original Caesar 3 resources. |
35 |
+ |
36 |
+You need to obtain these files from a vendor of the proprietary software. |
37 |
+You will then need to copy the 'app' directory into '~/.local/share/julius/app'. |
38 |
+One way to obtain this directory is to download the GOG Caesar 3 edition. |
39 |
+You can then produce this directory by installing app-arch/innoextract and running: |
40 |
+ innoextract -m setup_caesar3_2.0.0.9.exe |
41 |
|
42 |
diff --git a/games-strategy/julius/julius-1.6.0.ebuild b/games-strategy/julius/julius-1.6.0.ebuild |
43 |
new file mode 100644 |
44 |
index 00000000000..31fae63d429 |
45 |
--- /dev/null |
46 |
+++ b/games-strategy/julius/julius-1.6.0.ebuild |
47 |
@@ -0,0 +1,44 @@ |
48 |
+# Copyright 1999-2021 Gentoo Authors |
49 |
+# Distributed under the terms of the GNU General Public License v2 |
50 |
+ |
51 |
+EAPI=7 |
52 |
+ |
53 |
+inherit xdg cmake readme.gentoo-r1 |
54 |
+ |
55 |
+DESCRIPTION="Feature-faithful open source re-implementation of Caesar III" |
56 |
+HOMEPAGE="https://github.com/bvschaik/julius" |
57 |
+SRC_URI="https://github.com/bvschaik/julius/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
58 |
+ |
59 |
+LICENSE="AGPL-3" |
60 |
+SLOT="0" |
61 |
+KEYWORDS="~amd64 ~arm64" |
62 |
+ |
63 |
+DEPEND=" |
64 |
+ media-libs/libpng:= |
65 |
+ media-libs/libsdl2[joystick,video,sound] |
66 |
+ media-libs/sdl2-mixer |
67 |
+" |
68 |
+RDEPEND=" |
69 |
+ ${DEPEND} |
70 |
+" |
71 |
+ |
72 |
+PATCHES=( |
73 |
+ "${FILESDIR}"/${PN}-1.4.1-rename.patch |
74 |
+) |
75 |
+ |
76 |
+src_install() { |
77 |
+ cmake_src_install |
78 |
+ dodir /usr/libexec |
79 |
+ mv "${ED}/usr/bin/julius-game" "${ED}/usr/libexec/julius-game" || |
80 |
+ die "Failed to rename executable (required to set default resources location)." |
81 |
+ newbin - julius-game <<-EOF |
82 |
+ #!/usr/bin/env sh |
83 |
+ exec "${EPREFIX}/usr/libexec/julius-game" "\${1:-\${HOME}/.local/share/julius/app}" |
84 |
+ EOF |
85 |
+ readme.gentoo_create_doc |
86 |
+} |
87 |
+ |
88 |
+pkg_postinst() { |
89 |
+ xdg_pkg_postinst |
90 |
+ readme.gentoo_print_elog |
91 |
+} |