diff options
author | Azamat H. Hackimov <azamat.hackimov@gmail.com> | 2020-08-20 14:52:33 +0300 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2020-08-22 19:55:59 +0100 |
commit | 3e70d543f74f8445856c0ebd943d9409b7c0eb13 (patch) | |
tree | a696a16aa94fbf88ab8ec8a68cdca149bb6f1f2d /games-arcade/opentyrian/opentyrian-2.1.20130907-r2.ebuild | |
parent | Revert "dev-python/watchdog: Remove old" (diff) | |
download | gentoo-3e70d543f74f8445856c0ebd943d9409b7c0eb13.tar.gz gentoo-3e70d543f74f8445856c0ebd943d9409b7c0eb13.tar.bz2 gentoo-3e70d543f74f8445856c0ebd943d9409b7c0eb13.zip |
games-arcade/opentyrian: fix issues
Update to EAPI 7, drop mercurial dependency (not required anymore),
fixed compilation with -fno-common, updated HOMEPAGE, LICENSE
Closes: https://bugs.gentoo.org/514966
Closes: https://bugs.gentoo.org/707724
Closes: https://bugs.gentoo.org/738182
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com>
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'games-arcade/opentyrian/opentyrian-2.1.20130907-r2.ebuild')
-rw-r--r-- | games-arcade/opentyrian/opentyrian-2.1.20130907-r2.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/games-arcade/opentyrian/opentyrian-2.1.20130907-r2.ebuild b/games-arcade/opentyrian/opentyrian-2.1.20130907-r2.ebuild new file mode 100644 index 000000000000..fb021768080b --- /dev/null +++ b/games-arcade/opentyrian/opentyrian-2.1.20130907-r2.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit desktop xdg-utils + +DESCRIPTION="Open-source port of the DOS game Tyrian, vertical scrolling shooter" +HOMEPAGE="https://github.com/opentyrian/opentyrian" +SRC_URI="http://darklomax.org/tyrian/tyrian21.zip + http://www.camanis.net/${PN}/releases/${P}-src.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND="media-libs/libsdl + media-libs/sdl-net" +RDEPEND="${DEPEND}" +BDEPEND="app-arch/unzip" + +PATCHES=( + "${FILESDIR}/${PV}-datapath.diff" + "${FILESDIR}/${PV}-cflag-idiocy.diff" + "${FILESDIR}/${PV}-gcc10.patch" +) + +src_compile() { + emake DATA_PATH="/usr/share/${PN}" +} + +src_install() { + dobin opentyrian + dosym ../../usr/bin/opentyrian /usr/bin/tyrian + dodoc CREDITS NEWS README + domenu linux/opentyrian.desktop || die "Failed to install desktop file" + 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 + done + insinto "/usr/share/${PN}" + cd "${WORKDIR}/tyrian21" + rm *.exe dpmi16bi.ovl loudness.awe || die "Failed to remove win32 binaries" + doins * +} + +pkg_postinst() { + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_icon_cache_update +} |