public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Florian Schmaus" <flow@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: games-fps/assaultcube/
Date: Thu,  1 Dec 2022 11:02:35 +0000 (UTC)	[thread overview]
Message-ID: <1669892525.1fd0cd09337447564aec34510f0ccbee6f54559d.flow@gentoo> (raw)

commit:     1fd0cd09337447564aec34510f0ccbee6f54559d
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Thu Dec  1 11:01:37 2022 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Thu Dec  1 11:02:05 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1fd0cd09

games-fps/assaultcube: improve ebuild, add missing die etc.

Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 games-fps/assaultcube/assaultcube-1.3.0.2.ebuild | 53 ++++++++++++++----------
 games-fps/assaultcube/metadata.xml               |  3 ++
 2 files changed, 34 insertions(+), 22 deletions(-)

diff --git a/games-fps/assaultcube/assaultcube-1.3.0.2.ebuild b/games-fps/assaultcube/assaultcube-1.3.0.2.ebuild
index a1169191a..0eb39ae03 100644
--- a/games-fps/assaultcube/assaultcube-1.3.0.2.ebuild
+++ b/games-fps/assaultcube/assaultcube-1.3.0.2.ebuild
@@ -9,55 +9,64 @@ DESCRIPTION="Free multiplayer FPS based on the Cube engine"
 HOMEPAGE="https://assault.cubers.net/"
 SRC_URI="https://github.com/assaultcube/AC/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
 S="${WORKDIR}/AC-${PV}"
+
 LICENSE="ZLIB assaultcube"
 SLOT="0"
 KEYWORDS="~amd64"
-RDEPEND="sys-libs/zlib
-		media-libs/libsdl2[opengl]
-		media-libs/sdl2-image[jpeg,png]
-		x11-libs/libX11
-		media-libs/libogg
-		media-libs/libvorbis
-		media-libs/openal"
+IUSE="debug"
+
+RDEPEND="
+	sys-libs/zlib
+	media-libs/libsdl2[opengl]
+	media-libs/sdl2-image[jpeg,png]
+	x11-libs/libX11
+	media-libs/libogg
+	media-libs/libvorbis
+	media-libs/openal
+"
 DEPEND="${RDEPEND}"
 BDEPEND="sys-devel/clang"
 PATCHES=(
 	"${FILESDIR}/${PN}-1.3.0.2-respect-ldflags.patch"
-	"${FILESDIR}/${PN}-1.3.0.2-fix-checkinstall.patch" # a script which checks for required libs and certain parts of the game
+	# a script which checks for required libs and certain parts of the game
+	"${FILESDIR}/${PN}-1.3.0.2-fix-checkinstall.patch"
 )
