* [gentoo-commits] repo/gentoo:master commit in: games-strategy/settlers-2-gold-data/
@ 2020-04-18 20:47 James Le Cuirot
0 siblings, 0 replies; 3+ messages in thread
From: James Le Cuirot @ 2020-04-18 20:47 UTC (permalink / raw
To: gentoo-commits
commit: 0d98dd4b89245e950248da54a88dfb050edee9a9
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 18 20:46:03 2020 +0000
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sat Apr 18 20:46:46 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d98dd4b
games-strategy/settlers-2-gold-data: New package
I don't have any actual CDs to test with so I've had to fudge some
testing using the GOG version. Let me know if it doesn't work.
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
games-strategy/settlers-2-gold-data/Manifest | 1 +
games-strategy/settlers-2-gold-data/metadata.xml | 8 ++
.../settlers-2-gold-data-0.ebuild | 96 ++++++++++++++++++++++
3 files changed, 105 insertions(+)
diff --git a/games-strategy/settlers-2-gold-data/Manifest b/games-strategy/settlers-2-gold-data/Manifest
new file mode 100644
index 00000000000..7cd6c4b7630
--- /dev/null
+++ b/games-strategy/settlers-2-gold-data/Manifest
@@ -0,0 +1 @@
+DIST setup_the_settlers_2_gold_1.5.1_(30319).exe 306652144 BLAKE2B d415d47e68c07b891c099d1a626f8b0641a49c5acd06953aa1280ddef2b4e7b360ee09739bae3b8489cf23c3e38e2a3d60311f360a0b3e5acf7884833380ae86 SHA512 743c2ab9eee293ec82178dac38c142366de4ef1a4c46517d30b457513bcbacf5f14d5309a2e357dd4785e439598266d90ce1c27e23165112e8f304a48f23d110
diff --git a/games-strategy/settlers-2-gold-data/metadata.xml b/games-strategy/settlers-2-gold-data/metadata.xml
new file mode 100644
index 00000000000..26079e608be
--- /dev/null
+++ b/games-strategy/settlers-2-gold-data/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/games-strategy/settlers-2-gold-data/settlers-2-gold-data-0.ebuild b/games-strategy/settlers-2-gold-data/settlers-2-gold-data-0.ebuild
new file mode 100644
index 00000000000..970f2869c44
--- /dev/null
+++ b/games-strategy/settlers-2-gold-data/settlers-2-gold-data-0.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+CDROM_OPTIONAL="yes"
+inherit cdrom estack
+
+# For GOG install
+MY_EXE="setup_the_settlers_2_gold_1.5.1_(30319).exe"
+
+DESCRIPTION="Data files for The Settlers II: Gold Edition"
+HOMEPAGE="https://www.gog.com/game/the_settlers_2_gold_edition"
+# There are non-English GOG downloads but RTTR uses its own translations.
+SRC_URI="!cdinstall? ( ${MY_EXE} )"
+LICENSE="!cdinstall? ( GOG-EULA ) cdinstall? ( all-rights-reserved )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+RESTRICT="bindist !cdinstall? ( fetch )"
+
+RDEPEND="
+ games-strategy/s25rttr
+"
+
+BDEPEND="
+ !cdinstall? ( app-arch/innoextract )
+"
+
+S="${WORKDIR}/target"
+
+pkg_nofetch() {
+ einfo "Please buy and download ${MY_EXE} from:"
+ einfo " https://www.gog.com/game/the_settlers_2_gold_edition"
+ einfo "and move it to your distfiles directory."
+ echo
+ einfo "If you wish to install from CD-ROM instead, please enable the cdinstall flag."
+}
+
+dotar() {
+ eshopts_push -s globstar nocaseglob nullglob
+
+ # Uppercase
+ # Avoid copying files twice
+ # Don't include *.ENG or *.GER files as they are unused by RTTR
+
+ tar c \
+ --mode=u+w \
+ --ignore-case \
+ --xform='s:.*:\U\0:x' \
+ --exclude-from=<(find "${S}"/ -type f -printf "%P\n" 2>/dev/null) \
+ {DATA,GFX}/**/*.{BBM,BOB,DAT,FNT,IDX,LBM,LST,RTX,WLD} \
+ | tar x -C "${S}"
+
+ assert "tar failed"
+ eshopts_pop
+}
+
+src_unpack() {
+ unset CDROM_SET
+ mkdir -p "${S}" || die
+
+ if use cdinstall; then
+ default
+ cdrom_get_cds S2/GFX/PICS/MISSION/AFRICA.LBM:GFX/PICS/MISSION/AFRICA.LBM:S2/GFX/PICS/SETUP010.LBM ::S2/S2/GFX/PICS/MISSION/AFRICA.LBM
+
+ case ${CDROM_SET} in
+ 0)
+ einfo "Found The Settlers II: Gold Edition CD"
+ cd "${CDROM_ROOT}"/[Ss]2 || die ;;
+ 1)
+ einfo "Found The Settlers II: Gold Edition installation"
+ cd "${CDROM_ROOT}" || die ;;
+ 2)
+ einfo "Found The Settlers II: Veni, Vidi, Vici CD"
+ cd "${CDROM_ROOT}/"[Ss]2 || die ;;
+ esac
+ else
+ einfo "Unpacking ${MY_EXE}."
+ innoextract -e -s -p1 -I DATA -I GFX -d gog "${DISTDIR}/${MY_EXE}" || die
+ cd gog || die
+ fi
+
+ dotar
+
+ if [[ ${CDROM_SET} == 2 ]]; then
+ cdrom_load_next_cd
+ einfo "Found The Settlers II: Mission CD"
+ cd "${CDROM_ROOT}"/[Ss]2/[Ss]2 || die
+ dotar
+ fi
+}
+
+src_install() {
+ insinto /usr/share/s25rttr/S2
+ doins -r *
+}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: games-strategy/settlers-2-gold-data/
@ 2020-04-24 9:31 James Le Cuirot
0 siblings, 0 replies; 3+ messages in thread
From: James Le Cuirot @ 2020-04-24 9:31 UTC (permalink / raw
To: gentoo-commits
commit: 682382a6baf115ec93898f5fc072b5149483a5b6
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 24 09:30:46 2020 +0000
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Fri Apr 24 09:30:46 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=682382a6
games-strategy/settlers-2-gold-data: Depend on >=innoextract-1.8
This is required by the newer GOG installer.
Closes: https://bugs.gentoo.org/719130
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
games-strategy/settlers-2-gold-data/settlers-2-gold-data-0.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/games-strategy/settlers-2-gold-data/settlers-2-gold-data-0.ebuild b/games-strategy/settlers-2-gold-data/settlers-2-gold-data-0.ebuild
index 970f2869c44..dc17a23f065 100644
--- a/games-strategy/settlers-2-gold-data/settlers-2-gold-data-0.ebuild
+++ b/games-strategy/settlers-2-gold-data/settlers-2-gold-data-0.ebuild
@@ -23,7 +23,7 @@ RDEPEND="
"
BDEPEND="
- !cdinstall? ( app-arch/innoextract )
+ !cdinstall? ( >=app-arch/innoextract-1.8 )
"
S="${WORKDIR}/target"
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: games-strategy/settlers-2-gold-data/
@ 2025-02-28 10:01 Arthur Zamarin
0 siblings, 0 replies; 3+ messages in thread
From: Arthur Zamarin @ 2025-02-28 10:01 UTC (permalink / raw
To: gentoo-commits
commit: ecac3d9a0252fcdb5f8f24ed1979098cc28e14c2
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 28 09:59:01 2025 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Feb 28 10:00:51 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ecac3d9a
games-strategy/settlers-2-gold-data: fix NonConsistentTarUsage [QA]
Issue: https://github.com/pkgcore/pkgcheck/issues/704
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
games-strategy/settlers-2-gold-data/settlers-2-gold-data-0.ebuild | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/games-strategy/settlers-2-gold-data/settlers-2-gold-data-0.ebuild b/games-strategy/settlers-2-gold-data/settlers-2-gold-data-0.ebuild
index dc17a23f065a..9f4e38c59670 100644
--- a/games-strategy/settlers-2-gold-data/settlers-2-gold-data-0.ebuild
+++ b/games-strategy/settlers-2-gold-data/settlers-2-gold-data-0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -43,13 +43,13 @@ dotar() {
# Avoid copying files twice
# Don't include *.ENG or *.GER files as they are unused by RTTR
- tar c \
+ tar -c -f - \
--mode=u+w \
--ignore-case \
--xform='s:.*:\U\0:x' \
--exclude-from=<(find "${S}"/ -type f -printf "%P\n" 2>/dev/null) \
{DATA,GFX}/**/*.{BBM,BOB,DAT,FNT,IDX,LBM,LST,RTX,WLD} \
- | tar x -C "${S}"
+ | tar -x -f - -C "${S}"
assert "tar failed"
eshopts_pop
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-02-28 10:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-28 10:01 [gentoo-commits] repo/gentoo:master commit in: games-strategy/settlers-2-gold-data/ Arthur Zamarin
-- strict thread matches above, loose matches on Subject: below --
2020-04-24 9:31 James Le Cuirot
2020-04-18 20:47 James Le Cuirot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox