commit: 0f624ba1b451b3c9eb6a7603d15521e485697d04 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Tue Jan 28 06:37:10 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Jan 28 06:37:59 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f624ba1
games-util/grfcodec: 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/grfcodec/grfcodec-6.1.0-r1.ebuild | 25 ++++++++++++++---- games-util/grfcodec/grfcodec-9999.ebuild | 38 ++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+), 5 deletions(-) diff --git a/games-util/grfcodec/grfcodec-6.1.0-r1.ebuild b/games-util/grfcodec/grfcodec-6.1.0-r1.ebuild index ce2b664d42de..ccdef8ea78af 100644 --- a/games-util/grfcodec/grfcodec-6.1.0-r1.ebuild +++ b/games-util/grfcodec/grfcodec-6.1.0-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -7,15 +7,24 @@ inherit cmake DESCRIPTION="A suite of programs to modify openttd/Transport Tycoon Deluxe's GRF files" HOMEPAGE="https://github.com/OpenTTD/grfcodec" -SRC_URI="https://github.com/OpenTTD/grfcodec/releases/download/${PV}/${P}-source.tar.xz" + +if [[ ${PV} == 9999 ]] ; then + EGIT_REPO_URI="https://github.com/OpenTTD/grfcodec" + inherit git-r3 +else + SRC_URI="https://github.com/OpenTTD/grfcodec/releases/download/${PV}/${P}-source.tar.xz" + + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" +fi LICENSE="GPL-2+" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" RDEPEND="media-libs/libpng:=" -DEPEND="${RDEPEND} - dev-libs/boost" +DEPEND=" + ${RDEPEND} + dev-libs/boost +" PATCHES=( "${FILESDIR}"/${PN}-6.1.0-cmake-install.patch @@ -23,3 +32,9 @@ PATCHES=( # Bug #894648 "${FILESDIR}"/${PN}-6.0.6_p20230811-no-fortify-source.patch ) + +src_install() { + cmake_src_install + + rm "${ED}"/usr/share/doc/${PF}/COPYING || die +} diff --git a/games-util/grfcodec/grfcodec-9999.ebuild b/games-util/grfcodec/grfcodec-9999.ebuild new file mode 100644 index 000000000000..ef7e76ab4d14 --- /dev/null +++ b/games-util/grfcodec/grfcodec-9999.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="A suite of programs to modify openttd/Transport Tycoon Deluxe's GRF files" +HOMEPAGE="https://github.com/OpenTTD/grfcodec" + +if [[ ${PV} == 9999 ]] ; then + EGIT_REPO_URI="https://github.com/OpenTTD/grfcodec" + inherit git-r3 +else + SRC_URI="https://github.com/OpenTTD/grfcodec/releases/download/${PV}/${P}-source.tar.xz" + + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" +fi + +LICENSE="GPL-2+" +SLOT="0" + +RDEPEND="media-libs/libpng:=" +DEPEND=" + ${RDEPEND} + dev-libs/boost +" + +PATCHES=( + # Bug #894648 + "${FILESDIR}"/${PN}-6.0.6_p20230811-no-fortify-source.patch +) + +src_install() { + cmake_src_install + + rm "${ED}"/usr/share/doc/${PF}/COPYING || die +}
