public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Joe Kappus" <joe@wt.gd>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: games-fps/etlegacy/
Date: Thu, 18 Apr 2024 05:36:51 +0000 (UTC)	[thread overview]
Message-ID: <1713418595.4042c164a2d224d0c1126280fc2561fd9e914be3.joe@gentoo> (raw)

commit:     4042c164a2d224d0c1126280fc2561fd9e914be3
Author:     Joe Kappus <joe <AT> wt <DOT> gd>
AuthorDate: Thu Apr 18 05:36:24 2024 +0000
Commit:     Joe Kappus <joe <AT> wt <DOT> gd>
CommitDate: Thu Apr 18 05:36:35 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4042c164

games-fps/etlegacy: add 2.82.0

Signed-off-by: Joe Kappus <joe <AT> wt.gd>

 games-fps/etlegacy/Manifest               |   1 +
 games-fps/etlegacy/etlegacy-2.82.0.ebuild | 156 ++++++++++++++++++++++++++++++
 2 files changed, 157 insertions(+)

diff --git a/games-fps/etlegacy/Manifest b/games-fps/etlegacy/Manifest
index 371f89a661..88c93b70b5 100644
--- a/games-fps/etlegacy/Manifest
+++ b/games-fps/etlegacy/Manifest
@@ -1,2 +1,3 @@
 DIST et260b.x86_full.zip 275647724 BLAKE2B ea52d1859e78c6da5a16bd3598c2b649e9f79596be93fe35858a1174b0d63ef94eaecdb24b8f749d7dc39b1a70dd38557d455238cbc4b857ed7083369fe47262 SHA512 7a9639c7a67c6c058ae1c85ca1e04e74526194a8a676eaccffa1984869251cc058f0cb79b96604ec087492003d14f7f3e96c8ebe7e527959ae47d4d25645d3e1
 DIST etlegacy-2.81.0.tar.gz 15515335 BLAKE2B f66b4f6136b4651695d478547f7d535cb80d1309f44e9640113e5416b977e59cee1c59a531c8dbd56cb9587e218f9e8230a3bd0470ac3540967e5aa53f6f79f5 SHA512 c37f6c6740c0da67dccdb1bdd3b72641f2fbfeb3aac7c018e1cba5fdb2052039d7b56c60119ad92df47f8ff4046b10e9bb770a5614d50a4ca3e308e1df058a03
+DIST etlegacy-2.82.0.tar.gz 15179026 BLAKE2B 8821fd752e0779959ee858368280fdeca1ea3d9c230d7e93a5eee8aba40522110f8fd47dba08b1244730ac83fea7385c926f973f0a43ccf07ac39c3c5f5684f1 SHA512 7ca18da3d92e12c9aba6477646f14b57e9cfbeb267c6d19661b7f2fe2331e8b0496b55001ba3f7dbf5bc253ccdfd153223ae8767a43169dcd8df250219933ceb

