# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils wxwidgets SLOT="0" DESCRIPTION="Xara LX is a commercial vector graphics platform, recently made available on Gentoo as a free OpenSource port." HOMEPAGE="http://www.xaraxtreme.org" SRC_URI="http://downloads2.xara.com/opensource/XaraLX-${PV}${PR}.tar.bz2" LICENSE="GPL-2" KEYWORDS="~x86" IUSE="" RDEPEND="x11-libs/gtk+ >=x11-libs/wxGTK-2.6.3 >=sys-devel/gettext-0.14.3 =media-libs/libpng-1.2.8-r1 >=media-libs/jpeg-6b app-arch/zip dev-lang/perl >=dev-libs/libxml2-2.6.0" DEPEND="${RDEPEND} dev-util/pkgconfig sys-devel/libtool" S=${WORKDIR}/XaraLX-${PV}${PR} pkg_setup() { export WX_GTK_VER="2.6" need-wxwidgets unicode } src_unpack() { unpack ${A} cd ${S} } src_compile() { autoreconf -f -i -s econf --with-wx-config=${WX_CONFIG} --with-wx-base-config=${WX_CONFIG} \ || die "econf failed" emake || die "econf failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed" }