diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-12-14 13:26:14 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-12-14 13:26:14 +0000 |
commit | 6abbf81ef2f298e3221ff5e67a1f3c5f23958212 (patch) | |
tree | 25413d1cb3a0cbfe36029db32398c0f333609215 /games-strategy/naev/naev-0.7.0.ebuild | |
parent | 9c417bacd51da6d8b57fa9f37425161d30d4b95b (diff) |
gentoo resync : 14.12.2020
Diffstat (limited to 'games-strategy/naev/naev-0.7.0.ebuild')
-rw-r--r-- | games-strategy/naev/naev-0.7.0.ebuild | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/games-strategy/naev/naev-0.7.0.ebuild b/games-strategy/naev/naev-0.7.0.ebuild new file mode 100644 index 000000000000..1b20e968fdde --- /dev/null +++ b/games-strategy/naev/naev-0.7.0.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit xdg-utils + +DESCRIPTION="A 2D space trading and combat game, in a similar vein to Escape Velocity" +HOMEPAGE="https://naev.org/ https://github.com/naev/naev" +SRC_URI="https://github.com/naev/naev/releases/download/v${PV}/${P}.tar.bz2 + https://github.com/naev/naev/releases/download/v${PV}/${P}-ndata.zip" + +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/libsdl2[X,sound,video] + dev-libs/libzip + dev-libs/libxml2 + >=media-libs/freetype-2:2 + >=media-libs/libvorbis-1.2.1 + >=media-libs/libpng-1.2:0= + virtual/glu + virtual/opengl + dev-lang/lua:0 + mixer? ( media-libs/sdl2-mixer ) + openal? ( media-libs/openal ) +" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +# This is so that only the source tarball is unpacked - the data file +# is supposed to be installed *zipped*. This is why we do not need unzip +# in BDEPEND in spite of what repoman/pkgcheck might say. +src_unpack() { + unpack ${P}.tar.bz2 +} + +src_configure() { + econf \ + --enable-lua=shared \ + $(use_enable debug) \ + $(use_with openal) \ + $(use_with mixer sdlmixer) +} + +src_compile() { + emake V=1 +} + +src_install() { + emake \ + DESTDIR="${D}" \ + appicondir=/usr/share/pixmaps \ + appdatadir=/usr/share/metainfo \ + Graphicsdir=/usr/share/applications \ + install + insinto /usr/share/${PN} + newins "${DISTDIR}/${P}-ndata.zip" ndata + + rm -f "${D}/usr/share/doc/${PF}/LICENSE" +} + +pkg_postinst() { + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_icon_cache_update +} |