diff options
author | 2019-05-16 06:41:49 +0300 | |
---|---|---|
committer | 2019-05-23 05:27:36 +0300 | |
commit | 4db23dbb1a7127733ef0a4849824f133c58b8506 (patch) | |
tree | 4a1428b5efc3466dd7869ceefe9d1718e191a3e9 /games-rpg/eternal-lands/eternal-lands-1.9.5.3.ebuild | |
parent | dev-util/strace: Synced live ebuild. (diff) | |
download | gentoo-4db23dbb1a7127733ef0a4849824f133c58b8506.tar.gz gentoo-4db23dbb1a7127733ef0a4849824f133c58b8506.tar.bz2 gentoo-4db23dbb1a7127733ef0a4849824f133c58b8506.zip |
games-rpg/eternal-lands: bump version to 1.9.5.3
No longer depends on games-rpg/eternal-lands-data.
Provide a launcher that downloads game data into $HOME on the first
start. It will make auto updates easier and not violating Gentoo
policies.
Closes: https://bugs.gentoo.org/548926
Closes: https://bugs.gentoo.org/652690
Closes: https://bugs.gentoo.org/672238
Closes: https://github.com/gentoo/gentoo/pull/12014
Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: Stefan Strogin <steils@gentoo.org>
Diffstat (limited to 'games-rpg/eternal-lands/eternal-lands-1.9.5.3.ebuild')
-rw-r--r-- | games-rpg/eternal-lands/eternal-lands-1.9.5.3.ebuild | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/games-rpg/eternal-lands/eternal-lands-1.9.5.3.ebuild b/games-rpg/eternal-lands/eternal-lands-1.9.5.3.ebuild new file mode 100644 index 000000000000..772635913942 --- /dev/null +++ b/games-rpg/eternal-lands/eternal-lands-1.9.5.3.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit desktop toolchain-funcs xdg + +DESCRIPTION="A 3D fantasy MMORPG written in C and SDL" +HOMEPAGE="http://www.eternal-lands.com" +SRC_URI="https://github.com/raduprv/Eternal-Lands/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="eternal_lands" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc" + +RDEPEND="app-arch/unzip + dev-libs/libxml2 + media-libs/cal3d[-16bit-indices] + media-libs/freealut + media-libs/libpng:0= + media-libs/libsdl[X,opengl,video] + media-libs/libvorbis + media-libs/openal + media-libs/sdl-image + media-libs/sdl-net + sys-libs/zlib[minizip] + virtual/glu + virtual/opengl + x11-libs/libX11 + x11-libs/libXau + x11-libs/libXdmcp + x11-libs/libXext" +DEPEND="${RDEPEND} + app-eselect/eselect-opengl + media-libs/glew" +BDEPEND="${DEPEND} + virtual/pkgconfig + doc? ( + app-doc/doxygen + media-gfx/graphviz + )" + +S="${WORKDIR}/Eternal-Lands-${PV}" + +PATCHES=( + "${FILESDIR}/${PN}-1.9.5.3-build.patch" + "${FILESDIR}/${PN}-1.9.5.3-minizip.patch" +) + +src_prepare() { + default + + sed -i "s/FEATURES/EL_FEATURES/g" make.defaults || die + sed -i "s/FEATURES/EL_FEATURES/g" Makefile.linux || die + + # Remove bundled minizip + rm io/{crypt,ioapi,unzip,zip}.h || die + rm io/{ioapi,unzip,zip}.c || die + + cp Makefile.linux Makefile || die +} + +src_compile() { + emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" + use doc && emake docs +} + +src_install() { + dobin el.linux.bin + newbin "${FILESDIR}"/el-wrapper el + newicon -s 48 elc.png ${PN}.png + make_desktop_entry el "Eternal Lands" + + dodoc CHANGES TODO + use doc && dodoc -r docs/html/ +} |