From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-strategy/ja2-stracciatella/
Date: Fri, 22 Jan 2021 01:41:48 +0000 (UTC) [thread overview]
Message-ID: <1611279699.0b81a863d0b5a1a72a259045aa5e0dd7dea9ec2d.sam@gentoo> (raw)
commit: 0b81a863d0b5a1a72a259045aa5e0dd7dea9ec2d
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 22 01:17:47 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jan 22 01:41:39 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b81a863
games-strategy/ja2-stracciatella: misc fixes
* Call cmake_src_prepare
* Style changes
* Drop CC-BY-NC-2.0 for now (seems to be public-domain instead?)
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../ja2-stracciatella-0.17.0.ebuild | 48 +++++++++++-----------
1 file changed, 25 insertions(+), 23 deletions(-)
diff --git a/games-strategy/ja2-stracciatella/ja2-stracciatella-0.17.0.ebuild b/games-strategy/ja2-stracciatella/ja2-stracciatella-0.17.0.ebuild
index 8ea06434f52..47d0a6964c2 100644
--- a/games-strategy/ja2-stracciatella/ja2-stracciatella-0.17.0.ebuild
+++ b/games-strategy/ja2-stracciatella/ja2-stracciatella-0.17.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -91,43 +91,48 @@ winapi-i686-pc-windows-gnu-0.4.0
winapi-x86_64-pc-windows-gnu-0.4.0
"
-inherit cargo cmake xdg-utils
+inherit cargo cmake xdg
DESCRIPTION="An improved, cross-platform, stable Jagged Alliance 2 runtime"
HOMEPAGE="https://github.com/ja2-stracciatella/"
-SRC_URI="https://github.com/ja2-stracciatella/ja2-stracciatella/releases/tag/v${PV}.tar.gz -> ${P}.tar.gz
+SRC_URI="https://github.com/ja2-stracciatella/ja2-stracciatella/archive/v${PV}.tar.gz -> ${P}.tar.gz
editor? ( https://github.com/ja2-stracciatella/free-ja2-resources/releases/download/v1/editor.slf -> ${P}-editor.slf )
"
SRC_URI+=" $(cargo_crate_uris ${CRATES})"
-LICENSE="CC-BY-NC-2.0 SFI-SCLA"
+LICENSE="public-domain SFI-SCLA"
SLOT="0"
KEYWORDS="~amd64"
IUSE="cdinstall editor ru-gold test"
+# Run with ja2 --unittest
+# Needs data files?
RESTRICT="test"
-
-DEPEND="media-libs/libsdl2[X,sound,video]
- !~media-libs/libsdl2-2.0.6
- >=dev-lang/rust-1.40.0
- >=x11-libs/fltk-1.3.5[opengl]
- >=dev-cpp/string-theory-3.1
- >=dev-games/libsmacker-1.1.1
- >=dev-libs/rapidjson-1.1.0
-"
-
-BDEPEND="
- test? ( >=dev-cpp/gtest-1.9.0_pre20190607 )
+#RESTRICT="!test? ( test )"
+
+DEPEND="
+ media-libs/libsdl2[X,sound,video]
+ !~media-libs/libsdl2-2.0.6
+ >=virtual/rust-1.40.0
+ >=x11-libs/fltk-1.3.5[opengl]
+ >=dev-cpp/string-theory-3.1
+ >=dev-games/libsmacker-1.1.1
+ >=dev-libs/rapidjson-1.1.0
"
-
-RDEPEND="${DEPEND}
+RDEPEND="
+ ${DEPEND}
cdinstall? ( games-strategy/ja2-stracciatella-data )
"
+DEPEND+="test? ( >=dev-cpp/gtest-1.9.0_pre20190607 )"
LANGS="l10n_de +l10n_en l10n_fr l10n_it l10n_nl l10n_pl l10n_ru"
IUSE="$IUSE $LANGS"
REQUIRED_USE="^^ ( ${LANGS//+/} )"
+src_prepare() {
+ cmake_src_prepare
+}
+
src_configure() {
local mycmakeargs=()
@@ -151,6 +156,7 @@ src_configure() {
-DWITH_RUST_BINARIES=OFF
-DBUILD_LAUNCHER=OFF
-DOPENGL_GL_PREFERENCE=GLVND
+ -DINSTALL_LIB_DIR="${EPREFIX}/usr/$(get_libdir)"
-DEXTRA_DATA_DIR="${EPREFIX}/usr/share/ja2"
)
@@ -179,9 +185,5 @@ pkg_postinst() {
elog "Make sure the filenames are lowercase."
fi
- xdg_icon_cache_update
-}
-
-pkg_postrm() {
- xdg_icon_cache_update
+ xdg_pkg_postinst
}
next reply other threads:[~2021-01-22 1:41 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-22 1:41 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-04-05 3:37 [gentoo-commits] repo/gentoo:master commit in: games-strategy/ja2-stracciatella/ Sam James
2024-03-29 18:47 Sam James
2024-01-21 9:35 Florian Schmaus
2023-07-28 18:30 Andreas Sturmlechner
2023-07-28 17:56 Arthur Zamarin
2023-06-11 4:11 Arthur Zamarin
2023-06-10 22:34 Sam James
2023-01-09 1:09 Sam James
2023-01-08 4:55 Sam James
2023-01-08 4:55 Sam James
2022-11-22 13:46 Arthur Zamarin
2021-02-24 21:20 Sam James
2021-02-10 14:49 Sam James
2021-01-22 1:43 Sam James
2020-09-05 1:02 Sam James
2018-01-07 0:32 Ulrich Müller
2015-12-18 8:17 Michael Sterrett
2015-12-18 8:17 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=1611279699.0b81a863d0b5a1a72a259045aa5e0dd7dea9ec2d.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