summaryrefslogtreecommitdiff
blob: 14bb8080bfbf6a411bc4b1267651cc056411ab4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils wxwidgets autotools

MY_P=XaraLX-${PV/_pre/r}

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/${MY_P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
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
	>=media-libs/jpeg-6b
	app-arch/zip
	dev-lang/perl
	>=dev-libs/libxml2-2.6.0"
DEPEND="${RDEPEND}
	dev-util/pkgconfig"

S=${WORKDIR}/${MY_P}

pkg_setup() {
		export WX_GTK_VER="2.6"
		need-wxwidgets unicode
}

src_unpack() {
	unpack ${A}
	cd "${S}"

	eautoreconf
}

src_compile() {
	econf --with-wx-config=${WX_CONFIG} --with-wx-base-config=${WX_CONFIG} \
		|| die "econf failed"

	emake || die "emake failed"
}

src_install() {
	# For now installs just the bin
	emake DESTDIR="${D}" install || die "emake install failed"

	doicon ${PN}.png
	dodoc README

	# Fix and install desktop file
	sed -i -e "s#c=xaralx#c=XaraLX#g" ${PN}.desktop
	domenu ${PN}.desktop
}