commit: a7de2e2eba10f1e4fe1a8a040590c1d49079064a Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Tue Jan 28 06:30:33 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Jan 28 06:32:40 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7de2e2e
games-util/nml: add 9999 We added a live ebuild for OpenTTD in 479943c4245e7ef3ffe896f89d109340ff1225c4, do the same for its deps. Doesn't seem like we really need it for opensfx/opengfx though, they don't at least have changes in git since the last release and don't seem to change too much in general. Signed-off-by: Sam James <sam <AT> gentoo.org> games-util/nml/nml-0.7.5.ebuild | 10 ++++++++-- games-util/nml/{nml-0.7.5.ebuild => nml-9999.ebuild} | 18 ++++++++---------- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/games-util/nml/nml-0.7.5.ebuild b/games-util/nml/nml-0.7.5.ebuild index 6754dea0b4c2..51640ce948d1 100644 --- a/games-util/nml/nml-0.7.5.ebuild +++ b/games-util/nml/nml-0.7.5.ebuild @@ -11,11 +11,17 @@ inherit distutils-r1 DESCRIPTION="Compiler of NML files into GRF/NFO files" HOMEPAGE="https://github.com/OpenTTD/nml/" -SRC_URI="https://github.com/OpenTTD/nml/releases/download/${PV}/${P}.tar.gz" + +if [[ ${PV} == 9999 ]] ; then + EGIT_REPO_URI="https://github.com/OpenTTD/nml" + inherit git-r3 +else + SRC_URI="https://github.com/OpenTTD/nml/releases/download/${PV}/${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~x86" +fi LICENSE="GPL-2+" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~x86" RDEPEND=" $(python_gen_cond_dep ' diff --git a/games-util/nml/nml-0.7.5.ebuild b/games-util/nml/nml-9999.ebuild similarity index 78% copy from games-util/nml/nml-0.7.5.ebuild copy to games-util/nml/nml-9999.ebuild index 6754dea0b4c2..10c6473a006b 100644 --- a/games-util/nml/nml-0.7.5.ebuild +++ b/games-util/nml/nml-9999.ebuild @@ -11,11 +11,17 @@ inherit distutils-r1 DESCRIPTION="Compiler of NML files into GRF/NFO files" HOMEPAGE="https://github.com/OpenTTD/nml/" -SRC_URI="https://github.com/OpenTTD/nml/releases/download/${PV}/${P}.tar.gz" + +if [[ ${PV} == 9999 ]] ; then + EGIT_REPO_URI="https://github.com/OpenTTD/nml" + inherit git-r3 +else + SRC_URI="https://github.com/OpenTTD/nml/releases/download/${PV}/${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~x86" +fi LICENSE="GPL-2+" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~x86" RDEPEND=" $(python_gen_cond_dep ' @@ -24,14 +30,6 @@ RDEPEND=" ') " -PATCHES=( - "${FILESDIR}"/${PN}-0.7.5-regex-py313.patch -) - -src_prepare() { - default -} - python_test() { # the tests involving sprites seem to fail when running in the ebuild, # unless --no-cache is passed.