diff options
author | Sebastian Pipping <sping@gentoo.org> | 2016-11-04 20:38:02 +0100 |
---|---|---|
committer | Sebastian Pipping <sping@gentoo.org> | 2016-11-04 20:39:25 +0100 |
commit | 24201d5609fc8a8a953ca57ae6e7d96c25224365 (patch) | |
tree | 5b1a8111e0e0c2e4b083df6b5def232ccaa5fd74 /games-action/openlierox | |
parent | sys-kernel/dracut: apply a few patches (diff) | |
download | gentoo-24201d5609fc8a8a953ca57ae6e7d96c25224365.tar.gz gentoo-24201d5609fc8a8a953ca57ae6e7d96c25224365.tar.bz2 gentoo-24201d5609fc8a8a953ca57ae6e7d96c25224365.zip |
games-action/openlierox: Resolve use of games eclass, EAPI 6
Package-Manager: portage-2.3.2
Diffstat (limited to 'games-action/openlierox')
-rw-r--r-- | games-action/openlierox/openlierox-0.58_rc3-r1.ebuild | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/games-action/openlierox/openlierox-0.58_rc3-r1.ebuild b/games-action/openlierox/openlierox-0.58_rc3-r1.ebuild new file mode 100644 index 000000000000..2f7457bf7308 --- /dev/null +++ b/games-action/openlierox/openlierox-0.58_rc3-r1.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit cmake-utils eutils + +MY_PN="OpenLieroX" +MY_P="${MY_PN}_${PV}" +DESCRIPTION="Real-time excessive Worms-clone" +HOMEPAGE="http://openlierox.sourceforge.net/" +SRC_URI="mirror://sourceforge/openlierox/${MY_P}.src.tar.bz2" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="X breakpad debug joystick" + +RDEPEND="media-libs/sdl-mixer + media-libs/sdl-image + media-libs/gd[jpeg,png] + dev-libs/libxml2 + dev-libs/libzip + net-misc/curl + joystick? ( media-libs/libsdl[joystick] ) + !joystick? ( media-libs/libsdl ) + X? ( x11-libs/libX11 + media-libs/libsdl[X] ) + !X? ( media-libs/libsdl )" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${MY_PN}" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.58_rc1-icu.patch \ + "${FILESDIR}"/${PN}-0.58_rc1-curl.patch + eapply_user +} + +src_configure() { + local mycmakeargs=( + -D DEBUG=$(usex debug) + -D X11=$(usex X) + -D BREAKPAD=$(usex breakpad Yes No) + -D DISABLE_JOYSTICK=$(usex joystick No Yes) + -D SYSTEM_DATA_DIR=/usr/share + -D VERSION=${PV} + ) + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + # NOTE: App uses case-insensitive file-handling + insinto /usr/share/${PN}/ + doins -r share/gamedir/* + + dodoc doc/{README,ChangeLog,Development,TODO} + insinto /usr/share/doc/"${PF}" + doins -r doc/original_lx_docs + + doicon share/OpenLieroX.* + make_desktop_entry openlierox OpenLieroX OpenLieroX \ + "Game;ActionGame;ArcadeGame;" + + dobin "${CMAKE_BUILD_DIR}"/bin/openlierox +} |