-IUSE="debug"
 
 src_prepare() {
 	default
-	sed -i 's|//#define PRODUCTION|#define PRODUCTION|' "${S}/source/src/cube.h"
+	sed -i 's|//#define PRODUCTION|#define PRODUCTION|' source/src/cube.h || die
+}
+
+src_configure() {
 	filter-lto
 }
 
 src_compile() {
-	cd "${S}/source/src"
 	if use debug; then
-		DEBUGBUILD=1 emake
-	else
-		emake
+		local -x DEBUGBUILD=1
 	fi
+	emake -C source/src
 }
 
 src_install() {
-	cd "${S}/source/src"
-	emake install
+	emake -C source/src install
 
-	install -dm755 "${D}/usr/share/assaultcube"
-	install -Dm755 "${S}"/{assaultcube.sh,check_install.sh,server.sh,server_wizard.sh} -t "${D}/usr/share/assaultcube"
-	install -Dm755 "${S}"/bin_unix/native_{client,server} -t "${D}/usr/share/assaultcube/bin_unix"
-	cp -r "${S}"/{bot,config,demos,docs,mods,packages} "${D}/usr/share/assaultcube/"
-	install -Dm644 "${S}"/{CONTRIBUTING.md,GOVERNANCE.md,README.{html,md},SECURITY.md} -t "${D}/usr/share/assaultcube"
+	install -dm755 "${ED}/usr/share/assaultcube" || die
+	install -Dm755 "${S}"/{assaultcube.sh,check_install.sh,server.sh,server_wizard.sh} \
+			-t "${ED}/usr/share/assaultcube" || die
+	install -Dm755 "${S}"/bin_unix/native_{client,server} -t "${ED}/usr/share/assaultcube/bin_unix" || die
+	cp -r {bot,config,demos,docs,mods,packages} "${ED}/usr/share/assaultcube/" || die
+
+	dodoc CONTRIBUTING.md GOVERNANCE.md README.{html,md} SECURITY.md
 
 	make_desktop_entry \
-				"/usr/share/assaultcube/assaultcube.sh %u" \
+				"${EPREFIX}/usr/share/assaultcube/assaultcube.sh %u" \
 				AssaultCube \
 				/usr/share/assaultcube/packages/misc/icon.png \
 				Game \
 				"Keywords=assaultcube;game;fps;\nMimeType=x-scheme-handler/assaultcube"
+
+	dosym "${EPREFIX}/usr/share/assaultcube/assaultcube.sh" usr/bin/assaultcube
 }
 
 pkg_postinst() {

diff --git a/games-fps/assaultcube/metadata.xml b/games-fps/assaultcube/metadata.xml
index 62988a0d4..9c7d38989 100644
--- a/games-fps/assaultcube/metadata.xml
+++ b/games-fps/assaultcube/metadata.xml
@@ -5,4 +5,7 @@
 		<email>duje.mihanovic@skole.hr</email>
 		<name>Duje Mihanović</name>
 	</maintainer>
+	<upstream>
+		<remote-id type="github">assaultcube/AC</remote-id>
+	</upstream>
 </pkgmetadata>


WARNING: multiple messages have this Message-ID (diff)
From: "Florian Schmaus" <flow@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: games-fps/assaultcube/
Date: Thu,  1 Dec 2022 11:02:46 +0000 (UTC)	[thread overview]
Message-ID: <1669892525.1fd0cd09337447564aec34510f0ccbee6f54559d.flow@gentoo> (raw)
Message-ID: <20221201110246.Scgt0xqn0ROCS02w3YP-7-kUcNCTnP7GNTuBm24caDY@z> (raw)

commit:     1fd0cd09337447564aec34510f0ccbee6f54559d
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Thu Dec  1 11:01:37 2022 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Thu Dec  1 11:02:05 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1fd0cd09

games-fps/assaultcube: improve ebuild, add missing die etc.

Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 games-fps/assaultcube/assaultcube-1.3.0.2.ebuild | 53 ++++++++++++++----------
 games-fps/assaultcube/metadata.xml               |  3 ++
 2 files changed, 34 insertions(+), 22 deletions(-)

diff --git a/games-fps/assaultcube/assaultcube-1.3.0.2.ebuild b/games-fps/assaultcube/assaultcube-1.3.0.2.ebuild
index a1169191a..0eb39ae03 100644
--- a/games-fps/assaultcube/assaultcube-1.3.0.2.ebuild
+++ b/games-fps/assaultcube/assaultcube-1.3.0.2.ebuild
@@ -9,55 +9,64 @@ DESCRIPTION="Free multiplayer FPS based on the Cube engine"
 HOMEPAGE="https://assault.cubers.net/"
 SRC_URI="https://github.com/assaultcube/AC/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
 S="${WORKDIR}/AC-${PV}"
+
 LICENSE="ZLIB assaultcube"
 SLOT="0"
 KEYWORDS="~amd64"
-RDEPEND="sys-libs/zlib
-		media-libs/libsdl2[opengl]
-		media-libs/sdl2-image[jpeg,png]
-		x11-libs/libX11
-		media-libs/libogg
-		media-libs/libvorbis
-		media-libs/openal"
+IUSE="debug"
+
+RDEPEND="
+	sys-libs/zlib
+	media-libs/libsdl2[opengl]
+	media-libs/sdl2-image[jpeg,png]
+	x11-libs/libX11
+	media-libs/libogg
+	media-libs/libvorbis
+	media-libs/openal
+"
 DEPEND="${RDEPEND}"
 BDEPEND="sys-devel/clang"
 PATCHES=(
 	"${FILESDIR}/${PN}-1.3.0.2-respect-ldflags.patch"
-	"${FILESDIR}/${PN}-1.3.0.2-fix-checkinstall.patch" # a script which checks for required libs and certain parts of the game
+	# a script which checks for required libs and certain parts of the game
+	"${FILESDIR}/${PN}-1.3.0.2-fix-checkinstall.patch"
 )
-IUSE="debug"
 
 src_prepare() {
 	default
-	sed -i 's|//#define PRODUCTION|#define PRODUCTION|' "${S}/source/src/cube.h"
+	sed -i 's|//#define PRODUCTION|#define PRODUCTION|' source/src/cube.h || die
+}
+
+src_configure() {
 	filter-lto
 }
 
 src_compile() {
-	cd "${S}/source/src"
 	if use debug; then
-		DEBUGBUILD=1 emake
-	else
-		emake
+		local -x DEBUGBUILD=1
 	fi
+	emake -C source/src
 }
 
 src_install() {
-	cd "${S}/source/src"
-	emake install
+	emake -C source/src install
 
-	install -dm755 "${D}/usr/share/assaultcube"
-	install -Dm755 "${S}"/{assaultcube.sh,check_install.sh,server.sh,server_wizard.sh} -t "${D}/usr/share/assaultcube"
-	install -Dm755 "${S}"/bin_unix/native_{client,server} -t "${D}/usr/share/assaultcube/bin_unix"
-	cp -r "${S}"/{bot,config,demos,docs,mods,packages} "${D}/usr/share/assaultcube/"
-	install -Dm644 "${S}"/{CONTRIBUTING.md,GOVERNANCE.md,README.{html,md},SECURITY.md} -t "${D}/usr/share/assaultcube"
+	install -dm755 "${ED}/usr/share/assaultcube" || die
+	install -Dm755 "${S}"/{assaultcube.sh,check_install.sh,server.sh,server_wizard.sh} \
+			-t "${ED}/usr/share/assaultcube" || die
+	install -Dm755 "${S}"/bin_unix/native_{client,server} -t "${ED}/usr/share/assaultcube/bin_unix" || die
+	cp -r {bot,config,demos,docs,mods,packages} "${ED}/usr/share/assaultcube/" || die
+
+	dodoc CONTRIBUTING.md GOVERNANCE.md README.{html,md} SECURITY.md
 
 	make_desktop_entry \
-				"/usr/share/assaultcube/assaultcube.sh %u" \
+				"${EPREFIX}/usr/share/assaultcube/assaultcube.sh %u" \
 				AssaultCube \
 				/usr/share/assaultcube/packages/misc/icon.png \
 				Game \
 				"Keywords=assaultcube;game;fps;\nMimeType=x-scheme-handler/assaultcube"
+
+	dosym "${EPREFIX}/usr/share/assaultcube/assaultcube.sh" usr/bin/assaultcube
 }
 
 pkg_postinst() {

diff --git a/games-fps/assaultcube/metadata.xml b/games-fps/assaultcube/metadata.xml
index 62988a0d4..9c7d38989 100644
--- a/games-fps/assaultcube/metadata.xml
+++ b/games-fps/assaultcube/metadata.xml
@@ -5,4 +5,7 @@
 		<email>duje.mihanovic@skole.hr</email>
 		<name>Duje Mihanović</name>
 	</maintainer>
+	<upstream>
+		<remote-id type="github">assaultcube/AC</remote-id>
+	</upstream>
 </pkgmetadata>


             reply	other threads:[~2022-12-01 11:02 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-01 11:02 Florian Schmaus [this message]
2022-12-01 11:02 ` [gentoo-commits] repo/proj/guru:master commit in: games-fps/assaultcube/ Florian Schmaus
  -- strict thread matches above, loose matches on Subject: below --
2023-09-18 15:09 [gentoo-commits] repo/proj/guru:dev " Duje Mihanović
2023-01-05 15:03 Duje Mihanović
2023-01-05 15:03 Duje Mihanović
2022-07-25 10:56 Duje Mihanović
2022-04-09 12:22 Duje Mihanović
2022-04-07  8:15 Duje Mihanović
2022-04-07  8:15 Duje Mihanović
2022-04-07  8:15 Duje Mihanović
2022-04-07  8:15 Duje Mihanović

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=1669892525.1fd0cd09337447564aec34510f0ccbee6f54559d.flow@gentoo \
    --to=flow@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