summaryrefslogtreecommitdiff
blob: cd6353264a13ca2b323c06c745784e688dc74051 (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit qt4

MY_PN="${PN}-src"

DESCRIPTION="Monkey Studio is a cross platform Qt 4 IDE"
HOMEPAGE="http://monkeystudio.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${MY_PN}-${PV}.zip"

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

RDEPEND="$(qt4_min_version 4)"
DEPEND="${RDEPEND}
	app-arch/unzip"

S=${WORKDIR}/${MY_PN}-${PV}

src_unpack() {
	unpack ${A}
	sed -i \
		-e 's#/build/#build/#g' \
		"${S}/monkey.pro" || die "build-dir fix failed"
}

src_compile() {
	/usr/bin/qmake || die "qmake failed"
	emake || die "emake failed"
}

src_install() {
	dodoc {Readme,ToDo,WishList,Informations,Changes,Bugs}.txt
	dobin binary/monkey_x11
	dosym monkey_x11 /usr/bin/monkeystudio
	use doc && dohtml -r docqt4ds/english/html/*
}