# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils versionator MY_PV=($(get_version_components)) DESCRIPTION="A pixelart-oriented painting program" HOMEPAGE="http://code.google.com/p/grafx2/" SRC_URI="http://grafx2.googlecode.com/files/${PN}-2.0-svn${MY_PV[2]:1}-src.tgz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="ttf" DEPEND="virtual/libc media-libs/libsdl media-libs/sdl-image media-libs/freetype ttf? ( media-libs/sdl-ttf )" RDEPEND="" src_compile() { use ttf || MYCNF="NOTTF=1" emake ${MYCNF} || die "emake failed" } src_install() { emake DESTDIR="${D}" PREFIX="/usr" install || die "Install failed" } pkg_postinst() { einfo "To report a problem goto:" einfo " http://code.google.com/p/grafx2" }