# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils # Removes the "_alpha" part from the ebuild version and replace it with "r" MY_PV="${PV/_alpha/r}" DESCRIPTION="Vector and bitmap graphics editor" HOMEPAGE="http://www.xaraxtreme.org/" SRC_URI="http://downloads.xara.com/opensource/XaraLX-${MY_PV}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="debug nls" #Not sure why cvs is required since it is not listed on xaraxtreme.org as #a prerequisite yet it will not build without it DEPEND=">=sys-devel/gcc-3.4.0 dev-util/pkgconfig >=x11-libs/gtk+-2.0 >=x11-libs/wxGTK-2.6.3_rc2 >=sys-devel/gettext-0.14.3 sys-devel/libtool >=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 sys-apps/coreutils dev-util/cvs" RDEPEND="${DEPEND}" S="${WORKDIR}/XaraLX-${MY_PV}" pkg_setup() { #make sure wxGTK has unicode support built_with_use x11-libs/wxGTK unicode || die "wxGTK needs to be installed with unicode support." } src_unpack() { unpack ${A} epatch ${FILESDIR}/wxconfig-patch || die } src_compile() { cd ${S} autoreconf --force --install --symlink || die "autoreconf failed" econf \ $(use_enable debug) \ $(use_enable nls) \ || die "econf failed" } src_install() { make DESTDIR=${D} install || die "install failed" } pkg_postinst() { cd {$S} dodoc AUTHORS ChangeLog NEWS README dodoc libs/LIBS-LICENSE einfo einfo "Note the executable name is \"XaraLX\"." einfo einfo "Also note the \"XaraLX\" executable is compiled with a binary" einfo "version of the \"CDraw\" library, which is NOT YET licensed" einfo "under the GPL-2 by Xara. The license, which you will find in" einfo "the /usr/share/doc/${PF}/LIBS-LICENSE file," einfo "states you cannot distribute the library without the" einfo "Xara Xtreme source code or binary version." einfo }