summaryrefslogtreecommitdiff
blob: db66a5d22f7c89dc75af78446fb041d0b7033bb3 (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/kde-misc/semantik/semantik-0.8.3.ebuild,v 1.1 2012/10/24 10:06:38 kensington Exp $

EAPI=4

CMAKE_REQUIRED="never"
PYTHON_DEPEND="2"
inherit python kde4-base waf-utils

DESCRIPTION="Mindmapping-like tool for document generation."
HOMEPAGE="http://freehackers.org/~tnagy/semantik.html"
SRC_URI="https://semantik.googlecode.com/files/${P}.tar.bz2"

LICENSE="GPL-3"
SLOT="4"
KEYWORDS="~amd64 ~x86"
IUSE="debug"

DEPEND="
	x11-libs/qt-core:4
	x11-libs/qt-gui:4
	x11-libs/qt-svg:4
	x11-libs/qt-webkit:4
"

RDEPEND="${DEPEND}
	dev-lang/python[xml]
"

WAF_BINARY="${S}/waf"

DOCS=( ChangeLog README TODO )
PATCHES=(
	"${FILESDIR}/${P}"-wscript_ldconfig.patch
)

pkg_setup() {
	python_set_active_version 2
	python_pkg_setup
	kde4-base_pkg_setup
}

src_configure() {
	CCFLAGS="${CFLAGS}" CPPFLAGS="${CXXFLAGS}" LINKFLAGS="${LDFLAGS} -Wl,--soname=libnablah.so.0" \
		"${WAF_BINARY}" "--prefix=${EPREFIX}/usr" \
		configure || die "configure failed"
}

src_install() {
	waf-utils_src_install
	dosym libnablah.so /usr/lib64/libnablah.so.0
}