commit: e535aaaaefe1e99e7235dc1ba2dc2fa8277f04a8
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 26 08:54:40 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jan 26 08:55:37 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e535aaaa
games-simulation/corsix-th: add live ebuild
Signed-off-by: Sam James <sam <AT> gentoo.org>
games-simulation/corsix-th/corsix-th-0.68.0.ebuild | 16 +++++++++++-----
.../{corsix-th-0.68.0.ebuild => corsix-th-9999.ebuild} | 16 +++++++++++-----
2 files changed, 22 insertions(+), 10 deletions(-)
diff --git a/games-simulation/corsix-th/corsix-th-0.68.0.ebuild
b/games-simulation/corsix-th/corsix-th-0.68.0.ebuild
index 257dadab1230..75849743f032 100644
--- a/games-simulation/corsix-th/corsix-th-0.68.0.ebuild
+++ b/games-simulation/corsix-th/corsix-th-0.68.0.ebuild
@@ -13,14 +13,20 @@ MY_P="${MY_PN}-${MY_PV}"
DESCRIPTION="Open source clone of Theme Hospital"
HOMEPAGE="https://corsixth.com"
-SRC_URI="https://github.com/${MY_PN}/${MY_PN}/archive/v${MY_PV}.tar.gz ->
${P}.tar.gz"
-S="${WORKDIR}/${MY_P}"
+if [[ ${PV} == 9999 ]] ; then
+ EGIT_REPO_URI="https://github.com/${MY_PN}/${MY_PN}"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/${MY_PN}/${MY_PN}/archive/v${MY_PV}.tar.gz
-> ${P}.tar.gz"
+ S="${WORKDIR}/${MY_P}"
+
+ if [[ ${PV} != *_beta* && ${PV} != *_rc* ]] ; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+ fi
+fi
LICENSE="MIT"
SLOT="0"
-if [[ ${PV} != *_beta* && ${PV} != *_rc* ]] ; then
- KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
-fi
IUSE="doc +midi +sound test tools +truetype +videos"
RESTRICT="!test? ( test )"
REQUIRED_USE="${LUA_REQUIRED_USE}"
diff --git a/games-simulation/corsix-th/corsix-th-0.68.0.ebuild
b/games-simulation/corsix-th/corsix-th-9999.ebuild
similarity index 86%
copy from games-simulation/corsix-th/corsix-th-0.68.0.ebuild
copy to games-simulation/corsix-th/corsix-th-9999.ebuild
index 257dadab1230..75849743f032 100644
--- a/games-simulation/corsix-th/corsix-th-0.68.0.ebuild
+++ b/games-simulation/corsix-th/corsix-th-9999.ebuild
@@ -13,14 +13,20 @@ MY_P="${MY_PN}-${MY_PV}"
DESCRIPTION="Open source clone of Theme Hospital"
HOMEPAGE="https://corsixth.com"
-SRC_URI="https://github.com/${MY_PN}/${MY_PN}/archive/v${MY_PV}.tar.gz ->
${P}.tar.gz"
-S="${WORKDIR}/${MY_P}"
+if [[ ${PV} == 9999 ]] ; then
+ EGIT_REPO_URI="https://github.com/${MY_PN}/${MY_PN}"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/${MY_PN}/${MY_PN}/archive/v${MY_PV}.tar.gz
-> ${P}.tar.gz"
+ S="${WORKDIR}/${MY_P}"
+
+ if [[ ${PV} != *_beta* && ${PV} != *_rc* ]] ; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+ fi
+fi
LICENSE="MIT"
SLOT="0"
-if [[ ${PV} != *_beta* && ${PV} != *_rc* ]] ; then
- KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
-fi
IUSE="doc +midi +sound test tools +truetype +videos"
RESTRICT="!test? ( test )"
REQUIRED_USE="${LUA_REQUIRED_USE}"