diff --git a/games-fps/etlegacy/etlegacy-2.82.0.ebuild b/games-fps/etlegacy/etlegacy-2.82.0.ebuild
new file mode 100644
index 0000000000..c45ba5c5bf
--- /dev/null
+++ b/games-fps/etlegacy/etlegacy-2.82.0.ebuild
@@ -0,0 +1,156 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake unpacker xdg
+
+DESCRIPTION="Wolfenstein: Enemy Territory 2.60b compatible client/server"
+HOMEPAGE="https://www.etlegacy.com/"
+
+# We need the game files from the original enemy-territory release
+ET_RELEASE="et260b"
+SRC_URI="https://cdn.splashdamage.com/downloads/games/wet/${ET_RELEASE}.x86_full.zip"
+
+if [[ ${PV} = "9999" ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="git://github.com/${PN}/${PN}.git"
+else
+	SRC_URI+=" https://github.com/${PN}/${PN}/archive/v${PV/_rc/rc}.tar.gz -> ${P}.tar.gz"
+	KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-3 RTCW-ETEULA"
+SLOT="0"
+IUSE="autoupdate +curl dedicated +freetype +gettext ipv6 irc +lua omnibot +openal +opengl +png renderer2 renderer-gles +ssl +theora +vorbis"
+#REQUIRED_USE="omnibot? ( x86 )"
+
+RESTRICT="bindist mirror"
+
+# TODO add debug use for CMAKE_BUILD_TYPE=debug
+
+LUADEPEND="lua? ( >=dev-lang/lua-5.4:* )"
+
+# * media-libs/glew     | media-libs/glew:=
+# * media-libs/libpng:= <
+# *                     > media-libs/libogg
+# * media-libs/openal   <
+# * sys-devel/gettext   <
+UIDEPEND="
+	media-libs/glew:=
+	media-libs/libsdl2[sound,video,X]
+	media-libs/libogg
+	media-libs/libjpeg-turbo:0
+	virtual/opengl
+	sys-libs/zlib:=[minizip]
+	curl? ( net-misc/curl )
+	freetype? ( media-libs/freetype )
+	gettext? ( sys-devel/gettext )
+	renderer-gles? ( media-libs/mesa[gles1] )
+	openal? ( media-libs/openal )
+	png? ( media-libs/libpng:0= )
+	ssl? ( dev-libs/openssl:0= )
+	theora? ( media-libs/libtheora )
+	vorbis? ( media-libs/libvorbis )
+	${LUADEPEND}
+"
+
+DEPEND="
+	dev-db/sqlite:3
+	dev-libs/cJSON
+	opengl? ( ${UIDEPEND} )
+"
+
+RDEPEND="${DEPEND}"
+BDEPEND="$(unpacker_src_uri_depends)"
+
+#QA_TEXTRELS="usr/share/games/etlegacy/legacy/omni-bot/omnibot_et.so"
+
+S="${WORKDIR}/${P/_rc/rc}"
+
+src_unpack() {
+	if [[ "${PV}" = 9999 ]] ; then
+		git-r3_src_unpack
+	else
+		default
+	fi
+	mkdir et && cd et || die
+	unzip "${DISTDIR}"/${ET_RELEASE}.x86_full.zip
+	unpack_makeself ${ET_RELEASE}.x86_keygen_V03.run
+}
+
+src_prepare() {
+	cmake_src_prepare
+	# if [[ "${PV}" != 9999 ]] ; then
+	# 	sed -e "/^set(ETLEGACY_VERSION_MINOR/s@[[:digit:]]\+@$(ver_cut 2)@" \
+	# 		-i cmake/ETLVersion.cmake || die
+	# fi
+	sed -e 's@[-_]dirty@@' -i cmake/ETLVersion.cmake || die
+}
+
+src_configure() {
+	mycmakeargs=(
+		# path and build type
+		#-DCMAKE_BUILD_TYPE="Release"
+		-DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr"
+		-DINSTALL_DEFAULT_BASEDIR="/usr/share/${PN}"
+		-DINSTALL_DEFAULT_BINDIR="/usr/bin"
+		-DINSTALL_DEFAULT_MODDIR="/usr/share/${PN}"
+		-DCMAKE_LIBRARY_PATH="/usr/$(get_libdir)"
+		-DCMAKE_INCLUDE_PATH="/usr/include"
+		-DDOCDIR="${EPREFIX}/usr/share/doc/${PF}"
+		-DCROSS_COMPILE32="0"
+		# what to build
+		-DBUILD_CLIENT="$(usex opengl)"
+		-DBUILD_MOD="1"
+		-DBUILD_MOD_PK3="1"
+		-DBUILD_SERVER="$(usex dedicated)"
+		# no bundled libs
+		-DBUNDLED_LIBS="0"
+		-DBUNDLED_LIBS_DEFAULT="0"
+		#-DBUNDLED_SDL="0"
+		#-DBUNDLED_CURL="0"
+		#-DBUNDLED_JPEG="0"
+		#-DBUNDLED_LUA="0"
+		#-DBUNDLED_OGG_VORBIS="0"
+		#-DBUNDLED_GLEW="0"
+		#-DBUNDLED_FREETYPE="0"
+		# features
+		-DFEATURE_CURL="$(usex curl)"
+		-DFEATURE_SSL="$(usex ssl)"
+		-DFEATURE_OGG_VORBIS="$(usex vorbis)"
+		-DFEATURE_THEORA="$(usex theora)"
+		-DFEATURE_OPENAL="$(usex openal)"
+		-DFEATURE_FREETYPE="$(usex freetype)"
+		-DFEATURE_PNG="$(usex png)"
+		-DFEATURE_LUA="$(usex lua)"
+		-DFEATURE_IRC_CLIENT="$(usex irc)"
+		-DFEATURE_IPV6="$(usex ipv6)"
+		-DFEATURE_GETTEXT="$(usex gettext)"
+		-DFEATURE_ANTICHEAT="1"
+		-DFEATURE_AUTOUPDATE="$(usex autoupdate)"
+		# renderers
+		-DFEATURE_RENDERER2="$(usex renderer2 ON OFF)"
+		-DFEATURE_RENDERER_GLES="$(usex renderer-gles)"
+
+		-DFEATURE_OMNIBOT="$(usex omnibot)"
+		-DINSTALL_OMNIBOT="$(usex omnibot)"
+		-DINSTALL_GEOIP="0"
+		-DINSTALL_WOLFADMIN="0"
+	)
+
+	cmake_src_configure
+}
+
+src_install() {
+	cmake_src_install
+
+	local arch=$(uname -m || die "Failed to detect architecture")
+
+	insinto /usr/share/etlegacy/legacy
+	doins "${BUILD_DIR}"/legacy/ui.mp.${arch}.so
+
+	# Install the game files
+	insinto /usr/share/etlegacy/etmain
+	doins "${WORKDIR}"/et/etmain/pak[012].pk3
+}


             reply	other threads:[~2024-04-18  5:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-18  5:36 Joe Kappus [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-28  8:35 [gentoo-commits] repo/proj/guru:dev commit in: games-fps/etlegacy/ Joe Kappus
2024-09-19  8:58 David Roman
2024-09-19  8:58 David Roman
2023-02-25 20:43 [gentoo-commits] repo/proj/guru:master " Florian Schmaus
2023-02-25 20:38 ` [gentoo-commits] repo/proj/guru:dev " Florian Schmaus
2022-05-09 18:44 [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2022-05-09 18:40 ` [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan

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=1713418595.4042c164a2d224d0c1126280fc2561fd9e914be3.joe@gentoo \
    --to=joe@wt.gd \
    --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