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 gnome2-utils
10 DESCRIPTION="Breakout clone written with the SDL library"
11 HOMEPAGE="http://lgames.sourceforge.net/LBreakout2/"
12 SRC_URI=" mirror://sourceforge/lgames/${P}.tar.gz
13 mirror://sourceforge/lgames/add-ons/lbreakout2/${PN}-levelsets-${levels_V}.tar.gz
14 themes? ( mirror://sourceforge/lgames/add-ons/lbreakout2/${PN}-themes-${levels_V}.tar.gz )"
18 KEYWORDS="~amd64 ~x86"
24 media-libs/libsdl[sound,joystick,video]
27 nls? ( virtual/libintl )
30 nls? ( sys-devel/gettext )
36 cd "${S}/client/levels"
37 unpack ${PN}-levelsets-${levels_V}.tar.gz
40 mkdir "${WORKDIR}/themes"
41 cd "${WORKDIR}/themes"
42 unpack ${PN}-themes-${themes_V}.tar.gz
44 # Delete a few duplicate themes (already shipped with lbreakout2
45 # tarball). Some of them have different case than built-in themes, so it
46 # is harder to just compare if the filename is the same.
47 rm -f absoluteB.zip oz.zip moiree.zip
49 unzip -q "$f" && rm -f "$f" || die
56 eapply "${FILESDIR}"/${P}-gentoo.patch
64 --localedir=/usr/share/locale \
65 --with-docdir="/usr/share/doc/${PF}/html" \
73 insinto /usr/share/lbreakout2/gfx
74 doins -r "${WORKDIR}/themes/"*
77 newicon client/gfx/win_icon.png ${PN}.png
78 newicon -s 32 client/gfx/win_icon.png ${PN}.png
79 make_desktop_entry lbreakout2 LBreakout2
87 gnome2_icon_cache_update
91 gnome2_icon_cache_update