summaryrefslogtreecommitdiff
blob: ce80b21a3edc5325b90f30683815df2f4107596b (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/vym/vym-1.12.6.ebuild,v 1.2 2010/02/07 15:03:23 yngwin Exp $

EAPI=2
inherit eutils qt4-r2

DESCRIPTION="View Your Mind, a mindmap tool"
HOMEPAGE="http://www.insilmaril.de/vym/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="x11-libs/qt-gui:4[qt3support]
	x11-libs/qt-sql:4[qt3support]"
RDEPEND="${DEPEND}
	x11-libs/libX11
	x11-libs/libXext"

src_prepare() {
	qt4-r2_src_prepare

	# Change installation directory and demo path
	sed -i \
		-e "s@/usr/local@/usr@g" \
		-e "s@doc/packages/vym@doc/${PF}@g" \
		vym.pro || die "sed failed"
}

src_install() {
	# Remove stripping stuff
	sed -i "/-strip/d" Makefile || die "sed failed"

	DOCS="README.txt"
	qt4-r2_src_install

	dobin scripts/exportvym || die "dobin failed"
	make_desktop_entry vym vym /usr/share/vym/icons/vym.png Education
}