From 9e6d9f01166d1face28588ff81a7275b99825611 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Thu, 11 Dec 2014 10:34:13 +0300 Subject: naev scm --- games-strategy/naev/naev-scm.ebuild | 81 +++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 games-strategy/naev/naev-scm.ebuild (limited to 'games-strategy') diff --git a/games-strategy/naev/naev-scm.ebuild b/games-strategy/naev/naev-scm.ebuild new file mode 100644 index 0000000..4c4042e --- /dev/null +++ b/games-strategy/naev/naev-scm.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/naev/naev-0.5.3.ebuild,v 1.9 2014/06/07 04:02:33 mr_bones_ Exp $ + +EAPI=5 +inherit flag-o-matic gnome2-utils games git-2 + +DESCRIPTION="A 2D space trading and combat game, in a similar vein to Escape Velocity" +HOMEPAGE="http://code.google.com/p/naev/" + +#SRC_URI="mirror://sourceforge/naev/ndata-5.3" + + +EGIT_REPO_URI="https://github.com/bobbens/naev.git" +EGIT_BOOTSTRAP="./autogen.sh" + +LICENSE="GPL-2 GPL-3 public-domain CC-BY-3.0 CC-BY-SA-3.0" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="debug +mixer +openal" + +RDEPEND="media-libs/libsdl[X,sound,video] + dev-libs/libxml2 + >=media-libs/freetype-2 + >=media-libs/libvorbis-1.2.1 + >=media-libs/libpng-1.2:0 + media-libs/sdl-image[png] + virtual/glu + virtual/opengl + mixer? ( media-libs/sdl-mixer ) + openal? ( media-libs/openal )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + + +src_configure() { + append-libs -lm -lvorbis + egamesconf \ + --docdir=/usr/share/doc/${PF} \ + $(use_enable debug) \ + $(use_with openal) \ + $(use_with mixer sdlmixer) +} + +src_compile() { + emake V=1 +} + +src_install() { + emake \ + DESTDIR="${D}" \ + appicondir=/usr/share/pixmaps \ + Graphicsdir=/usr/share/applications \ + install + +# insinto "${GAMES_DATADIR}"/${PN} +# newins "${DISTDIR}"/ndata-${PV} ndata + + local res + for res in 16 32 64 128; do + newicon -s ${res} extras/logos/logo${res}.png naev.png + done + + rm -f "${D}"/usr/share/doc/${PF}/LICENSE + + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} -- cgit v1.2.3