summaryrefslogtreecommitdiff
path: root/games-strategy/naev
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-02-17 10:35:54 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-02-17 10:35:54 +0000
commit463397cf1e064185110fe57c568d73f99a06f5d1 (patch)
tree9aa75eefc5154eaf0e3c33658b830fc54dc68052 /games-strategy/naev
parentc8d60dada2ec8eb48b2d2b290cd6683ccec40e39 (diff)
gentoo resync : 17.02.2021
Diffstat (limited to 'games-strategy/naev')
-rw-r--r--games-strategy/naev/Manifest6
-rw-r--r--games-strategy/naev/naev-0.6.1-r1.ebuild79
-rw-r--r--games-strategy/naev/naev-0.7.0.ebuild75
-rw-r--r--games-strategy/naev/naev-0.8.1.ebuild63
4 files changed, 65 insertions, 158 deletions
diff --git a/games-strategy/naev/Manifest b/games-strategy/naev/Manifest
index 219444602f9e..08bbf4784d5e 100644
--- a/games-strategy/naev/Manifest
+++ b/games-strategy/naev/Manifest
@@ -1,8 +1,6 @@
-DIST naev-0.6.1.tar.bz2 1047908 BLAKE2B 3763440c64f89c5ceb5993a3e4ee356d0cc615df8b70dba14ce0fb35d12a0a136e82958349887d9c5a719e14d9ddfc47beb524b88650ea6f7a6859a6422d6898 SHA512 4766c80b49de5a7e748948f0404ac54edbc5afa80618150d1f993d66c7462ea73bfc5220d73073cb51cd76ff5dc6ecdf935d6f843051943136ceefaea9837203
DIST naev-0.7.0-ndata.zip 319608404 BLAKE2B e6edd79282171d4b327d220b33af37720e09f7137a26697de472e3494587525de5d9509865bfccc1093f5d4befa11faa10e0d4f4c59ea8621ecd8d564eb546fe SHA512 5fa8faad36e410f0d2af1c80e6fedbffdd020da72dc96b329ce623e9836490cfb515c1bb88719045491366ca96a32888374029eec6cd14ed86ac8597750995ca
DIST naev-0.7.0.tar.bz2 1076658 BLAKE2B 582bbfbc16e33d16600c19928ed6810dfe5fd3165930e6a51ec9b65d25305cd0bbfaf6f4cced12c5b7f76163ed4dc36b7108e81f4a4e82dc626c6045d3fe769f SHA512 9f8a2912e9f4f29ed6e276b008d4010da3ccdd309de5bb4360c393f2704aa7aff6e18db9e5d3657b4229e911ddec9b2a3312cf182c3c48a91a007a91138d84ae
-DIST ndata-0.6.1.zip 303984255 BLAKE2B 154d8b326e2596cfe16fc646e7d482c07d7015253b6933889d12b93a2ee7e28649b1f3ffcb0c0ed2bfe9d1e3654623cab00113486d05fe6fd1262ce989bf9c25 SHA512 71c3024e1713b094b63cb0de3c70239d61c54142b715e61d5206c5eb3cb8c7a851fc1b388ecf891110dd8bb5c2b3759af71d20f39cb6e629c71b27386a57d7fe
-EBUILD naev-0.6.1-r1.ebuild 1531 BLAKE2B b58f34c1cf684d0e18bb215ace1fa3b77a3cf6e65131b1cc8dda0ae04bff1dc0bbda13540502b696ada59da9035ca7c001553078e6088ee1dacd5911d98d07ee SHA512 efad61393d551d265b6980198bb0efdb32132d32255472f9512c0dedc696816338c8926b4dc1795e8dd9131da5c601078e55bb004cf49dec039c81b0529aabff
+DIST naev-0.8.1-source.tar.gz 359781119 BLAKE2B 021824b0af031af8ff2aa565989c3d7811fcbcdc082649f208e8318b0d69b1c3c27492936a6afdc38de9448aa0dcca2f8ef73879155217e34968f81246017aa6 SHA512 8f9aede300d06b0beae12d4809cc58ac740bc1934c2fa5fdb04452cd2eb63de697e0bbf2aacf5af4878b62eee30878ed50388ee8386fbb19f9d56cb7cad8d7f2
EBUILD naev-0.7.0-r100.ebuild 1762 BLAKE2B a12a17eb355d9eee407e8d7f7ad67336f7d7fe67c91a1172edce75bc4f02f82ca617648690a66c3355306c89fec00824f367a1dd495da42cdb263ba5ffbfad63 SHA512 4999ea6b00f059bc257c5c2e13201cf2ad6f02e55d1b36251b2010ecb9b3739f493d333f231506317e1b719d2517541e089248ad3dfc088b78c1820530ed2ac5
-EBUILD naev-0.7.0.ebuild 1650 BLAKE2B 8860b084a795490592ad44c2eaaab6fc2b773cae609828eff1ec69bde8bc487df8c39ec8fde88a69e46e8fb921e3dff81eed2494eb10e08f3acf07a5267016c1 SHA512 94eb6478deaf3cadf04c6ee06cb63e9bca0dee9dd51e07db93f5f399cf000b98cbb12df70d62d52e3df5a729046bc823ff98f705025ca48530af7d49a31a4b5d
+EBUILD naev-0.8.1.ebuild 1552 BLAKE2B d398392bf128e0c2f64913d7225f8f46bc1e8e9e934a8e2bf6376339936a0341fc6c9beae7995bcdb55dab5b64cd7f788f820d23e8ea7f2a4ec9dc1a0fc8604c SHA512 e87e1bdd566a5fd1ad0b34955b258b8b75ff099102fcf74cd7885b3b8276b68c9ca66b9a9710e04164c71e792ec935f88cf092d57cd2adcdb1791657080039f7
MISC metadata.xml 480 BLAKE2B 4d01de527c3e9c5d5b97dfc169be7b0639be97a2cfa75564b6f2f3f0543c783f9b2403b15471191ecd0b1cf6ddc97eb87d9e04d7f53fe9534fd3626398f02425 SHA512 48c3f9af6ccc92e0cd032f169c8febe7a954cc3b304717e329d2bc9f8d4fff4d9be72bcab2cbfa2c3b75c46ab85a044fe76c786638c062c2a8a9005f1fff6b54
diff --git a/games-strategy/naev/naev-0.6.1-r1.ebuild b/games-strategy/naev/naev-0.6.1-r1.ebuild
deleted file mode 100644
index aaf016935851..000000000000
--- a/games-strategy/naev/naev-0.6.1-r1.ebuild
+++ /dev/null
@@ -1,79 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-inherit flag-o-matic gnome2-utils
-
-DESCRIPTION="A 2D space trading and combat game, in a similar vein to Escape Velocity"
-HOMEPAGE="https://github.com/naev/naev"
-SRC_URI="mirror://sourceforge/naev/${P}.tar.bz2
- mirror://sourceforge/naev/ndata-${PV}.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}
- app-arch/unzip
- virtual/pkgconfig
-"
-
-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/appdata \
- Graphicsdir=/usr/share/applications \
- install
- insinto /usr/share/${PN}
- newins "${DISTDIR}"/ndata-${PV}.zip 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
-}
-
-pkg_preinst() {
- gnome2_icon_savelist
-}
-
-pkg_postinst() {
- gnome2_icon_cache_update
-}
-
-pkg_postrm() {
- gnome2_icon_cache_update
-}
diff --git a/games-strategy/naev/naev-0.7.0.ebuild b/games-strategy/naev/naev-0.7.0.ebuild
deleted file mode 100644
index d778be1396f6..000000000000
--- a/games-strategy/naev/naev-0.7.0.ebuild
+++ /dev/null
@@ -1,75 +0,0 @@
-# Copyright 1999-2021 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="
- app-arch/unzip
- 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
-}
diff --git a/games-strategy/naev/naev-0.8.1.ebuild b/games-strategy/naev/naev-0.8.1.ebuild
new file mode 100644
index 000000000000..a1df3ee985d0
--- /dev/null
+++ b/games-strategy/naev/naev-0.8.1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LUA_COMPAT=( lua5-1 luajit )
+inherit lua-single meson xdg
+
+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}-source.tar.gz"
+
+LICENSE="GPL-3 public-domain CC-BY-3.0 CC-BY-SA-3.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc +mixer nls +openal"
+
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+
+RDEPEND="${LUA_DEPS}
+ dev-libs/libzip
+ dev-libs/libxml2
+ media-libs/libsdl2[X,sound,video]
+ media-libs/libpng:0=
+ media-libs/freetype:2
+ sci-libs/suitesparse
+ virtual/glu
+ virtual/opengl
+ mixer? ( media-libs/sdl2-mixer )
+ nls? ( virtual/libintl )
+ openal? (
+ media-libs/libvorbis
+ media-libs/openal
+ )"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ doc? (
+ app-doc/doxygen
+ dev-lua/ldoc
+ )
+ nls? ( sys-devel/gettext )"
+
+src_prepare() {
+ default
+ sed -i -e "s:lua51:lua5.1:g" meson.build || die
+ # meson can't into docdir!
+ sed -i -e "s:doc/naev:doc/${PF}:g" meson.build || die
+ sed -i -e "s:'doc/naev':get_option('datadir') / 'doc/${PF}':g" docs/meson.build || die
+ # remove license file from install
+ sed -i -e "/'LICENSE'/d" meson.build || die
+}
+
+src_configure() {
+ local emesonargs=(
+ $(meson_feature doc docs_c)
+ $(meson_feature doc docs_lua)
+ $(meson_feature lua_single_target_luajit luajit)
+ $(meson_feature nls)
+ $(meson_feature openal)
+ $(meson_feature mixer sdl_mixer)
+ )
+ meson_src_configure
+}