From: "James Le Cuirot" <chewi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-arcade/opentyrian/
Date: Sat, 22 Aug 2020 18:56:25 +0000 (UTC) [thread overview]
Message-ID: <1598122566.5d2f78d167fffec5220f4df32464501eaefecf03.chewi@gentoo> (raw)
commit: 5d2f78d167fffec5220f4df32464501eaefecf03
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 22 18:54:22 2020 +0000
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sat Aug 22 18:56:06 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d2f78d1
games-arcade/opentyrian: More miscellaneous improvements
* Depend on libsdl[video]
* Delete Windows files earlier
* Respect CC
* Support prefix
* Simplify symlink
* Remove unneeded die
* Clean up icon handling
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
.../opentyrian/opentyrian-2.1.20130907-r2.ebuild | 32 ++++++++++++++--------
1 file changed, 20 insertions(+), 12 deletions(-)
diff --git a/games-arcade/opentyrian/opentyrian-2.1.20130907-r2.ebuild b/games-arcade/opentyrian/opentyrian-2.1.20130907-r2.ebuild
index fb021768080..74fce946ff8 100644
--- a/games-arcade/opentyrian/opentyrian-2.1.20130907-r2.ebuild
+++ b/games-arcade/opentyrian/opentyrian-2.1.20130907-r2.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-inherit desktop xdg-utils
+inherit desktop toolchain-funcs xdg-utils
DESCRIPTION="Open-source port of the DOS game Tyrian, vertical scrolling shooter"
HOMEPAGE="https://github.com/opentyrian/opentyrian"
@@ -14,7 +14,7 @@ LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-DEPEND="media-libs/libsdl
+DEPEND="media-libs/libsdl[video]
media-libs/sdl-net"
RDEPEND="${DEPEND}"
BDEPEND="app-arch/unzip"
@@ -25,24 +25,32 @@ PATCHES=(
"${FILESDIR}/${PV}-gcc10.patch"
)
+src_prepare() {
+ default
+ rm "${WORKDIR}"/tyrian21/{*.exe,dpmi16bi.ovl,loudness.awe} || die "Failed to remove win32 binaries"
+}
+
src_compile() {
- emake DATA_PATH="/usr/share/${PN}"
+ emake \
+ CC="$(tc-getCC)" \
+ DATA_PATH="${EPREFIX}/usr/share/${PN}"
}
src_install() {
dobin opentyrian
- dosym ../../usr/bin/opentyrian /usr/bin/tyrian
+ dosym opentyrian /usr/bin/tyrian
dodoc CREDITS NEWS README
- domenu linux/opentyrian.desktop || die "Failed to install desktop file"
+ domenu linux/opentyrian.desktop
+
+ local size
for i in linux/icons/*.png ; do
- local size=`echo ${i} | sed -e 's:.*-\([0-9]\+\).png:\1:'`
- insinto /usr/share/icons/hicolor/${size}x${size}/apps
- newins ${i} opentyrian.png
+ size=${i%.png}
+ size=${size##*-}
+ newicon -s "${size}" "${i}" opentyrian.png
done
- insinto "/usr/share/${PN}"
- cd "${WORKDIR}/tyrian21"
- rm *.exe dpmi16bi.ovl loudness.awe || die "Failed to remove win32 binaries"
- doins *
+
+ insinto /usr/share/"${PN}"
+ doins "${WORKDIR}"/tyrian21/*
}
pkg_postinst() {
next reply other threads:[~2020-08-22 18:56 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-22 18:56 James Le Cuirot [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-08-19 0:48 [gentoo-commits] repo/gentoo:master commit in: games-arcade/opentyrian/ Sam James
2021-05-31 17:49 David Seifert
2020-08-22 18:56 James Le Cuirot
2018-08-27 21:23 James Le Cuirot
2018-08-27 21:23 James Le Cuirot
2017-09-05 18:32 Austin English
2015-09-01 19:43 Tobias Klausmann
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=1598122566.5d2f78d167fffec5220f4df32464501eaefecf03.chewi@gentoo \
--to=chewi@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