X-Git-Url: https://git.draconx.ca/gitweb/gentoo-draconx.git/blobdiff_plain/8b606cff8a9f0af5993052eef4c56fcba0162eb8..42bac711df53f14a23b4dd444ec63cbdd542dbb4:/games-strategy/moo2-data/moo2-data-1.31-r3.ebuild diff --git a/games-strategy/moo2-data/moo2-data-1.31-r3.ebuild b/games-strategy/moo2-data/moo2-data-1.31-r3.ebuild new file mode 100644 index 0000000..868b345 --- /dev/null +++ b/games-strategy/moo2-data/moo2-data-1.31-r3.ebuild @@ -0,0 +1,43 @@ +# Copyright © 2013, 2015, 2021 Nick Bowler +# License GPLv3+: GNU General Public License version 3 or any later version. +# This is free software: you are free to change and redistribute it. +# There is NO WARRANTY, to the extent permitted by law. + +EAPI=7 + +inherit desktop + +DESCRIPTION="Master of Orion 2 Data Files" +SRC_URI="gog_master_of_orion_2_2.0.0.6.sh" + +LICENSE="GOG-EULA" +SLOT="0" +KEYWORDS="~amd64" + +RESTRICT="fetch" + +BDEPEND="app-arch/unzip + media-gfx/icoutils + || ( media-gfx/graphicsmagick media-gfx/imagemagick )" + +src_unpack () { + ( unzip -LLqd $P "$DISTDIR/$A" || exit $(($?>1)) ) || + die "Failed to extract $A" +} + +src_compile () { + wrestool -t 14 -x -o orion95.ico data/noarch/data/orion95.exe || die + convert=`has_version media-gfx/graphicsmagick && echo 'gm'` + convert=${convert:+"$convert "}convert + + einfo "$convert" + $convert orion95.ico moo2.png || die +} + +src_install() { + insinto "/usr/share/$PN" + doins data/noarch/data/*.lbx + + doicon -s 32 moo2.png + newicon -s 256 data/noarch/support/icon.png moo2.png +}