# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="A pixelart-oriented painting program" HOMEPAGE="http://code.google.com/p/grafx2/" SRC_URI="http://grafx2.googlecode.com/files/${PN}-2.00b98.0-svn482.tgz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="ttf" DEPEND="virtual/libc media-libs/libsdl media-libs/sdl-image ttf? ( media-libs/freetype media-libs/sdl-ttf )" RDEPEND="" src_compile() { use ttf || MYCNF="NOTTF=1" emake ${MYCNF} || die "emake failed" } src_install() { exeinto /usr/bin doexe grafx2 gfxcfg insinto /usr/share/${PN} doins gfx2.dat gfx2.gif insinto /usr/share/${PN}/fonts doins fonts/* newicon gfx2.gif ${PN}.gif make_desktop_entry ${PN} "Grafx2" ${PN}.gif "Graphics" newicon gfx2cfg.gif gfx2cfg.gif make_desktop_entry gfxcfg "Grafx2 Configurator" gfx2cfg.gif "Graphics" } pkg_postinst() { einfo "to start working with Grafx2 you should copy" einfo "the content of /usr/share/grafx2/ to your" einfo "home dir in ~/grafx2/ and then run grafx2" }