summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortomboy64 <tomboy64@sina.cn>2017-04-07 17:31:40 +0200
committerMichał Górny <mgorny@gentoo.org>2017-05-07 19:41:46 +0200
commit736fea0b73e9be6c8be54b548ca0a33aabdd01ae (patch)
tree25cc2ea2b2b88a5a4d50f29f8021ce34009b43f1 /games-strategy/endless-sky/endless-sky-0.9.6.ebuild
parentgames-strategy/endless-sky: fix glew slot in deps (diff)
downloadgentoo-736fea0b73e9be6c8be54b548ca0a33aabdd01ae.tar.gz
gentoo-736fea0b73e9be6c8be54b548ca0a33aabdd01ae.tar.bz2
gentoo-736fea0b73e9be6c8be54b548ca0a33aabdd01ae.zip
games-strategy/endless-sky: version bump 0.9.6
Closes: https://github.com/gentoo/gentoo/pull/4447 Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'games-strategy/endless-sky/endless-sky-0.9.6.ebuild')
-rw-r--r--games-strategy/endless-sky/endless-sky-0.9.6.ebuild55
1 files changed, 55 insertions, 0 deletions
diff --git a/games-strategy/endless-sky/endless-sky-0.9.6.ebuild b/games-strategy/endless-sky/endless-sky-0.9.6.ebuild
new file mode 100644
index 00000000000..e01d717396f
--- /dev/null
+++ b/games-strategy/endless-sky/endless-sky-0.9.6.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils gnome2-utils scons-utils
+
+DESCRIPTION="Space exploration, trading & combat in the tradition of Terminal Velocity"
+HOMEPAGE="https://endless-sky.github.io"
+SRC_URI="https://github.com/endless-sky/endless-sky/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="CC-BY-SA-4.0 CC-BY-SA-3.0 GPL-3+ public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="media-libs/glew:0
+ media-libs/libsdl2
+ media-libs/libjpeg-turbo
+ media-libs/libpng:=
+ media-libs/openal
+ virtual/opengl"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ sed -i 's/\(.*flags += \["\)-O3\("\]\)/\1\2/g' SConstruct || die
+ sed -i 's#env.Install("$DESTDIR$PREFIX/games", sky)#env.Install("$DESTDIR$PREFIX/bin", sky)#g' SConstruct || die
+ eapply_user
+}
+
+src_compile() {
+ escons
+}
+
+src_install() {
+ escons PREFIX="${D}/usr/" install
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
+
+pkg_postinst() {
+ einfo "Endless Sky provides high-res sprites for high-dpi screens."
+ einfo "If you want to use them, download"
+ einfo
+ einfo " https://github.com/endless-sky/endless-sky-high-dpi/releases"
+ einfo
+ einfo "and extract it to ~/.local/share/endless-sky/plugins/."
+ einfo
+ einfo " Enjoy."
+}