/[gentoo-x86]/dev-util/monkeystudio/monkeystudio-1.9.0.2.ebuild
Gentoo

Contents of /dev-util/monkeystudio/monkeystudio-1.9.0.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Jul 3 17:20:33 2012 UTC (2 years, 5 months ago) by kensington
Branch: MAIN
Initial commit wrt bug #132029. Thanks to Andy Gebauer, Vladimir, and everyone in Sunrise.

(Portage version: 2.1.11.4/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI=4
6 LANGS="be es fr ru"
7
8 inherit qt4-r2
9
10 MY_P="mks_${PV}-src"
11
12 DESCRIPTION="A cross platform Qt 4 IDE"
13 HOMEPAGE="http://www.monkeystudio.org"
14 SRC_URI="http://${PN}.googlecode.com/files/${MY_P}.tar.gz"
15
16 KEYWORDS="~amd64 ~x86"
17 LICENSE="GPL-2 LGPL-3"
18 SLOT="0"
19 IUSE="doc plugins"
20
21 RDEPEND="plugins? ( >=x11-libs/qt-webkit-4.7.0:4 )
22 >=x11-libs/qt-assistant-4.7.0:4
23 >=x11-libs/qt-core-4.7.0:4
24 >=x11-libs/qt-gui-4.7.0:4
25 >=x11-libs/qt-sql-4.7.0:4
26 x11-libs/qscintilla"
27 DEPEND="${RDEPEND}
28 doc? ( >=app-doc/doxygen-1.5.8 )"
29
30 DOCS="ChangeLog readme.txt"
31
32 S=${WORKDIR}/${MY_P}
33
34 src_prepare() {
35 # avoid installing every translation
36 sed -e "s:datas/\*:datas/apis datas/scripts datas/templates:" \
37 -i installs.pri || die "sed installs.pri failed"
38
39 rm -r qscintilla/QScintilla-gpl-snapshot \
40 || die "failed removing bundled qscintilla"
41
42 qt4-r2_src_prepare
43 }
44
45 src_configure() {
46 eqmake4 build.pro prefix=/usr system_qscintilla=1
47
48 if use plugins ; then
49 eqmake4 plugins/plugins.pro
50 fi
51 }
52
53 src_install() {
54 qt4-r2_src_install
55
56 if use plugins ; then
57 insinto /usr/lib64/monkeystudio
58 doins -r bin/plugins/*
59 fi
60
61 insinto /usr/share/${PN}/translations
62 local lang
63 for lang in ${LANGS} ; do
64 if use linguas_${lang} ; then
65 doins datas/translations/monkeystudio_${lang}.qm
66 fi
67 done
68
69 fperms 755 /usr/bin/${PN}
70
71 if use doc ; then
72 doxygen || die "doxygen failed"
73 dohtml -r doc/html/*
74 fi
75 }

  ViewVC Help
Powered by ViewVC 1.1.20