summaryrefslogtreecommitdiff
blob: 3c06a8f8e6de2d4c3352056376af946cc235f18d (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
# Copyright 1999-2006 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://www.sourceforge.net/projects/monkeystudio"
SRC_URI="mirror://sourceforge/${PN}/${MY_PN}-2006.${PV}.zip"

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

DEPEND="$(qt_min_version 4)"
RDEPEND="${DEPEND}"

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() {
	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/*
}