diff --git a/games-strategy/julius/ChangeLog b/games-strategy/julius/ChangeLog new file mode 100644 index 0000000..a40f6f2 --- /dev/null +++ b/games-strategy/julius/ChangeLog @@ -0,0 +1,5 @@ +*julius-1.3.1 (04 May 2020) + + 04 May 2020; +files/90julius.sh, +julius-1.3.1.ebuild, + +metadata.xml: + games-strategy/julius: new package diff --git a/games-strategy/julius/Manifest b/games-strategy/julius/Manifest new file mode 100644 index 0000000..e9c3dca --- /dev/null +++ b/games-strategy/julius/Manifest @@ -0,0 +1 @@ +DIST julius-1.3.1.tar.gz 8536096 SHA256 7ffbee8f05c6e4b03615853b366c4e3a7037e22c63929fdeae1bedb1f1ebea73 SHA512 380bb478c6f41cee9a23b93b2acc2d6f91dccfc70a27bed89fb03cb7db20f259a3eb64e7889b32cbaa1600ba38dd3a7fa3e0a6701de73e9da174f1167369fefe WHIRLPOOL 5ec6277d78ea45627a2af2b4438da6d7679a8908a3235fb0218c618bfd9d367bab4e172acc16bd6a2ae76cf9f566f8c41fe7c9372064e1245c88d24bd9678564 diff --git a/games-strategy/julius/files/90julius.sh b/games-strategy/julius/files/90julius.sh new file mode 100644 index 0000000..67e5096 --- /dev/null +++ b/games-strategy/julius/files/90julius.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +alias julius='julius ~/.cache/julius/app' diff --git a/games-strategy/julius/julius-1.3.1.ebuild b/games-strategy/julius/julius-1.3.1.ebuild new file mode 100644 index 0000000..325c879 --- /dev/null +++ b/games-strategy/julius/julius-1.3.1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake-utils + +DESCRIPTION="An 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="GPL-2 LGPL-2.1 MIT CC-BY-SA-3.0 ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=" + media-libs/libpng + media-libs/libsdl2 + media-libs/sdl2-mixer +" +RDEPEND="" + +src_compile() { + mkdir build + pushd build > /dev/null + cmake .. && emake + popd > /dev/null +} + +src_test() { + sed -i -e "s: && cd \.\. && \./coverage.sh::" runtests.sh || die + ./runtests.sh || die "test phase failed" +} + +src_install() { + dobin build/julius + insinto /etc/profile.d + doins "${FILESDIR}"/90julius.sh +} + +pkg_postinst() { + ewarn "Julius requires you to download the original Caesar 3 resources." + ewarn + ewarn "You need to obtain these files from a vendor of the proprietary software." + ewarn "You will then need to copy the 'app' directory into '~/.cache/julius/'." + ewarn "One way to obtain this directory is to download the GOG Cesar 3 edition." + ewarn "You can then produce this directory by running:" + ewarn " innoextract -m setup_caesar3_2.0.0.9.exe" +} diff --git a/games-strategy/julius/metadata.xml b/games-strategy/julius/metadata.xml new file mode 100644 index 0000000..399b596 --- /dev/null +++ b/games-strategy/julius/metadata.xml @@ -0,0 +1,21 @@ + + + + + chr@chymera.eu + Horea Christian + + + The aim of this project is to create an open-source version of + Caesar 3, with the same logic as the original, but with some UI + enhancements, that is able to be played on multiple platforms. + The same logic means that the saved games are 100% compatible, + and any gameplay bugs present in the original Caesar 3 game will + also be present in Julius. It is meant as a drop-in replacement + for Caesar 3, with the same look and feel, so there will be no + major UI changes. + + + bvschaik/julius + +