diff options
author | Pacho Ramos <pacho@gentoo.org> | 2018-04-15 20:44:26 +0200 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2018-04-15 21:00:27 +0200 |
commit | cfa7edda87c169223d0aa33b1e417e7aec6aca77 (patch) | |
tree | 97926adb6a9170ed2ca10fa463cf6a74b4d1e131 /games-arcade/crack-attack/crack-attack-1.1.14-r2.ebuild | |
parent | games-arcade/cosmosmash: Drop old (diff) | |
download | gentoo-cfa7edda87c169223d0aa33b1e417e7aec6aca77.tar.gz gentoo-cfa7edda87c169223d0aa33b1e417e7aec6aca77.tar.bz2 gentoo-cfa7edda87c169223d0aa33b1e417e7aec6aca77.zip |
games-arcade/crack-attack: Stop using games.eclass
Package-Manager: Portage-2.3.28, Repoman-2.3.9
Diffstat (limited to 'games-arcade/crack-attack/crack-attack-1.1.14-r2.ebuild')
-rw-r--r-- | games-arcade/crack-attack/crack-attack-1.1.14-r2.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/games-arcade/crack-attack/crack-attack-1.1.14-r2.ebuild b/games-arcade/crack-attack/crack-attack-1.1.14-r2.ebuild new file mode 100644 index 000000000000..eded2a71ead8 --- /dev/null +++ b/games-arcade/crack-attack/crack-attack-1.1.14-r2.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit desktop + +DESCRIPTION="Addictive OpenGL-based block game" +HOMEPAGE="http://www.nongnu.org/crack-attack/" +SRC_URI="https://savannah.nongnu.org/download/crack-attack/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~x86" +IUSE="gtk sdl" + +RDEPEND=" + media-libs/freeglut + sdl? ( media-libs/libsdl + media-libs/sdl-mixer ) + gtk? ( >=x11-libs/gtk+-2.6:2 ) +" +DEPEND="${RDEPEND} + virtual/pkgconfig +" + +src_prepare() { + default + eapply \ + "${FILESDIR}"/${P}-glut.patch \ + "${FILESDIR}"/${P}-gcc43.patch + sed -i 's/-lXmu//' src/gtk-gui/Makefile.in src/Makefile.in || die + touch -r . * */* +} + +src_configure() { + econf \ + --disable-binreloc \ + $(use_enable sdl sound) \ + $(use_enable gtk) +} + +src_install() { + HTML_DOCS="doc/*" + default + doicon data/crack-attack.xpm + make_desktop_entry crack-attack Crack-attack +} |