1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit autotools desktop flag-o-matic
7 DESCRIPTION="Very polished Tetris clone"
8 HOMEPAGE="http://lgames.sourceforge.net/LTris/"
9 SRC_URI="mirror://sourceforge/lgames/${P}.tar.gz"
13 KEYWORDS="~amd64 ~x86"
17 media-libs/libsdl[video]
19 nls? ( virtual/libintl )
22 nls? ( sys-devel/gettext )
27 eapply "${FILESDIR}"/${P}-gentoo.patch
28 mv configure.in configure.ac || die
29 AT_M4DIR=m4 eautoreconf
30 append-cflags -std=gnu89 # build with gcc5 (bug #570966)
34 econf $(use_enable nls)
39 newicon icons/ltris48.xpm ${PN}.xpm
40 make_desktop_entry ltris LTris