summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHorea Christian <chr@chymera.eu>2021-07-19 17:44:35 -0400
committerIonen Wolkens <ionen@gentoo.org>2021-07-26 12:58:15 -0400
commit0d416d67f7bb8da223a5861d56a5e19eede338b5 (patch)
tree16dc6c73369f6a3e9d35c2d249fb4261c87a8bdb /games-strategy/julius
parentsys-cluster/kube-scheduler: stabilize 1.21.2 on amd64 (diff)
downloadgentoo-0d416d67f7bb8da223a5861d56a5e19eede338b5.tar.gz
gentoo-0d416d67f7bb8da223a5861d56a5e19eede338b5.tar.bz2
gentoo-0d416d67f7bb8da223a5861d56a5e19eede338b5.zip
games-strategy/julius: version bump 1.6.0
Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Horea Christian <chr@chymera.eu> Closes: https://github.com/gentoo/gentoo/pull/21720 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'games-strategy/julius')
-rw-r--r--games-strategy/julius/Manifest1
-rw-r--r--games-strategy/julius/files/README.gentoo7
-rw-r--r--games-strategy/julius/julius-1.6.0.ebuild44
3 files changed, 52 insertions, 0 deletions
diff --git a/games-strategy/julius/Manifest b/games-strategy/julius/Manifest
index 1e31cd76e50..34cd813e85f 100644
--- a/games-strategy/julius/Manifest
+++ b/games-strategy/julius/Manifest
@@ -1 +1,2 @@
DIST julius-1.4.1.tar.gz 8592785 BLAKE2B 8eb91522fccdee33600b02de766727beb19f138c0f695eb92aaa77ea2f25ec293906d0c75d31d42159097a12317ba38b22c01e7edf722670f51fe56d625d9ae7 SHA512 8488cee4a229299fd771f7ebddf076888b2e11458b2edbb6058b29b1f7e79d372ec2f913df3afacd8191551ba692a900508e64661ead1029916e28f356f79f7b
+DIST julius-1.6.0.tar.gz 6884324 BLAKE2B 142f05b8f7165e59678fc56fcdf9e2c00aea880540e16fedc627ed40afb4ce96511d99f0cd99f99997d8d66f776e6d847cc66256fafde771345948ba097b940e SHA512 c21256b9f126011b0961411209d354e713e6de44a30c190a7de5e0a702636961ad0775beb171b17767ec70e334e6101f9c1ad26df6860b4f4d59d74510083905
diff --git a/games-strategy/julius/files/README.gentoo b/games-strategy/julius/files/README.gentoo
new file mode 100644
index 00000000000..1f086719687
--- /dev/null
+++ b/games-strategy/julius/files/README.gentoo
@@ -0,0 +1,7 @@
+Julius requires you to download the original Caesar 3 resources.
+
+You need to obtain these files from a vendor of the proprietary software.
+You will then need to copy the 'app' directory into '~/.local/share/julius/app'.
+One way to obtain this directory is to download the GOG Caesar 3 edition.
+You can then produce this directory by installing app-arch/innoextract and running:
+ innoextract -m setup_caesar3_2.0.0.9.exe
diff --git a/games-strategy/julius/julius-1.6.0.ebuild b/games-strategy/julius/julius-1.6.0.ebuild
new file mode 100644
index 00000000000..31fae63d429
--- /dev/null
+++ b/games-strategy/julius/julius-1.6.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit xdg cmake readme.gentoo-r1
+
+DESCRIPTION="Feature-faithful open source re-implementation of Caesar III"
+HOMEPAGE="https://github.com/bvschaik/julius"
+SRC_URI="https://github.com/bvschaik/julius/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+
+DEPEND="
+ media-libs/libpng:=
+ media-libs/libsdl2[joystick,video,sound]
+ media-libs/sdl2-mixer
+"
+RDEPEND="
+ ${DEPEND}
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.4.1-rename.patch
+)
+
+src_install() {
+ cmake_src_install
+ dodir /usr/libexec
+ mv "${ED}/usr/bin/julius-game" "${ED}/usr/libexec/julius-game" ||
+ die "Failed to rename executable (required to set default resources location)."
+ newbin - julius-game <<-EOF
+ #!/usr/bin/env sh
+ exec "${EPREFIX}/usr/libexec/julius-game" "\${1:-\${HOME}/.local/share/julius/app}"
+ EOF
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+ readme.gentoo_print_elog
+}