public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: games-fps/serioussam/
@ 2023-12-26 22:50 Ulrich Müller
  0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Müller @ 2023-12-26 22:50 UTC (permalink / raw
  To: gentoo-commits

commit:     b4d6e35d92e3b8688f3a53ceae57e4080a73f376
Author:     Alexander Pavlov <t.x00100x.t <AT> yandex <DOT> ru>
AuthorDate: Fri Dec  8 13:03:55 2023 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Tue Dec 26 22:49:28 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4d6e35d

games-fps/serioussam: new package, add 1.10.6

Bug: https://bugs.gentoo.org/854567
Signed-off-by: Alexander Pavlov <t.x00100x.t <AT> yandex.ru>
[Use ED instead of D.]
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 games-fps/serioussam/Manifest                 |   1 +
 games-fps/serioussam/metadata.xml             |  22 ++++++
 games-fps/serioussam/serioussam-1.10.6.ebuild | 106 ++++++++++++++++++++++++++
 3 files changed, 129 insertions(+)

diff --git a/games-fps/serioussam/Manifest b/games-fps/serioussam/Manifest
new file mode 100644
index 000000000000..eb7ea315651a
--- /dev/null
+++ b/games-fps/serioussam/Manifest
@@ -0,0 +1 @@
+DIST serioussam-1.10.6c.tar.gz 47908208 BLAKE2B 90af9f8c11b474ce0e114c3390e1afd5c746c1b2ca4e61bd6085f1dc42f6f73981cc4434ff8fdcc1306178ae9d2707026765a3a1da006d5adb841d2d314a4214 SHA512 de1ba536c84977d1e7335833b8a2080b13a22ca25efba88363972dceb4bcbfda1db448de42d262fa003fe9df393327509e76afc3cc501f96ed6495d29b74b6bb

diff --git a/games-fps/serioussam/metadata.xml b/games-fps/serioussam/metadata.xml
new file mode 100644
index 000000000000..c9c22cde71e7
--- /dev/null
+++ b/games-fps/serioussam/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person" proxied="yes">
+		<email>t.x00100x.t@yandex.ru</email>
+		<name>Alexander Pavlov</name>
+	</maintainer>
+	<maintainer type="project" proxied="proxy">
+		<email>proxy-maint@gentoo.org</email>
+		<name>Proxy Maintainers</name>
+	</maintainer>
+	<use>
+		<flag name="alsa">Enable support ALSA sound.</flag>
+		<flag name="pipewire">Enable support for pipewire.</flag>
+		<flag name="vulkan">Enable support Vulkan render.</flag>
+	</use>
+	<upstream>
+		<remote-id type="github">tx00100xt/SeriousSamClassic-VK</remote-id>
+		<bugs-to>https://github.com/tx00100xt/SeriousSamClassic-VK/issues</bugs-to>
+		<changelog>https://github.com/tx00100xt/SeriousSamClassic-VK/releases</changelog>
+	</upstream>
+</pkgmetadata>

diff --git a/games-fps/serioussam/serioussam-1.10.6.ebuild b/games-fps/serioussam/serioussam-1.10.6.ebuild
new file mode 100644
index 000000000000..5b9b2d1a433d
--- /dev/null
+++ b/games-fps/serioussam/serioussam-1.10.6.ebuild
@@ -0,0 +1,106 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake desktop
+
+MY_PN1="SamTFE"
+MY_PN2="SamTSE"
+# Game name
+GN1="serioussam"
+GN2="serioussamse"
+
+DESCRIPTION="Linux port of Serious Sam Classic with Vulkan support"
+HOMEPAGE="https://github.com/tx00100xt/SeriousSamClassic-VK"
+SRC_URI="https://github.com/tx00100xt/SeriousSamClassic-VK/archive/refs/tags/${PV}c.tar.gz -> ${P}c.tar.gz"
+S="${WORKDIR}/SeriousSamClassic-VK-${PV}c"
+
+MY_CONTENT1="${WORKDIR}/SeriousSamClassic-VK-${PV}c/${MY_PN1}"
+MY_CONTENT2="${WORKDIR}/SeriousSamClassic-VK-${PV}c/${MY_PN2}"
+
+LICENSE="GPL-2 BSD ZLIB"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE="alsa pipewire vulkan"
+
+RDEPEND="
+	games-fps/serioussam-tfe-data
+	games-fps/serioussam-tse-data
+	media-libs/libsdl2[video,joystick,opengl]
+	media-libs/libvorbis
+	sys-libs/zlib
+	alsa? (
+		>=media-libs/libsdl2-2.0.6[alsa,sound]
+	)
+	pipewire? (
+		>=media-libs/libsdl2-2.0.6[pipewire,sound]
+	)
+	vulkan? (
+		dev-util/vulkan-headers
+		media-libs/vulkan-loader
+		media-libs/libsdl2[video,joystick,opengl,vulkan]
+	)
+"
+
+DEPEND="${RDEPEND}"
+BDEPEND="
+	virtual/pkgconfig
+	sys-devel/flex
+	sys-devel/bison
+	media-gfx/imagemagick
+"
+
+src_configure() {
+	einfo "Remove Win32 stuff..."
+	rm -rf "${MY_CONTENT1}"/Tools.Win32 || die "Failed to remove stuff Win32"
+	rm -rf "${MY_CONTENT2}"/Tools.Win32 || die "Failed to remove stuff Win32"
+
+	einfo "Setting build type Release..."
+	CMAKE_BUILD_TYPE="Release"
+	local mycmakeargs=(
+		-DUSE_SYSTEM_INSTALL=ON
+		-DUSE_SYSTEM_VULKAN=$(usex vulkan ON OFF)
+		-DUSE_ASM=$(usex x86 OFF ON)
+	)
+	cmake_src_configure
+}
+
+src_install() {
+	local dir1="/usr/share/${GN1}"
+	local dir2="/usr/share/${GN2}"
+	local dir3="/usr/share/applications"
+	cmake_src_install
+
+	# install man pages
+	mv  "${S}"/man/gentoo/serioussam-vk.1 "${S}"/man/gentoo/serioussam.1 \
+		|| die "Failed move man pages"
+	doman "${S}"/man/gentoo/serioussam.1
+
+	# removing repo stuff
+	rm -fr "${MY_CONTENT1}/Sources" && rm -fr "${MY_CONTENT2}/Sources" \
+		|| die "Failed to remove Sources"
+	rm -f  "${MY_CONTENT1}"/{*.png,*.desktop} \
+		|| die "Failed to remove serioussam icon and desktop file"
+	rm -f  "${MY_CONTENT2}"/{*.png,*.desktop} \
+		|| die "Failed to remove serioussamse icon and desktop file"
+	rm -f  "${ED}${dir3}/${GN1}.desktop" "${ED}${dir3}/${GN2}.desktop" \
+		|| die "Failed to remove desktop file"
+
+	# moving repo content (Scripts, Data, Settings ...)
+	cp -fr "${MY_CONTENT1}"/* "${ED}${dir1}" \
+		|| die "Failed to copy repo content (Scripts, Settings)"
+	cp -fr "${MY_CONTENT2}"/* "${ED}${dir2}" \
+		|| die "Failed to copy repo content (Scripts, Settings)"
+
+	make_desktop_entry ${GN1} "Serious Sam The First Encounter" ${GN1}
+	make_desktop_entry ${GN2} "Serious Sam The Second Encounter" ${GN2}
+}
+
+pkg_postinst() {
+	elog "     Look at:"
+	elog "        man serioussam"
+	elog "        https://github.com/tx00100xt/SeriousSamClassic-VK"
+	elog "        https://github.com/tx00100xt/SeriousSamClassic-VK/wiki"
+	elog "     For information on the first launch of the game"
+}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-fps/serioussam/
@ 2024-01-28 19:42 Florian Schmaus
  0 siblings, 0 replies; 2+ messages in thread
From: Florian Schmaus @ 2024-01-28 19:42 UTC (permalink / raw
  To: gentoo-commits

commit:     45f40d193555eec4837e705aedc1cf86013808cf
Author:     Alexander Pavlov <t.x00100x.t <AT> yandex <DOT> ru>
AuthorDate: Wed Jan 24 13:55:01 2024 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Sun Jan 28 19:42:27 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45f40d19

games-fps/serioussam: Bump to version 1.10.6d. Update License.

Rename serioussam-1.10.6.ebuild	to serioussam-1.10.6c.ebuild
Update license for serioussam-1.10.6c.ebuild
libvorbis(BSD License) sources and headers not need for build 1.10.6c
Add new	ebuild serioussam-1.10.6d.ebuild
libvorbis(BSD License) sources and headers not need for build 1.10.6d
zlib(ZLIB License) sources and headers not need for build 1.10.6d
Signed-off-by: Alexander Pavlov <t.x00100x.t <AT> yandex.ru>
Closes: https://github.com/gentoo/gentoo/pull/34880
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 games-fps/serioussam/Manifest                                  |  1 +
 .../{serioussam-1.10.6.ebuild => serioussam-1.10.6c.ebuild}    | 10 +++++-----
 .../{serioussam-1.10.6.ebuild => serioussam-1.10.6d.ebuild}    | 10 +++++-----
 3 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/games-fps/serioussam/Manifest b/games-fps/serioussam/Manifest
index eb7ea315651a..a3473b88b03b 100644
--- a/games-fps/serioussam/Manifest
+++ b/games-fps/serioussam/Manifest
@@ -1 +1,2 @@
 DIST serioussam-1.10.6c.tar.gz 47908208 BLAKE2B 90af9f8c11b474ce0e114c3390e1afd5c746c1b2ca4e61bd6085f1dc42f6f73981cc4434ff8fdcc1306178ae9d2707026765a3a1da006d5adb841d2d314a4214 SHA512 de1ba536c84977d1e7335833b8a2080b13a22ca25efba88363972dceb4bcbfda1db448de42d262fa003fe9df393327509e76afc3cc501f96ed6495d29b74b6bb
+DIST serioussam-1.10.6d.tar.gz 47922084 BLAKE2B b035df25f897e498e8e6bf4707c3003e0aeb79eff8d0067b5887716acd3630640e2d599434288635f4ae7d6aeb522a0e814c0b5acb64dc6166d7b7487e9ee88c SHA512 1a71e1277f6d2e7d0d059a15c51877d3d838e1c97ea6d8c61cdeb4ff0a4c2640be6a412db2c099b78d15b657d3b0bf8f324416d9258f7867fee6cf54923a542d

diff --git a/games-fps/serioussam/serioussam-1.10.6.ebuild b/games-fps/serioussam/serioussam-1.10.6c.ebuild
similarity index 92%
copy from games-fps/serioussam/serioussam-1.10.6.ebuild
copy to games-fps/serioussam/serioussam-1.10.6c.ebuild
index 5f7794528412..79d84e4d8acf 100644
--- a/games-fps/serioussam/serioussam-1.10.6.ebuild
+++ b/games-fps/serioussam/serioussam-1.10.6c.ebuild
@@ -13,13 +13,13 @@ GN2="serioussamse"
 
 DESCRIPTION="Linux port of Serious Sam Classic with Vulkan support"
 HOMEPAGE="https://github.com/tx00100xt/SeriousSamClassic-VK"
-SRC_URI="https://github.com/tx00100xt/SeriousSamClassic-VK/archive/refs/tags/${PV}c.tar.gz -> ${P}c.tar.gz"
-S="${WORKDIR}/SeriousSamClassic-VK-${PV}c"
+SRC_URI="https://github.com/tx00100xt/SeriousSamClassic-VK/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/SeriousSamClassic-VK-${PV}"
 
-MY_CONTENT1="${WORKDIR}/SeriousSamClassic-VK-${PV}c/${MY_PN1}"
-MY_CONTENT2="${WORKDIR}/SeriousSamClassic-VK-${PV}c/${MY_PN2}"
+MY_CONTENT1="${WORKDIR}/SeriousSamClassic-VK-${PV}/${MY_PN1}"
+MY_CONTENT2="${WORKDIR}/SeriousSamClassic-VK-${PV}/${MY_PN2}"
 
-LICENSE="GPL-2 BSD ZLIB"
+LICENSE="GPL-2 ZLIB"
 SLOT="0"
 KEYWORDS="-* ~amd64 ~x86"
 IUSE="alsa pipewire vulkan"

diff --git a/games-fps/serioussam/serioussam-1.10.6.ebuild b/games-fps/serioussam/serioussam-1.10.6d.ebuild
similarity index 92%
rename from games-fps/serioussam/serioussam-1.10.6.ebuild
rename to games-fps/serioussam/serioussam-1.10.6d.ebuild
index 5f7794528412..4df47b2386ee 100644
--- a/games-fps/serioussam/serioussam-1.10.6.ebuild
+++ b/games-fps/serioussam/serioussam-1.10.6d.ebuild
@@ -13,13 +13,13 @@ GN2="serioussamse"
 
 DESCRIPTION="Linux port of Serious Sam Classic with Vulkan support"
 HOMEPAGE="https://github.com/tx00100xt/SeriousSamClassic-VK"
-SRC_URI="https://github.com/tx00100xt/SeriousSamClassic-VK/archive/refs/tags/${PV}c.tar.gz -> ${P}c.tar.gz"
-S="${WORKDIR}/SeriousSamClassic-VK-${PV}c"
+SRC_URI="https://github.com/tx00100xt/SeriousSamClassic-VK/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/SeriousSamClassic-VK-${PV}"
 
-MY_CONTENT1="${WORKDIR}/SeriousSamClassic-VK-${PV}c/${MY_PN1}"
-MY_CONTENT2="${WORKDIR}/SeriousSamClassic-VK-${PV}c/${MY_PN2}"
+MY_CONTENT1="${WORKDIR}/SeriousSamClassic-VK-${PV}/${MY_PN1}"
+MY_CONTENT2="${WORKDIR}/SeriousSamClassic-VK-${PV}/${MY_PN2}"
 
-LICENSE="GPL-2 BSD ZLIB"
+LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="-* ~amd64 ~x86"
 IUSE="alsa pipewire vulkan"


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-01-28 19:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-26 22:50 [gentoo-commits] repo/gentoo:master commit in: games-fps/serioussam/ Ulrich Müller
  -- strict thread matches above, loose matches on Subject: below --
2024-01-28 19:42 Florian Schmaus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox