1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools eutils
8 DESCRIPTION="A free Worms clone"
9 HOMEPAGE="http://gna.org/projects/warmux/"
10 SRC_URI="http://download.gna.org/warmux/${P}.tar.bz2"
14 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
15 IUSE="debug nls unicode"
19 media-libs/libsdl[joystick,video,X]
20 media-libs/sdl-image[jpeg,png]
21 media-libs/sdl-mixer[vorbis]
28 nls? ( virtual/libintl )
29 unicode? ( dev-libs/fribidi )"
32 nls? ( sys-devel/gettext )"
34 S=${WORKDIR}/${PN}-11.04
37 "${FILESDIR}"/${P}-gentoo.patch
38 "${FILESDIR}"/${P}-zlib.patch
39 "${FILESDIR}"/${P}-action.patch
40 "${FILESDIR}"/${P}-gcc47.patch
41 "${FILESDIR}"/${P}-stat.patch
42 "${FILESDIR}"/${P}-fix-c++14.patch
52 --with-localedir-name="${EPREFIX}"/usr/share/locale \
53 --with-datadir-name="${EPREFIX}"/usr/share/${PN} \
54 --with-font-path="${EPREFIX}"/usr/share/fonts/dejavu/DejaVuSans.ttf \
57 $(use_enable unicode fribidi)
63 rm -f "${ED%/}"/usr/share/${PN}/font/DejaVuSans.ttf || die
64 doicon data/icon/warmux.svg
65 make_desktop_entry warmux Warmux