# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils XARA_V="0.7r1763" MY_P="XaraLX-${XARA_V}" S="${WORKDIR}/${MY_P}" DESCRIPTION="Vector graphics editing tool" HOMEPAGE="http://www.xaraxtreme.org/" SRC_URI="http://downloads2.xara.com/opensource/${MY_P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="debug static" RDEPEND=">=sys-devel/gcc-3.4.0 x11-libs/gtk+ >=x11-libs/wxGTK-2.6.3 >=sys-devel/gettext-0.14.3 >=sys-devel/automake-1.6 >=sys-devel/autoconf-2.59 >=media-libs/libpng-1.2.8 >=media-libs/jpeg-6b app-arch/zip dev-lang/perl >=dev-libs/libxml2-2.6.0" DEPEND="${RDEPEND} dev-util/pkgconfig sys-devel/libtool" src_compile() { local XARA_CONFIG XARA_CONFIG="--enable-filters --enable-svgfilter" use debug && XARA_CONFIG="${XARA_CONFIG --enable-debug}" use static && XARA_CONFIG="${XARA_CONFIG --enable-static-exec}" econf ${XARA_CONFIG} || die emake || die } src_install() { make DESTDIR=${D} install || die doicon *.png || die doman doc/*.1 || die dodoc doc/*.txt || die make_desktop_entry XaraLX "Xara LX" xaralx.png "Graphics" || die }