From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-util/grfcodec/
Date: Tue, 28 Jan 2025 06:38:57 +0000 (UTC) [thread overview]
Message-ID: <1738046279.0f624ba1b451b3c9eb6a7603d15521e485697d04.sam@gentoo> (raw)
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
+}
next reply other threads:[~2025-01-28 6:39 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-28 6:38 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-01-28 7:01 [gentoo-commits] repo/gentoo:master commit in: games-util/grfcodec/ Sam James
2024-11-10 9:13 David Seifert
2022-12-19 7:23 Ionen Wolkens
2021-05-07 18:56 Sergei Trofimovich
2021-05-07 14:38 Sam James
2021-05-04 7:19 Sergei Trofimovich
2020-11-26 21:16 Conrad Kostecki
2018-05-26 9:55 David Seifert
2017-12-21 1:57 David Seifert
2017-10-03 8:25 Sergei Trofimovich
2017-09-30 6:03 Michael Palimaka
2017-05-05 12:35 Lars Wendler
2017-01-20 16:21 David Seifert
2016-04-05 1:15 Michael Sterrett
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1738046279.0f624ba1b451b3c9eb6a7603d15521e485697d04.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox